Add A Vexel Manage Vexels Account Options User Profile Your Messages Your User Page
Latest Most Favourites Most Comments No Comments
Tutorial Listing Tip Guide
Forum Index Recent Topics Search Forum
FAQ Chatroom Site Themes Competitions
Current Competition Archives
Collaborations
View Collaborations Add A Collaboration
Articles
View Articles Submit an Article
Member List Related Links Vexel Fanlisting Site Statistics

User Login

Featured Member

Snow

Link (info)

AKPro.com

Search www.Vexels.net

 

Message Boards

Recent Search
Online Related > Website Design > CSS help Page: 1
Seven
  27th February 2006 - 01:56 pm
 
So I know there's a javascript code out there that'll detect your screen resolution and load in a specific stylesheet based on the resolution, but is there a similar one for detecting browsers? I'm working on a layout for someone and it's doing some really wonky things in IE, and I think it might just be easier to build a whole new stylesheet for IE.
  

Jenny
  27th February 2006 - 03:02 pm
 
You can use conditional comments or use PHP to determinate the browser. (ie. if it's just IE you can have an if() statement to load an IE stylesheet and if it's not IE then it will load the regular stylesheet)
  

Linda
  27th February 2006 - 11:38 pm
 
You can also do something like this:

Just say it's the width of something that is different, in your css you'd put:

width: 100px !important;
width: 101px;

By default the browser will use the latest one, but the !important tells non-IE browsers to use that one. I'm not sure if that would work for specific thing but I use it sometimes.
So, if you used that, in IE it would use 101px and in other non-ie browsers it would use 100px
(this is only good if it's just a couple of little things that are different.. if your stylesheet is totally different you'd probably want to use something else)
  

Online Related > Website Design > CSS help Page: 1


Reply to thread

You must register or login to reply.
  All vexels © their respective owners. Do not use them without consent.
www.Vexels.net © 2005 · Current Theme by Linda

Related Links: