Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Navigation Bar Wrong in IE
Old 02-25-2009, 03:17 PM Navigation Bar Wrong in IE
Ultra Talker

Posts: 254
Name: Daniel Mousdell
Trades: 0
Hey, does anyone know how I can fix my menu bar on my blog, so it looks like it does in Firefox

http://www.danielmousdell.com/blog

This is how it looks in IE and as you can see there is a gap between the links and the bottom image:



I have looked and I don't know what code I need to add to get it to show correct in IE

Thanks alot
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Danaldinho is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-27-2009, 05:50 AM Re: Navigation Bar Wrong in IE
jay_wonders's Avatar
Novice Talker

Posts: 6
Name: Jay
Trades: 0
Hi,

Do following changes in the CSS file, It will work.

In style.css at line 500...
modify following class and put following two extra property in it.

div.hr{
clear:both;
height:0px;
}

remove height:1em; from same class.

- Add another class in the same css.

#navcontainer{height:14px;}


Have a nice day...
jay_wonders is offline
Reply With Quote
View Public Profile
 
Old 02-27-2009, 05:55 AM Re: Navigation Bar Wrong in IE
jay_wonders's Avatar
Novice Talker

Posts: 6
Name: Jay
Trades: 0
Do one more thing in the same class instead of putting height:0px; make height:8px;


this will solve your problem.
jay_wonders is offline
Reply With Quote
View Public Profile
 
Old 02-27-2009, 05:35 PM Re: Navigation Bar Wrong in IE
Ultra Talker

Posts: 254
Name: Daniel Mousdell
Trades: 0
Thanks Jay, worked brilliant Appreciate it mate

There's another problem aswell, on the sidebar, where the links are, they are all in <li>'s and they should have an image next to them befoer they start like a bullet point.

But it doesn't seem to work in IE, it only shows on the first link and then doesn't on the rest But it works fine again in Firefox

So does anyone know how i would fix that

Thanks
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Danaldinho is offline
Reply With Quote
View Public Profile
 
Old 02-27-2009, 06:14 PM Re: Navigation Bar Wrong in IE
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Are you using a bullet, or a background image for the <li> ? My suggestion would be to use a bg image on the <li> and use padding to push the links over away from the bg image.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 02-28-2009, 05:45 PM Re: Navigation Bar Wrong in IE
Ultra Talker

Posts: 254
Name: Daniel Mousdell
Trades: 0
Quote:
Originally Posted by LadynRed View Post
Are you using a bullet, or a background image for the <li> ? My suggestion would be to use a bg image on the <li> and use padding to push the links over away from the bg image.
This is the code I am currently using:

Code:
ul li {background-repeat:no-repeat;
line-height:2em;
list-style-image:url(images/icons/li.png);
margin:0;
padding:0;
}
I removed list-style-type and added the image to background-image, but I just couldn't get it right I added repeat-x and then it was just showing at the top of the links

Does anyone know a way in which I could do this

Thanks alot
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Danaldinho is offline
Reply With Quote
View Public Profile
 
Old 03-01-2009, 12:59 PM Re: Navigation Bar Wrong in IE
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Quote:
ul li {background-repeat:no-repeat;
line-height:2em;
list-style-image:url(images/icons/li.png);
margin:0;
padding:0;
}
That won't work, syntax is all wrong. It needs to be:

Quote:
ul li {
background: url(images/icons/li.png) no-repeat;
line-height:2em;
margin:0;
padding:0;
}
To position the image you may need to add a few pixels of positioning on the background image, like this:

Quote:
background: url(images/icons/li.png) no-repeat xxpx xxpx;
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 03-01-2009, 04:21 PM Re: Navigation Bar Wrong in IE
Ultra Talker

Posts: 254
Name: Daniel Mousdell
Trades: 0
Quote:
Originally Posted by LadynRed View Post
That won't work, syntax is all wrong. It needs to be:


