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

Is it possible to style the first post of a thread slightly different from the rest?

Discussion in 'Styling and Customization Questions' started by RobinHood, Mar 12, 2012.

  1. RobinHood

    RobinHood Well-Known Member

    I'd like to remove the border from this css, only on the first post of every thread though. Does anyone know how I might be able to do that please? :)

    .messageList .message {
    border-top: 1px solid #D7E1FC;
    }
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Add this to EXTRA.css:
    Code:
    .messageList .message:first-child {
    border-top: 1px solid #D7E1FC;
    }
    That will apply to the first post on every page.
     
    RobinHood and duydangle like this.
  3. RobinHood

    RobinHood Well-Known Member

    Awesome, thank you Brogan :)

    The following code worked.

    Code:
    .messageList .message:first-child {
    border-top: none;
    }
     

Share This Page