Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
conditional in a css document
Old 02-19-2009, 08:23 PM conditional in a css document
ericson3000's Avatar
Experienced Talker

Posts: 40
Name: Bob Davis
Location: Los Angeles, CA
Trades: 0
I'm trying to force a vertical scrollbar on a website. But when I put:

overflow: scroll;

in my css document, it does well is Safari and FF, but shows two scrollbars in IE7. How do I write a conditional in my linked css document (not in the html page itself) that will "overflow: auto;" when the browser is IE?

Thanks guys and girls.
ericson3000 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-19-2009, 10:02 PM Re: conditional in a css document
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
It depends which version of IE you're targeting. Neither of these methods are official, they just rely on browser bugs that were planted by accident. Imagine that.
CSS
Code:
*overflow: auto; /*targets IE7 and below, with a star before it*/
_overflow: hidden; /*targets IE6 and below, with an underscore before it*/
Of course, there is no reason you can't just do conditional comments in the HTML and have a separate CSS file for each set of browsers. That is the only officially sanctioned way of operating.
__________________
Join me on
Please login or register to view this content. Registration is FREE
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 02-20-2009, 01:27 AM Re: conditional in a css document
ericson3000's Avatar
Experienced Talker

Posts: 40
Name: Bob Davis
Location: Los Angeles, CA
Trades: 0
Hey wayfarer07 - thanks for the info. I did it the html way and it works beautifully. I just created an IE only css document and linked to it last in my css links. Seems to work perfectly. I really appreciate the info.
ericson3000 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to conditional in a css document
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.56441 seconds with 12 queries