Bottom border width

This is a discussion on "Bottom border width" within the Web Page Design section. This forum, and the thread "Bottom border width are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Feb 19th, 2006, 09:51
Up'n'Coming Member
Join Date: Feb 2006
Location: London
Age: 25
Posts: 97
Thanks: 0
Thanked 0 Times in 0 Posts
Bottom border width

Hi,

Im using this code:

h1{
font-family:Georgia, "Times New Roman", Times, serif;
font-size: 180%;
border-bottom: dotted;
font-weight:100;
width: 110px;
}

to display a heading with a dotted border underneath similar to this

Heading
.....................

But, I can't get the border to be the same length as the text.
I've tried auto and inherit values but it dosen't seem to work.
How can you do this without setting a predfined width?

Thanks!
Jim.
Reply With Quote

  #2 (permalink)  
Old Feb 19th, 2006, 16:09
SuperMember

SuperMember
Join Date: Aug 2003
Location: Castle Rock, CO
Age: 36
Posts: 164
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Bottom border width

You might consider apply the border-bottom to a span tag and enclosing it that way.
Reply With Quote
  #3 (permalink)  
Old Feb 20th, 2006, 04:09
herkalees's Avatar
Highly Reputable Member
Join Date: Jul 2005
Location: Massachusetts, USA
Age: 87
Posts: 576
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to herkalees Send a message via MSN to herkalees Send a message via Yahoo to herkalees
Re: Bottom border width

That will work, which the code will be:

<h1><span class="headerstyle">Header Text</span></h1>

h1 .headerstyle {
font-family:Georgia, "Times New Roman", Times, serif;
font-size: 180%;
border-bottom: 1px dotted #000;
font-weight:100;
}
Reply With Quote
Reply

Tags
bottom, border, width

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing bottom border from image links dulcificum Web Page Design 4 Jun 5th, 2008 23:47
Bottom up website riet JavaScript Forum 11 Dec 8th, 2007 00:27
Div stretch to bottom in IE6 Aso Web Page Design 16 Nov 27th, 2007 12:49
Firefox: black border at bottom of linked images ChrisTheSoul Web Page Design 3 Sep 3rd, 2007 08:26
align text to bottom of div? JETshipJUMBO Web Page Design 9 Aug 6th, 2006 07:29


All times are GMT. The time now is 02:47.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43