hi guys,
I want the line under my h1 tag to be just as long as the text goes, so not covering the entire width like it does now:
<!-- m --><a class="postlink" href="http://test.bobbysmiles.com/test03.htm">http://test.bobbysmiles.com/test03.htm</a><!-- m -->
+ fixed width is no option as all h1 text on the website will not be of the same length.
Is there a css parameter for this?
thx!Use h2 and either give it a fixed width (give it an id and target it that way) or make it 'display:inline;'.<!-- m --><a class="postlink" href="http://test.bobbysmiles.com/test05.htm">http://test.bobbysmiles.com/test05.htm</a><!-- m -->
display: inline seems to be helping yes, BUT my margin doesn't work now anymore .homep {
margin-top:10px;
}<h1><span style="border-bottom:solid 2px #a00">Lorem Ipsum Dolor Sit Amet</span></h1>
I want the line under my h1 tag to be just as long as the text goes, so not covering the entire width like it does now:
<!-- m --><a class="postlink" href="http://test.bobbysmiles.com/test03.htm">http://test.bobbysmiles.com/test03.htm</a><!-- m -->
+ fixed width is no option as all h1 text on the website will not be of the same length.
Is there a css parameter for this?
thx!Use h2 and either give it a fixed width (give it an id and target it that way) or make it 'display:inline;'.<!-- m --><a class="postlink" href="http://test.bobbysmiles.com/test05.htm">http://test.bobbysmiles.com/test05.htm</a><!-- m -->
display: inline seems to be helping yes, BUT my margin doesn't work now anymore .homep {
margin-top:10px;
}<h1><span style="border-bottom:solid 2px #a00">Lorem Ipsum Dolor Sit Amet</span></h1>