Website Coding

Stuck on a line of code? Find resources and post your coding questions here.

Forum Sponsor (Advertise with us)
Reply
 
Thread Tools Display Modes
    #1 (permalink)  
Old 06-17-2008
Brianna Young's Avatar
Junior Member
Small Business Design Blog: RescueTime - Indie Business Productivity
 
Join Date: Sep 2007
Location: Oklahoma
Posts: 279
Send a message via Skype™ to Brianna Young
Default Need to write a separate style sheet for IE
So my question is, how do I correctly link the IE stylesheet so that the correct style sheet is used when IE is the browser being used?

Thanks in advance!!!

Bri
__________________
Brianna Young, VA and Graphic Artist
www.virtualsolutionsadmin.com
"It's not the piano that makes beautiful music. It's the person sitting AT the piano!"
Reply With Quote
    #2 (permalink)  
Old 06-17-2008
Contributing Member
 
Join Date: Feb 2008
Posts: 127
Default Re: Need to write a separate style sheet for IE
I just dealt with this this morning when doing my first css webpage. You put it up in the head tag, right below the link to the original stylesheet. You put it inside <!--[if IE]><![endif]-->
__________________
Kellie Stotsky
The Essential Virtual Assistant
www.theessentialva.com
Reply With Quote
    #3 (permalink)  
Old 06-17-2008
Codehead's Avatar
Administrator
Company name: Codehead LLP
My latest blog post: Mac Performance Benchmark App
 
Join Date: Apr 2007
Location: WA
Posts: 175
Default Re: Need to write a separate style sheet for IE
There are 2 ways:

1 -Like the way Kellie said to use IE conditionals. You can even use these conditionals to show some content based on the version of the IE browser. Here is an article from Microsoft:
http://msdn.microsoft.com/en-us/library/ms537512.aspx

2 - Use JavaScript to change the properties of the elements you have trouble with only if the browser is IE something like:
HTML Code:
<div id="header">
   Some Code
</div>
<script type="text/javascript">
if (navigator.userAgent.indexOf('MSIE') != -1) {
   document.getElementById('header').style.height = '55px';
}
</script>
From my experience though, you always have ways to avoid using IE conditionals.
Personally I could always find ways around issues with differences in browsers even in complex designs...

I hope this makes sense
__________________
"Imagination is more important than knowledge."
Albert Einstein
Reply With Quote
    #4 (permalink)  
Old 06-17-2008
Contributing Member
 
Join Date: Feb 2008
Posts: 127
Default Re: Need to write a separate style sheet for IE
That is really good to know about the Java. I haven't got that far in my book yet, that is the next chapter. Maybe I can get rid of the IE conditionals in my site too. That would rock!
__________________
Kellie Stotsky
The Essential Virtual Assistant
www.theessentialva.com
Reply With Quote
Reply

Thread Tools
Display Modes

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Online Copywriting 101: The Ultimate Cheat Sheet Kerans VA Website Content 12 10-30-2010 12:21 PM
How to Write a Contract Rebecka Melson Virtual Assistant Contracts 54 09-01-2010 11:44 PM
Question about Quote Sheet debsoffice08 General Legal Issues 5 06-23-2008 08:25 PM
Tip- Write Press Release in MS Notepad Agnes Press Releases 5 12-05-2007 10:33 AM


All times are GMT -4. The time now is 11:18 AM.

International Virtual Assistants Association
Project Management for Virtual Assistants
Work from Home | Become A Virtual Assistant
Virtual Assistant Directory
Affordable Logo Design
Virtual Assistant Contracts
Virtual Assistant Forums Advertising

© Virtual Assistant Forums 2012
All content and images are protected under copyright law and may not be reproduced in any way without express written consent.