Nav Chrome

Nav Chrome
Why does Chrome/Safari ignore my Margins, but accept my Padding?

I’m building a website and running into the classic web developers dilemma: browser computability. In IE6 and Firefox 3, the navigation bar on the following website works just fine, but in Chrome, Safari (and presumably other WebKit browsers) the spacing gets crunched.

Here’s the URL, see what I mean for yourself:

http://www.mikeyingling.com/everettkayser/

My current CSS reads:

a.nav
{
text-decoration: none;
font-family: Monotype Corsiva;
color: #FFF1DD;
font-size: 18pt;
position: relative;
top: 0px;
margin: 0 5% 0 5%;
padding: 0;
z-index: 0;
}

If I make margin: 0; and padding: 0 5% 0 5% it LOOKS right on all browser, but the :hover area extends too far left and right of the navigation links.

Any input would be great, thanks!

You should not need to make it backwards compatible with IE6, its about 8 years old that browser, not to mention broken.

I would suggest you avoid using pt for font-sizes, they are not well suited for screen media.

I suspect the reason being that the “a element” are inline by default, you can change this through the css display property. You should also at least include those in either a ordered or unordered list, which would both enable better accessibility of your site, as well as better styling of your links.

You may also want to consider using a External StyleSheet, because these are cached by the browser, while embedded styles are downloaded again for each page.

Descargar -Nav-. Opera 10, Netscape 9, Chrome, Internet Explorer 9, Firefox 3.5, ST 3D, Safari 5.9.

eBay Logo  

Cadillac : Escalade EXT 2WD 4dr Luxury 2011 CADILLAC ESCALADE EXT, LUXURY, AWD, SUNROOM, NAV, 22


Cadillac : Escalade EXT 2WD 4dr Luxury 2011 CADILLAC ESCALADE EXT, LUXURY, AWD, SUNROOM, NAV, 22″ CHROME RIMS, DVD


$15,100.00


Bentley : Continental Flying Spur *MI:20K *FL 08 SILVER TEMPEST TURBO W12 AWD SEDAN *19 IN CHROME ALLOY WHEELS *LOW MILES *NAV


Bentley : Continental Flying Spur *MI:20K *FL 08 SILVER TEMPEST TURBO W12 AWD SEDAN *19 IN CHROME ALLOY WHEELS *LOW MILES *NAV


$90,000.00


PERKO FRESNEL FIXED MOUNT ALL AROUND NAVIGATION LIGHT - 12V CHROME BASE NAV


PERKO FRESNEL FIXED MOUNT ALL AROUND NAVIGATION LIGHT – 12V CHROME BASE NAV


$42.95


Ram : 1500 LARMAIE RAM 1500 LARAMIE 2010 5.7L V8 HEMI NAV DVD LEATHER CHROME RIMS BLACK TRUCK


Ram : 1500 LARMAIE RAM 1500 LARAMIE 2010 5.7L V8 HEMI NAV DVD LEATHER CHROME RIMS BLACK TRUCK


$35,500.00


Infiniti : FX35 Deluxe, Premium 2WD Package with 22


Infiniti : FX35 Deluxe, Premium 2WD Package with 22″ Chrome Wheels Pristine 2009 FX35 Black on Java 22″ Chrome Wheels One Owner Warranty Tech Nav!!


$30,000.00


Chrysler : 300 Series 05 RARE 300C CUSTOM 2005 CHRYSLER 300 C HEMI V8 SPORT NAV BODY KIT CHROME WHLS W/ WRNTY


Chrysler : 300 Series 05 RARE 300C CUSTOM 2005 CHRYSLER 300 C HEMI V8 SPORT NAV BODY KIT CHROME WHLS W/ WRNTY


$16,995.00


Saturn : Sky Convertible Bumper to Bumper, Upgraded Nav, Bluetooth, Phone, DVD, iPhone, Bkup Cam, Chrome


Saturn : Sky Convertible Bumper to Bumper, Upgraded Nav, Bluetooth, Phone, DVD, iPhone, Bkup Cam, Chrome


$14,999.00


Harley-Davidson : Softail 2011 FLSTC NAV MINT 5k CHROME 2000 Miles! heritage softail harley davidson


Harley-Davidson : Softail 2011 FLSTC NAV MINT 5k CHROME 2000 Miles! heritage softail harley davidson


$16,995.00


Ford : Expedition LIMITED 4WD LEATHER CHROME ROOF WOOD SUPER CLEAN@$10995 2005 FORD EXPEDITION LTD 4WD NAV DVD ROOF WOOD HTD/COOLED STS MAKE OFR $10995


Ford : Expedition LIMITED 4WD LEATHER CHROME ROOF WOOD SUPER CLEAN@$10995 2005 FORD EXPEDITION LTD 4WD NAV DVD ROOF WOOD HTD/COOLED STS MAKE OFR $10995


$2,000.00


Hummer : H2 4WD SUV LUXURY ADVENTURE SERIES NAV HEATED SEATS 24


Hummer : H2 4WD SUV LUXURY ADVENTURE SERIES NAV HEATED SEATS 24″ CHROME INCUBUS WHEELS REAR DVD ENT


$14,100.00


You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>