SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Zealot Valera Selev's Avatar
    Join Date
    Apr 2004
    Location
    Lviv, Ukraine
    Posts
    129
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Hiding styles from Opera7

    How can I hide styles from Opera7?

    The so called *7 hack seems to apply also to Firefox:
    <style type="text/css">html*#test { color: green; }</style>

  2. #2
    SitePoint Wizard DougBTX's Avatar
    Join Date
    Nov 2001
    Location
    Bath, UK
    Posts
    2,498
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The *7 hack: http://diveintomark.org/safari/csshacks/star7.html

    Can't help much more than that. I don't know any off hand.

    Douglas
    Hello World

  3. #3
    SitePoint Wizard megamanXplosion's Avatar
    Join Date
    Jan 2004
    Location
    Kentucky, USA
    Posts
    1,099
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Why are you trying to hide CSS from Opera?

  4. #4
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,355
    Mentioned
    179 Post(s)
    Tagged
    6 Thread(s)
    Hi,

    This won't hide from opera but will alow you to set styles for opera only which should accomplish the same thing.

    Code:
    @media all and (min-width: 0px){
    #test {
    color:red;
    }
    }
    However use it with care as support for this may change.

    As megaman siad if you let us know what the problem is then there may be non-hack alternatives.

    Paul

  5. #5
    SitePoint Zealot Valera Selev's Avatar
    Join Date
    Apr 2004
    Location
    Lviv, Ukraine
    Posts
    129
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks. That really helped
    I need that hack for a project, which will be redesigned soon, so using the hack is not critical.


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
  •