Results 1 to 4 of 4

Thread: css not showing up. (.not-ie)

  1. #1
    User
    Join Date
    03-06-10.
    Posts
    54

    Default css not showing up. (.not-ie)

    hello community.
    it's me again. i'm sorry that i have somany questions.
    but i have some problems wit CSS.
    when i copie a piece of CSS from my template to contao everyting is ok.
    but it is not showing up for me.

    this is the CSS :
    Code:
     .not-ie #class .current > a:before
    does some know how i can set it up to show?

    much thanks tieme

  2. #2

    Default Re: css not showing up. (.not-ie)

    write down the html code too
    Web design agency - EDsolution.si Izdelava spletnih strani

  3. #3
    User
    Join Date
    03-06-10.
    Posts
    54

    Default Re: css not showing up. (.not-ie)

    Quote Originally Posted by wotanskrieg
    write down the html code too
    this is the html code for the CSS :
    Code:
    <ul id="nav">[*]Home[*]Kosten[*]Werkwijze[*]Portfolio
    <li class="current" class="last">Contact[/list]
    </nav>

  4. #4
    Experienced user
    Join Date
    01-12-10.
    Posts
    814

    Default Re: css not showing up. (.not-ie)

    There are two unknown elements in your selector: .not-ie and #class. Can you verify that you do have them in your HTML? .not-ie is not in Contao for as far as I know, perhaps some extension puts that in? #class is also not in contao.

    What I normally do when a selector is not working is first inspecting the element using Firebug (but both Chrome and IE9 have built in alternatives that work exactly the same). That way I can see which styles are actually used and also which are overridden. If my style is IN the list then another selector is probably more important, so increase this ones strength or add !important to the styles that don't make it (color: #000 !important;)

    If the selector is not displayed by Firebug then the selector does not apply and you made a mistake. Try building it up slowly, element by element until you find the problem...

    In this specific case you should take off :before to see if your selector selects the element at all. Using pseudo elements can be tricky!

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
  •