I have a centered div with a nested h1 inside. Is there any way to underline it with a thicker line than the html default?
+2
A:
I am not recommending inline CSS but have used it here for brevity:
<h1 style="border-bottom: 5px solid black">
RedFilter
2010-06-28 18:00:02
`border-bottom:` would be the appropriate property here..
Gaby
2010-06-28 18:01:10
@Gaby: good idea, I modified accordingly
RedFilter
2010-06-28 18:02:43
A:
You may be able to achieve the same visual effect with border-bottom-width;
h2
{
border-bottom-color:black;
border-bottom-style:solid;
border-bottom-width:15px;
}d
Matthew Vines
2010-06-28 18:00:02
+1
A:
This will give you control over the U
tag's underline:
<style type="text/css">
u {
text-decoration: none;
border-bottom: 4px solid black;
}
</style>
In this case the underline will be four pixels.
Gert G
2010-06-28 18:05:24