Hi,
How can I reduce (and control) the gap between the word "Art" and the lower edge of the blue background of h4. The only way I can think of using negative top margin for p but I feel this is incorrect. There must be a better (correct) way of doing it. Will be grateful for all help.
How can I reduce (and control) the gap between the word "Art" and the lower edge of the blue background of h4. The only way I can think of using negative top margin for p but I feel this is incorrect. There must be a better (correct) way of doing it. Will be grateful for all help.
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "[URL unfurl="true"]http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">[/URL]
<html xmlns="[URL unfurl="true"]http://www.w3.org/1999/xhtml"[/URL] xml:lang="en" lang="en">
<head>
<title>Test Page</title>
<style type="text/css">
h1, h2, h3, h4, h5, h6, p{
margin:0;
padding:0
}
img { border:none }
a{color:#000;text-decoration:none}
a:hover { text-decoration: underline; }
body {
color:#000;
font-family:Verdana, Geneva, sans-serif;
}
#wrap {
min-width: 71.08em;
margin:auto;
overflow:hidden;
}
#left
{ position: relative;
width: 17.38em;
float: left;
padding-top: 16.86em;
padding-bottom: 2.2em;
border: 0.125em solid #FF0000;
}
#left h4, #left p
{ font-family: Tahoma;
}
#left h4
{ background-color: #87CEEB;
font-size: 1.13em;
text-align: left;
font-weight: bold;
padding-top: 0.5em;
padding-bottom: 0.5em;
}
#left p
{ font-size: 1em;
color: #000080;
line-height: 110%;
word-spacing: 0.125em;
padding: 0em 0.9em 0em 0.9em;
}
#left p a span
{ font-size: 19px;
font-weight: bold;
}
</style>
</head>
<body>
<div id="wrap">
<div id="left">
<h4> SEARCH BY CATEGORY</h4>
<p><a target="_blank" href="#">
<span><br><br><br>Art<br></span></a>
<a target="_blank" href="#">Posters and Prints</a>,
<a target="_blank" href="#">Photos and Images</a>,
<a target="_blank" href="#">Hobby and Craft</a>
............
</p>
</div>
</div>
</body>
</html>