WeLoveCSS Logo
Home Profile Members Search Rules Help New Posts



WeLoveCSS > WEB DESIGN > CSS > CSS: Border not correct in Firefox...

Reply
  Thread Tools Display Modes
Old 29th November 06, 07:43 PM   #1
MattDavid.Hall
WLC Member
 
MattDavid.Hall's Avatar
 
Join Date: Sep 2006
Location: Indiana, USA
Posts: 13
Default CSS: Border not correct in Firefox...

Greetings everyone!

I am developing a new site and am having some issues with my navigation menu...If you would be so kind to take a look at what is happening I would greatly appreciate it.

The two links show what is going on. The first link is what my border looks like in Firefox; notice the gap at the top and bottom between my solid border and my dotted border. This shouldn't be like that. Border in Firefox (2.0).

This image shows how it looks in IE. This is how it should look in FF but obviously it does not.
Border in IE (7.0).

Here is the HTML that controls the menu:
Code:
	
<div id="navcontainer">
<ul id="navitems">
<li><a href="#">Corporate Info</a></li>
<li><a href="#">Products</a></li>
<li><a href="#">Downloads</a></li>
<li><a href="#">Services</a></li>
<li><a href="#">Testimonials</a></li>
<li><a href="#">Contact Info</a></li>
<li><a href="#">Request Quote</a></li>
<li><a href="#">Home</a></li>
</ul>
</div>
And here is the CSS:
Code:
#navcontainer {
	position:relative;
	left:30px;
	top:8px;
	width:115px;
	padding:2px;
	border:1px #6d6d55 solid;
	text-align:center;
	}

#navitems {
	margin-left:0px;
	padding-left:0px;
	list-style:none;
	}

#navitems li {
	background-image:url(../imgs/navigation/arrow.gif);
	background-repeat:no-repeat;
	background-position:0.3em;
	}

ul li a {
	display:block;
	padding:2px;
	border:1px #86866e dotted;
	}

#navcontainer a:link, #navitems a:visited {
	color:#000000;
	text-decoration:none;
	}

#navcontainer a:hover {
	background-color:#6d6d55;
	background-image:url(../imgs/navigation/arrow-over.gif);
	background-repeat:no-repeat;
	background-position:0.5em;
	text-decoration:none;
	}
My menu is also wrapped in a main container:
Code:
#container {
	position:relative;
	margin:0 auto;
	width:800px;
	min-height: 100%;
	height:100%;
	}
If someone could take a look at all of that I would greatly appreciate it. I have tried nearly all day to figure out why that gap is in FF but not IE. As I mentioned above I would like it to look as it does in IE.

Thanks in advance for your efforts!

MDH
__________________
-MattDavid.Hall
CSS Rookie
MattDavid.Hall is offline   Reply With Quote
Old 29th November 06, 08:04 PM   #2
stef686
WLC Member
 
Join Date: May 2006
Posts: 42
Default Re: CSS: Border not correct in Firefox...

Only thing I can think of is giving the #navitems a margin: 0
__________________

To view links or images in signatures your post count must be 5 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 5 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 5 or greater. You currently have 0 posts.
stef686 is offline   Reply With Quote
Old 29th November 06, 08:37 PM   #3
MattDavid.Hall
WLC Member
 
MattDavid.Hall's Avatar
 
Join Date: Sep 2006
Location: Indiana, USA
Posts: 13
Default Re: CSS: Border not correct in Firefox...

Quote:
Originally Posted by stef686
Only thing I can think of is giving the #navitems a margin: 0
Voila! That did the trick. I changed margin-left: to just margin: since I do not need margin any where else in #navitems.

Thanks for your quick reply!
__________________
-MattDavid.Hall
CSS Rookie
MattDavid.Hall is offline   Reply With Quote
Old 29th November 06, 10:29 PM   #4
stef686
WLC Member
 
Join Date: May 2006
Posts: 42
Default Re: CSS: Border not correct in Firefox...

No probs, glad to help
__________________

To view links or images in signatures your post count must be 5 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 5 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 5 or greater. You currently have 0 posts.
stef686 is offline   Reply With Quote
Reply


Thread Tools
Display Modes
Linear Mode Linear Mode

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Internet Explorer Vs Firefox Mili HTML & XHTML 22 25th February 08 07:56 PM
IE - Firefox MattDavid.Hall Browser Compatibility 0 21st March 07 06:31 PM
Floats Shifting 1px in Firefox 1.5 epic Browser Compatibility 2 10th September 06 09:11 PM
IE / Firefox problems kappel Browser Compatibility 3 15th August 06 03:15 PM
[SOLVED] Hard to switch firefox Woppi Browser Compatibility 7 11th May 06 08:13 AM


All times are GMT. The time now is 04:54 PM.



Home | Advertise | Contact Us | Top
Home | Advertise | Contact Us | Top

Copyright© 2006 WeLoveCSS.com. All Rights Reserved.
Powered by vBulletin Version 3.8.4 Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.