Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I code CSS specifically for Mac browsers?

Site: http://clientfiles.priworks.com/lgmanagedportfolios/test/investment.html

I have been working at this web page for a while now trying to get the left side of the first submenu link to line up with the left of the 1st parent/main menu link.

I don't think there is a logical way of doing it but after much fudging I am close to getting it just right. The position is consistent for all win browsers and all Mac browsers (with some conditional CSS) but not for Win and Mac browsers together, for instance in Mac Firefox the text is too far right while in Win Firefox it's perfect.

Question: Is their a way to adjust the padding specificly for Mac browsers?

like image 325
The Atlantean Avatar asked Feb 21 '23 18:02

The Atlantean


1 Answers

I don't believe you can do this with pure css, but you can detect the OS with javascript, and then use that to load different css.

http://www.quirksmode.org/js/detect.html

like image 100
axiomx11 Avatar answered Feb 23 '23 08:02

axiomx11