How to set up a separate CSS for IE

This is a discussion on "How to set up a separate CSS for IE" within the Starting Out section. This forum, and the thread "How to set up a separate CSS for IE are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Starting Out

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Jul 4th, 2007, 16:18
Up'n'Coming Member
Join Date: Aug 2006
Location: Suffolk
Age: 30
Posts: 91
Thanks: 0
Thanked 0 Times in 0 Posts
How to set up a separate CSS for IE

I have 3 words which should display in a line and are positioned absolutely at the bottom left of my navigation bar. In Firefox and Opera they look as desired. IE decides to to display them over 2 lines. How do I just alter the font size in IE, as I really don't want to reduce the size any further for the other pages (as it is already small enough).

Also is IE known for having its own version of font size? It doesn't look very much different, but I'm guessing to cause the above prob it does.

My relavant coding is:

Code: Select all
 
html, body { margin: 0; padding: 0; background-color: white; color: black; font-size: 100.01%; font-family: sans-serif; }
 
#outer { height: 470px; width: 675px; background-color: white; }
#outer { position: absolute; top: 50%; margin-top: -235px; left: 50%; margin-left: -337.5px; }

#sidebar {  height:470px; width: 145px; float: left; padding-right: 20px;  } 
 
#sidebar { background-color: white; border-right: solid black; font-size: 0.8em;}
 
#sidebarh1 { text-align: left; color: #9A803B; font-size: 1.2em; font-weight: bold; font-family: sans-serif;}

#sidebarh1 {position:absolute; bottom:0px; left:0px;}
Thanks,

Ruby
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Jul 4th, 2007, 16:32
Reputable Member
Join Date: Jun 2007
Location: Bellevue, SK, Canada
Age: 29
Posts: 222
Thanks: 0
Thanked 0 Times in 0 Posts
Re: How to set up a separate CSS for IE

In your HTML add the following code to you <head> section:

Code: Select all
<!--[if IE]>
<style type="text/css"> 

-- add here what yuo want different in IE --

</style>
<![endif]-->
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Jul 4th, 2007, 17:05
Up'n'Coming Member
Join Date: Aug 2006
Location: Suffolk
Age: 30
Posts: 91
Thanks: 0
Thanked 0 Times in 0 Posts
Re: How to set up a separate CSS for IE

Excellent - thank you very much.

Ruby
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Jul 4th, 2007, 22:42
Elite Veteran
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: How to set up a separate CSS for IE

It also may be that IE is still adding addition padding.
Try adding this to your css
* {
margin: 0;
padding: 0;
}
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Jul 9th, 2007, 17:35
Most Reputable Member
Join Date: May 2007
Location: UK
Age: 27
Posts: 1,111
Thanks: 0
Thanked 0 Times in 0 Posts
Re: How to set up a separate CSS for IE

You can also refer to an external stylesheet instead:

Code: Select all
<!--[if IE]>
<link href="ie.css" rel="stylesheet" type="text/css">
<![endif]-->
...and there are other syntaxes for selecting specific versions of IE.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
css ie

Thread Tools

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
When to separate content among pages Aso Search Engine Optimization (SEO) 2 Jul 7th, 2008 09:10
Library of symbols for a map in a separate file? AlexDi Flash & Multimedia Forum 1 Nov 8th, 2007 15:44
Hi Guys! I've created a separate stylesheet and want to know where to insert it. algoodbody Web Page Design 4 Jul 27th, 2007 20:02


All times are GMT. The time now is 03:20.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42