views:

52

answers:

3

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
`border-bottom:` would be the appropriate property here..
Gaby
@Gaby: good idea, I modified accordingly
RedFilter
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
+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