Emsan
02-17-2011, 11:16 AM
So I'm back with a question.
I'm not sure if I have done this the best way.
I tried headings (h1) but I got problems with line-breaks. It worked to add line-height:0pt; but that also removed all the line-breaks I actually wanted. After a lot of testing and head-scratching I gave up with headings.
Instead I did a span class. It works perfectly fine, BUT I want a 2px border underneath the text, and I want it to stretch 100% of the div.
This is how it looks now: http://noomirapace.org/?page_id=72
The border is just under the text, and I want it to stretch all the way to the right.
I bet this isn't the best way to make borders, so that's probably why I have this problem hehe.
CSS code
.heading {
font-size:20px;
text-shadow: 0px -1px 0px #765020;
color:#C1997B;
font-weight:bold;
border-bottom:#744f21 solid 2px;
border-bottom-width:100%;
line-height:0pt;
}
HTML code
<span class="heading"><strong>•</strong> Early Life</span>
<em>coming soon!</em>
♥
I'm not sure if I have done this the best way.
I tried headings (h1) but I got problems with line-breaks. It worked to add line-height:0pt; but that also removed all the line-breaks I actually wanted. After a lot of testing and head-scratching I gave up with headings.
Instead I did a span class. It works perfectly fine, BUT I want a 2px border underneath the text, and I want it to stretch 100% of the div.
This is how it looks now: http://noomirapace.org/?page_id=72
The border is just under the text, and I want it to stretch all the way to the right.
I bet this isn't the best way to make borders, so that's probably why I have this problem hehe.
CSS code
.heading {
font-size:20px;
text-shadow: 0px -1px 0px #765020;
color:#C1997B;
font-weight:bold;
border-bottom:#744f21 solid 2px;
border-bottom-width:100%;
line-height:0pt;
}
HTML code
<span class="heading"><strong>•</strong> Early Life</span>
<em>coming soon!</em>
♥