Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Regular Coder MrBiggZ's Avatar
    Join Date
    Apr 2005
    Location
    Indianapolis IN
    Posts
    259
    Thanks
    37
    Thanked 0 Times in 0 Posts

    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

  • #2
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,471
    Thanks
    0
    Thanked 634 Times in 624 Posts
    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/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

  • #3
    Regular Coder MrBiggZ's Avatar
    Join Date
    Apr 2005
    Location
    Indianapolis IN
    Posts
    259
    Thanks
    37
    Thanked 0 Times in 0 Posts
    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

  • #4
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,479
    Thanks
    6
    Thanked 981 Times in 954 Posts
    There is most certainly a way around this but we can’t tell you unless we see the page in action.

  • #5
    Regular Coder MrBiggZ's Avatar
    Join Date
    Apr 2005
    Location
    Indianapolis IN
    Posts
    259
    Thanks
    37
    Thanked 0 Times in 0 Posts
    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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •