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 Brianna Young is offline
Junior Member
Small Business Design Blog: RescueTime - Indie Business Productivity
 
Join Date: Sep 2007
Location: Oklahoma
Posts: 279
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
Reply With Quote
    #2 (permalink)  
Old 06-17-2008
theessentialva theessentialva is offline
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]-->
Reply With Quote
    #3 (permalink)  
Old 06-17-2008
Codehead Codehead is offline
Contributing Member
 
Join Date: Apr 2007
Location: Portland, Oregon
Posts: 177
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
Reply With Quote
    #4 (permalink)  
Old 06-17-2008
theessentialva theessentialva is offline
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!
Reply With Quote
Reply

« Previous Thread | Next Thread »
Thread Tools
Show Printable Version Show Printable Version
Email this Page Email this Page
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

Forum Rules

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 06:02 AM.

Virtual Assistant Forums Advertising
Featured VA websites:

VirtuallyNSync, LLC

Virtual Writing & Communications Solutions

Barbara Williams
Get featured!
Bankruptcy Virtual Assistant Training
Virtual Assistant Forums Advertising
Create a Professional New Client Welcome Packet
Virtual Assistant Forums Advertising
Work from Home | Become A Virtual Assistant

© Virtual Assistant Forums 2013 Content and images protected under copyright law.
Google+ - Facebook - Twitter