Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > CSS bolding text problem

Reply
Thread Tools

CSS bolding text problem

 
 
Joe Blow
Guest
Posts: n/a
 
      12-28-2005
Greetings all,

http://www.wiavic.org.au/test/bold.html

When hovering over the links, why does it "push" the trailing links text
across, once the link turn bold?

Joe
 
Reply With Quote
 
 
 
 
David Dorward
Guest
Posts: n/a
 
      12-28-2005
Joe Blow wrote:

> http://www.wiavic.org.au/test/bold.html
>
> When hovering over the links, why does it "push" the trailing links text
> across, once the link turn bold?


Bold text is text with wider strokes. Since the strokes are wider, so are
the letters. Since the letters are wider, they take up more space. So the
anchor takes up more space. So everything after the anchor has to move to
make room for it.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
 
Reply With Quote
 
 
 
 
Joe Blow
Guest
Posts: n/a
 
      12-28-2005
David Dorward wrote:
> Joe Blow wrote:
>
>
>>http://www.wiavic.org.au/test/bold.html
>>
>>When hovering over the links, why does it "push" the trailing links text
>>across, once the link turn bold?

>
>
> Bold text is text with wider strokes. Since the strokes are wider, so are
> the letters. Since the letters are wider, they take up more space. So the
> anchor takes up more space. So everything after the anchor has to move to
> make room for it.
>

I am trying to eliminate the use of tables, which i have used for the
navigation at wiavic.org.au

Is it possible to define a maximum "cell" width (which is currently
used) for each anchor so that the movement can be eliminated?

Joe
 
Reply With Quote
 
Mitja Trampus
Guest
Posts: n/a
 
      12-28-2005
Joe Blow wrote:
> I am trying to eliminate the use of tables, which i have used for the
> navigation at wiavic.org.au
>
> Is it possible to define a maximum "cell" width (which is currently
> used) for each anchor so that the movement can be eliminated?


Not directly, because anchors are inline-level elements by
default (i.e., they're part of a line, not a box like e.g. a
paragraph). To specify width, first use display:block to
turn the anchors into blocks/boxes, then e.g. width:10%.

Alternatively, put each "a" into a "li" which is block-level
by default, and specify width for li. In this case (which is
semantically better), you'll have to use float:left and
list-style-type: none on li's so they'll make a horizontal
menu instead of a vertical one.
 
Reply With Quote
 
 
 
Reply

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Directory Size and bolding Excel cells anon1m0us@yahoo.com Ruby 8 12-13-2006 01:33 PM
CSS Bolding freesoft_2000 HTML 8 09-24-2006 12:07 AM
Controlling text in a Text Area or Text leo ASP General 1 12-05-2005 01:13 AM
Unwanted bolding in merge using Word/Excel 2000 tremaline@invalid.domain Computer Support 2 04-13-2005 09:31 PM
datagrid row bolding? Jason ASP .Net 1 08-31-2004 08:20 PM



Advertisments
 



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 44 45 46 47 48 49 50 51 52 53 54 55 56 57