View Full Version : Underlined coming out as a border


freya
07-25-2003, 02:29 AM
i'm having issues with my CSS. i'm trying to get my head portion of the CSS to have it so there's a dashed underline under the text, kind of like in this site: http://illuminati.nu/05.php?x=expand

but everytime i try, it comes out as a dashed border:

.HEAD {
font-style : normal;
font-weight : bold ;
font-size : 26px;
font-family : times;
color : #404040;
border-style: dashed;
border-width: 2;
padding: 1;
margin: 1;
}

that's the CSS... help??

Skye
07-25-2003, 04:45 AM
I'm not completely familiar with .HEAD in a css code, but in any case you have it set to have a border. If you simply want it underlined, do something like this :

.HEAD {
font-style : underlined;
font-weight : bold ;
font-size : 26px;
font-family : times;
color : #404040;
padding: 1;
margin: 1;
}

See how I took out everything about the border ? But this will be a straight line under the text, not a dashed one. I know there's a way to get it to be dashed, just try looking around at a css codes site if you want that...it's something about changing it to bottom-border.

Alcy
07-25-2003, 04:50 AM
Hehe, I use this a lot myself :P


<style type="text/css">
.HEAD
{
border-bottom:1px dashed;
}
</style>

^that's the only important portion


<p class="HEAD">text here</p>

If you dislike the <p>, you could use <div> instead ^^

freya
07-25-2003, 05:03 AM
thank you so much ^_^ it works now!