Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,472
There are 2069 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     HTML/XHTML/DHTML/CSS :

IF/End if in CSS

Thread title: IF/End if in CSS
Closed Thread    
    Thread tools Search this thread Display Modes  
07-14-2006, 11:51 PM
#1
JamesW is offline JamesW
Status: Member
Join date: Mar 2006
Location: London, Ontario, Canada
Expertise: Design & Photograph
Software: Photoshop, Dreamweaver, Chrome
 
Posts: 182
iTrader: 1 / 100%
 

JamesW is on a distinguished road

Send a message via MSN to JamesW Send a message via Skype™ to JamesW

  Old  IF/End if in CSS

I am trying to make it so that if the user is using IE it tells the class i am using to put overflow:scroll; on it.

Is this posible?

07-15-2006, 12:00 AM
#2
Jeff Andersen is offline Jeff Andersen
Status: Superstar
Join date: Apr 2005
Location:
Expertise:
Software:
 
Posts: 4,449
iTrader: 10 / 100%
 

Jeff Andersen is on a distinguished road

  Old

Yes, using a conditional statement..

<!--[if IE]><style type="text/css">@import"global_ie.css";</style><![endif]-->

Is an example for external CSS

<!--[if IE]><style type="text/css"> #css { here; }</style><![endif]-->

Is an example for internal CSS

07-15-2006, 12:13 AM
#3
JamesW is offline JamesW
Status: Member
Join date: Mar 2006
Location: London, Ontario, Canada
Expertise: Design & Photograph
Software: Photoshop, Dreamweaver, Chrome
 
Posts: 182
iTrader: 1 / 100%
 

JamesW is on a distinguished road

Send a message via MSN to JamesW Send a message via Skype™ to JamesW

  Old

thanks so much.

07-15-2006, 12:17 AM
#4
opserty is offline opserty
Status: I love this place
Join date: Jan 2005
Location: UK, Birmingham
Expertise:
Software:
 
Posts: 606
iTrader: 0 / 0%
 

opserty is on a distinguished road

Send a message via MSN to opserty

  Old

Jeff I was wondering wouldn't it be better/quicker to use a * html hack or is there something wrong with this?

07-15-2006, 12:31 AM
#5
Jonny is offline Jonny
Status: Member
Join date: Feb 2005
Location: UK
Expertise:
Software:
 
Posts: 335
iTrader: 0 / 0%
 

Jonny is on a distinguished road

  Old

I would do this:

Code:
div#poop
{
	overflow: visible !important;
	overflow: scroll;
}

07-15-2006, 12:48 AM
#6
JamesW is offline JamesW
Status: Member
Join date: Mar 2006
Location: London, Ontario, Canada
Expertise: Design & Photograph
Software: Photoshop, Dreamweaver, Chrome
 
Posts: 182
iTrader: 1 / 100%
 

JamesW is on a distinguished road

Send a message via MSN to JamesW Send a message via Skype™ to JamesW

  Old

Jonny how does that work can you explain it please.

07-16-2006, 06:34 PM
#7
Jonny is offline Jonny
Status: Member
Join date: Feb 2005
Location: UK
Expertise:
Software:
 
Posts: 335
iTrader: 0 / 0%
 

Jonny is on a distinguished road

  Old

IE6 and older browsers don't support the !importance rule so they will just cascade and set the overflow to scroll instead.

Closed Thread    


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed