This is a discussion on "why are my links looking like this!?" within the Web Page Design section. This forum, and the thread "why are my links looking like this!? are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
why are my links looking like this!?
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
why are my links looking like this!?
http://home.comcast.net/~adamq/chapter07/links-nav.html
how come my links have the additional spacing below each a element..when I setup display:block it appears! I cant figure out why Im getting this to look this way..it looks fin ein firefox but of course in IE6 it doesn';t look right. what am I missing..?? |
|
|
|
||||
|
Re: why are my links looking like this!?
Add height: 1px; to #nav-list a {
|
|
|||
|
Re: why are my links looking like this!?
This is a bug in IE where it adds the space after the /li closing. Something about seeing a return. I'd have to search again to find the full bug explanation.
Like karinne suggested, adding the height attribute fixes it. I believe adding a width also fixes it. Changing the code to the below layout will also fix it without having to add the height or width attribute.
|
|
|||
|
Re: why are my links looking like this!?
the problem with doing that is it screws up the the way the links look in firefox...
|
|
|||
|
Re: why are my links looking like this!?
the problem I have with the last posting is we are changing semantic markup into invalid markup. id prefer to leave the markup as is and apply 1px height.
so other browsers does not see this, I used the * html so the rule only is seen by IE. thanks for all your postings. |
|
|||
|
Re: why are my links looking like this!?
Changing semantic markup in to invalid markup... huh? All this does is move the <li> to the previous line. Makes no difference whatsoever semantically. And both IE and FF look exactly the same when done this way.
Adding a height and using the * are both hacks. I think IE7 corrected this issue which means any site using the height hack will see jumbled vertical links. I need to do more testing in IE7 to make sure of this though. |
|
|||
|
Re: why are my links looking like this!?
i didnt mean to confuse semantic with valid markup, those are two different things. I meant i was afraid that by doing that as posted above as far as changing the li, it would produce invalid markup when I tried to validate the document.
whats so suprising to me is none of the CSS books I hvae read so far speaks to this issue in IE6 so I was suprised it didn't work. thanks again. |
|
|||
|
Re: why are my links looking like this!?
Yes, I did and it worked. Thanks.
|
|
||||
|
Re: why are my links looking like this!?
Ok ... no problem! I was just confused there with the last few posts!
|
|
||||
|
Re: why are my links looking like this!?
IE adds extra spacing when you make a styled vertical list, a workaround is width:100%; on the li's in your css.
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
|
![]() |
| Tags |
| style |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Msie doesn't make my links links.. | delusion | Web Page Design | 7 | Nov 7th, 2007 08:05 |
| PR4 links for sale...links in an excellent position | agent14 | Link Building and Link Sales | 1 | Mar 5th, 2007 21:33 |
| PR 5 Links available for recip links | GARY | Link Building and Link Sales | 1 | Aug 19th, 2006 09:52 |
| Blured Links (image links) | bruno89 | Web Page Design | 2 | Jul 25th, 2006 14:48 |
| Different coloured links without modifying links? | Webforumz Staff | Web Page Design | 12 | Aug 29th, 2003 18:48 |