Space Invader101
New member
I’m creating a main heading <h1> with an image to the left of it. When I use CSS text decoration to underline the heading, the   between the image and heading is underlined. How do I prevent this?
Example Code:
<html>
<head>
<title>NBA Legends</title>
<style type="text/css">
h1
{
text-decoration:underline;
margin:10px;
}
</style>
</head>
<body>
<h1><img src= "C:\ Flag Icons\USA.gif"
width="60" height="30" />  NBA All Star Team</h1>
</body>
</html>
Example Code:
<html>
<head>
<title>NBA Legends</title>
<style type="text/css">
h1
{
text-decoration:underline;
margin:10px;
}
</style>
</head>
<body>
<h1><img src= "C:\ Flag Icons\USA.gif"
width="60" height="30" />  NBA All Star Team</h1>
</body>
</html>