To position the image you may need to add a few pixels of positioning on the background image, like this:
Hi, I did what you said (changed the code) and now the little image shows at the very top of my link.

So I tried changing the pixels on the background line like you said and whatever number I typed in, the image disappeared.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Danaldinho is offline
Reply With Quote
View Public Profile
 
Old 03-02-2009, 04:56 AM Re: Navigation Bar Wrong in IE
jay_wonders's Avatar
Novice Talker

Posts: 6
Name: Jay
Trades: 0
Hi,

Replace following code with your current class.

ul li {
background-image:url(images/icons/li.png);
background-position:left center;
background-repeat:no-repeat;
height:25px;
margin:0;
padding:0 0 0 10px;
}

This will work...

Have a great day...
jay_wonders is offline
Reply With Quote
View Public Profile
 
Old 03-02-2009, 12:29 PM Re: Navigation Bar Wrong in IE
Ultra Talker

Posts: 254
Name: Daniel Mousdell
Trades: 0
Quote:
Originally Posted by jay_wonders View Post
Hi,

Replace following code with your current class.

ul li {
background-image:url(images/icons/li.png);
background-position:left center;
background-repeat:no-repeat;
height:25px;
margin:0;
padding:0 0 0 10px;
}

This will work...

Have a great day...
Hey, I did what you said and this was the outcome:



As you can see, it kind of worked, but not fully.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Danaldinho is offline
Reply With Quote
View Public Profile
 
Old 03-02-2009, 01:00 PM Re: Navigation Bar Wrong in IE
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Quote:
background-image:url(images/icons/li.png);
background-position:left center;
background-repeat:no-repeat;
All that can be combined on 1 line:

background: url(images/icons/li.png) no-repeat left center;

Looks to me like your line-height isn't enough, and you shouldn't be using PX for line-height anyway, use em at least.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 03-02-2009, 01:54 PM Re: Navigation Bar Wrong in IE
Ultra Talker

Posts: 254
Name: Daniel Mousdell
Trades: 0
Quote:
Originally Posted by LadynRed View Post
All that can be combined on 1 line:

background: url(images/icons/li.png) no-repeat left center;

Looks to me like your line-height isn't enough, and you shouldn't be using PX for line-height anyway, use em at least.
Thanks, that line kind of helped me get on track.

But do you see how this website has got that list-style-type: circle thing before the links in their sidebar: http://illroots.com/

Thats kinda of what I want. Does anyone on here know how they have done that?

I used firebug and I really couldn't find how they did it
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Danaldinho is offline
Reply With Quote
View Public Profile
 
Old 03-02-2009, 05:31 PM Re: Navigation Bar Wrong in IE
Ultra Talker

Posts: 254
Name: Daniel Mousdell
Trades: 0
Don't worry, I have fixed it and got everything sorted

Thanks alot you two for the magnificent help and I will give you both talkupation now
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Danaldinho is offline
Reply With Quote
View Public Profile
 
Old 03-05-2009, 10:11 AM Re: Navigation Bar Wrong in IE
Novice Talker

Posts: 5
Name: Eric Dubois
Trades: 0
Hey Danldinho,
thats a real pain. I cannot stand that dirty disease ridden IE explorer, oh how the mighty fall. Had the same problem myself, if you have heard of the box model in CSS then Mozilla deducts borders margins etc and IE explorer adds. Try using the "small" keyword for font and dont use points use EMS. This strategy will also have useability benefits.

regards

Monker
link drop removed

Last edited by chrishirst; 03-05-2009 at 10:58 AM..
Monker is offline
Reply With Quote
View Public Profile
 
Old 03-07-2009, 08:50 PM Re: Navigation Bar Wrong in IE
Experienced Talker

Posts: 32
Name: Vaughn Bowen
Trades: 0
I see you're using xhtml strict. As a novice I suggest using validate. http://validator.w3.org/
vbowen is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Navigation Bar Wrong in IE
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.49138 seconds with 12 queries