1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

css styling for the last node

Discussion in 'Styling and Customization Questions' started by ShadyX, May 20, 2011.

  1. ShadyX

    ShadyX Well-Known Member

    well i had a little search and couldn't really find anything, im trying to apply css to the last forum node in each category to achieve rounded corners.

    [​IMG]


    i cant seem to find a way, can anyone help?

    this is the last thing i need to do before i roll the new theme out on to my forum :)

    thanks.
     
  2. Forsaken

    Forsaken Well-Known Member

    Code:
    .nodeList .forum.level_2:last-child,
    .nodeList .page.level_2:last-child,
    .nodeList .link.level_2:last-child
    {
        border-radius:0px 0px 10px 10px;
    
    }
     
  3. ShadyX

    ShadyX Well-Known Member

    I tried adding it to extra.css , node_list.css and node_forum.css but it does not seem to work :(
     
  4. Forsaken

    Forsaken Well-Known Member

    Forgot I made changes to my nodelist.

    Code:
    .nodeList .categoryForumNodeInfo, .nodeList .forumNodeInfo, .nodeList .pageNodeInfo, .nodeList .linkNodeInfo
    {
    border-radius:0px 0px 10px 10px;
    }
    This should work for your site.
     
  5. ShadyX

    ShadyX Well-Known Member

    It makes every node have rounded corners, im trying to just apply it to the last node :)
     
  6. Forsaken

    Forsaken Well-Known Member

    Add :last-child, I just copied the declaration from your style.

    Code:
    .nodeList .forumNodeInfo:last-child,
    .nodeList .pageNodeInfo:last-child,
    .nodeList .linkNodeInfo:last-child
    {
    border-radius:0px 0px 10px 10px;
    }
     
  7. ShadyX

    ShadyX Well-Known Member

    I am still having the same problem, i tried copy pasting the code you just gave me to extra.css and adding :last-child, to the end of the previous codes
     
  8. ShadyX

    ShadyX Well-Known Member

    If anybody could help with this i would be really greatful :)
     
  9. ShadyX

    ShadyX Well-Known Member

    Im still looking for an answer! :p
     

Share This Page