Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-27-2012, 12:37 AM   PM User | #1
MrBiggZ
Regular Coder

 
MrBiggZ's Avatar
 
Join Date: Apr 2005
Location: Indianapolis IN
Posts: 237
Thanks: 34
Thanked 0 Times in 0 Posts
MrBiggZ is an unknown quantity at this point
Question Is this CSS conditional legal?

Hiya!

Is this CSS conditional legal??

Code:
#menu a 
{
	float: left;
	height: 25px;
	[if !IE] padding: 0 20px;
        [if IE]  padding: 0 23px;
	color: #999;
	text-transform: uppercase;
	font: bold 12px/25px Arial, Helvetica;
	text-decoration: none;
	text-shadow: 0 1px 0 #000;
}
It's just a silly difference in IE from the rest of the world that brings me to this point! Grrrrr!!

Thanks for your help!
__________________
“No matter how slick the demo is in rehearsal, when you do it in front of a live audience, the probability of a flawless presentation is inversely proportional to the number of people watching, raised to the power of the amount of money involved.” ~ Mark Gibbs
MrBiggZ is offline   Reply With Quote
Old 02-27-2012, 01:04 AM   PM User | #2
felgall
Master Coder

 
felgall's Avatar
 
Join Date: Sep 2005
Location: Sydney, Australia
Posts: 5,462
Thanks: 0
Thanked 499 Times in 491 Posts
felgall is a jewel in the roughfelgall is a jewel in the roughfelgall is a jewel in the rough
No.

You can only use Microsoft conditionals in HTML or JScript - not in CSS.
__________________
Stephen
Learn Modern JavaScript - http://javascriptexample.net/
Helping others to solve their computer problem at http://www.felgall.com/
felgall is offline   Reply With Quote
Old 02-27-2012, 04:00 AM   PM User | #3
MrBiggZ
Regular Coder

 
MrBiggZ's Avatar
 
Join Date: Apr 2005
Location: Indianapolis IN
Posts: 237
Thanks: 34
Thanked 0 Times in 0 Posts
MrBiggZ is an unknown quantity at this point
Quote:
Originally Posted by felgall View Post
No.

You can only use Microsoft conditionals in HTML or JScript - not in CSS.
Didn't think so! Just wanted to make sure before I go into 'I hate IE mode!'

Thanks!
__________________
“No matter how slick the demo is in rehearsal, when you do it in front of a live audience, the probability of a flawless presentation is inversely proportional to the number of people watching, raised to the power of the amount of money involved.” ~ Mark Gibbs
MrBiggZ is offline   Reply With Quote
Old 02-27-2012, 12:24 PM   PM User | #4
VIPStephan
The fat guy next door


 
VIPStephan's Avatar
 
Join Date: Jan 2006
Location: Halle (Saale), Germany
Posts: 7,613
Thanks: 5
Thanked 865 Times in 842 Posts
VIPStephan is a jewel in the roughVIPStephan is a jewel in the roughVIPStephan is a jewel in the rough
There is most certainly a way around this but we can’t tell you unless we see the page in action.
__________________
Don’t click this link!
VIPStephan is offline   Reply With Quote
Old 02-27-2012, 01:08 PM   PM User | #5
MrBiggZ
Regular Coder

 
MrBiggZ's Avatar
 
Join Date: Apr 2005
Location: Indianapolis IN
Posts: 237
Thanks: 34
Thanked 0 Times in 0 Posts
MrBiggZ is an unknown quantity at this point
Quote:
Originally Posted by VIPStephan View Post
There is most certainly a way around this but we can’t tell you unless we see the page in action.
No biggie! I put my thinking cap on and spent an extra half hour on it and got my three pixels compensated for it!

I just wish MS would play by the same rules that everybody else plays by and not just their own!
__________________
“No matter how slick the demo is in rehearsal, when you do it in front of a live audience, the probability of a flawless presentation is inversely proportional to the number of people watching, raised to the power of the amount of money involved.” ~ Mark Gibbs
MrBiggZ is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 04:01 AM.


Advertisement
Log in to turn off these ads.