Shaliza
12-01-2007, 11:24 AM
In the stylesheet, I have something like this:
.header {
width:350px;
margin:0px auto;
font-size:50px;
font-color: #FF3366;
font-weight:bold;
text-align:center;
font-family: Tahoma, Monospace, Arial, System;
line-height: 70%;
}
.header2 {
width: 350px;
margin: 0px auto;
font-size: 50px;
font-color: #000;
font-weight: bold;
text-align: center;
font-family: Tahoma, Monospace, Arial, System;
line-height: 70%;
}
.header3 {
margin: 0px auto;
padding-top: 10px;
width: 70%;
font-family: Tahoma, Monospace, Arial, System;
text-align: center;
font-size: 120%;
line-height: 120%;
}
.subhead {
padding-top: 5px;
letter-spacing: -1px;
line-height: 100%;
font-family: Tahoma, Monospace, Arial, System;
font-size: 110%;
font-weight: bold;
}
And on the page:
<div class="header">content</div><br>
<div class="header2">content</div><br>
<div class="header3">content</div><br>
<div class="subhead">content</div>
However, the code isn't showing up right on the page at all. There's a massive space in-between the first/second headers & the third header. The subhead is too far down there are spaces in-between. The whole thing looks screwy.
Anyone know what the problem might be?
.header {
width:350px;
margin:0px auto;
font-size:50px;
font-color: #FF3366;
font-weight:bold;
text-align:center;
font-family: Tahoma, Monospace, Arial, System;
line-height: 70%;
}
.header2 {
width: 350px;
margin: 0px auto;
font-size: 50px;
font-color: #000;
font-weight: bold;
text-align: center;
font-family: Tahoma, Monospace, Arial, System;
line-height: 70%;
}
.header3 {
margin: 0px auto;
padding-top: 10px;
width: 70%;
font-family: Tahoma, Monospace, Arial, System;
text-align: center;
font-size: 120%;
line-height: 120%;
}
.subhead {
padding-top: 5px;
letter-spacing: -1px;
line-height: 100%;
font-family: Tahoma, Monospace, Arial, System;
font-size: 110%;
font-weight: bold;
}
And on the page:
<div class="header">content</div><br>
<div class="header2">content</div><br>
<div class="header3">content</div><br>
<div class="subhead">content</div>
However, the code isn't showing up right on the page at all. There's a massive space in-between the first/second headers & the third header. The subhead is too far down there are spaces in-between. The whole thing looks screwy.
Anyone know what the problem might be?
