|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Link problem - not lining up in FF
Hi there,
I have a drop down menu which I want to display next to another link to the right of the page (so there is a link to the far right and then the drop down to the left of the right link), however the drop down link is appearing under the far right link in FF, instead of beside it like it is in IE. Any ideas what I have wrong? This is my CSS: PHP Code:
and this is my HTML: PHP Code:
|
|
#2
|
|||
|
|||
|
Website please. Also, try validating your page.
w3.validator.org http://jigsaw.w3.org/css-validator/ |
|
#3
|
|||
|
|||
|
It is currently offline
|
|
#4
|
|||
|
|||
|
You can still validate. Get back to us.
|
|
#5
|
|||
|
|||
|
You have a stray </a> in
Code:
<li class="top">Community Tools</a> <img src="templates/images/arrow_down.gif" /></li> Did you forget the opening tag? Also you have the order of your floats backwards I think. The one you want on the far right should go first, so swap them around. Then you can remove the 200px right-margin from com_tools. At least I think thats what your after. Edit: oh yeah, and what Gameyin said ^^ Last edited by essee : May 9th, 2008 at 08:01 AM. |
|
#6
|
|||
|
|||
|
Thanks. I have validated the CSS and the only invalid thing is the cursor:hand
I have also made those changes essee, but the problem is still there. This is a screenshot of what I mean: http://www.upload3r.com/serve/090508/1210338753.jpg The IE version is the correct one. |
|
#7
|
|||
|
|||
|
Hmm it might be that it's just late here but those 2 look fairly similar to me in respect to your original post.
You have a drop down and then your link in both. Are they the wrong way around? Also if you've made changes to the code it will help us if you repost the new code so we don't have to look at the old code and wonder exactly what you have changed. Last edited by essee : May 9th, 2008 at 08:54 AM. Reason: Typo - It's late OK :) |
|
#8
|
|||
|
|||
|
If you look at the IE screenshot, the 'Community tools' Link is in line with the blue link on the right side, where as in FF, it is below that link. IE is how I want it.
This is my new CSS: PHP Code:
and this is the new HTML: PHP Code:
|
|
#9
|
|||
|
|||
|
There is default padding and margins set on ul's (and the li's if I remember correctly) in all the major browsers. Margin on top and padding on left I think. Set margin and padding to 0 (or whatever you need).
There is also margin and padding set by default on many other elements have a read through this article http://www.search-this.com/2007/03/...rgin-for-error/ I usually don't like using the universal selector (*) or a general rule that I copy into each stylesheet. Usually I make a rule and add things I use and that need it as I go. But it's personal preference really as long as your aware of it. Something like Code:
ul, h1, #something{
margin:0;
padding:0;
}
Last edited by essee : May 9th, 2008 at 09:16 AM. |
|
#10
|
|||
|
|||
|
Thanks, I have fixed it. Many thanks!
|
![]() |
| Viewing: Dev Shed Forums > Web Design > CSS Help > Link problem - not lining up in FF |