SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast [Az]'s Avatar
    Join Date
    Aug 2003
    Location
    UK
    Posts
    98
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    CSS rule for Opera only which works in 7.5.4 as well

    I need a style rule that will work in Opera only but the media selector hack doesn't seem to work in Opera 7.5.4 whereas it worked fine in older versions of Opera 7 e.g.

    Code:
    /* Opera specific style rule */
    @media all and (min-width: 0px) {
    	#sitesMenu {
    		height: 24px;}}
    Is anyone aware of any new method of applying a hack just for Opera but which works in 7.5.4 as well ?
    HEXUS Webmaster

  2. #2
    SitePoint Enthusiast [Az]'s Avatar
    Join Date
    Aug 2003
    Location
    UK
    Posts
    98
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Never mind, it does still work, the Mozilla rule above it

    Code:
    html>body #sitesMenu {
        height: 24px;}
    meant that my Opera specific rule needed to use html>body as well to pick it up e.g.
    Code:
    /* Opera specific style rule */
    @media all and (min-width: 0px) {
    	html>body #sitesMenu {
    		height: 24px;}}
    I'm not sure why it needs that but something to watch for if anyone else is using a number of hacks for one rule. This issue could have been solved if there was a mozilla only CSS hack but despite some searching I couldn't find anything. If anyone is aware of one I would be interested
    HEXUS Webmaster

  3. #3
    bronze trophy
    Join Date
    Dec 2004
    Location
    Sweden
    Posts
    2,670
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Mozilla only:
    Code:
    @-moz-document url-prefix() {
    	body {background: black; color: white;}
    }
    But that only works for moz1.8a3 and above. (Firefox 1.0+ and above.) http://simon.incutio.com/archive/2004/08/19/specific
    Simon Pieters


Bookmarks

Posting Permissions

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