jhatter
11-23-2009, 01:14 PM
Hi,
I have copied and pasted some code below.
When I view it in a browser there is a gap/margin above the heading, but I can't figure out what is causing this. I know it's gonna be simple but for now I've gone code-blind!
<style>
body {
margin:0px; padding:0px;
background-color:#cccccc;
font-family:Verdana, Arial, Helvetica, sans-serif;
}
.column2 {
float:left;
width:220px;
margin: 0px;
padding: 0px;
}
.column2 h3 {
font-size:12px;
line-height:20px;
text-indent:5px;
color:#ffffff;
background-color:#b71717;
margin-right:30px;
}
</style>
</head>
<body>
<div class="column2">
<h3>HEADING GOES HERE:</h3>
</div>
</body>
I have copied and pasted some code below.
When I view it in a browser there is a gap/margin above the heading, but I can't figure out what is causing this. I know it's gonna be simple but for now I've gone code-blind!
<style>
body {
margin:0px; padding:0px;
background-color:#cccccc;
font-family:Verdana, Arial, Helvetica, sans-serif;
}
.column2 {
float:left;
width:220px;
margin: 0px;
padding: 0px;
}
.column2 h3 {
font-size:12px;
line-height:20px;
text-indent:5px;
color:#ffffff;
background-color:#b71717;
margin-right:30px;
}
</style>
</head>
<body>
<div class="column2">
<h3>HEADING GOES HERE:</h3>
</div>
</body>