WordPress.org

Ready to get started?Download WordPress

Forums

CSS syling a specific li (3 posts)

  1. davemcc
    Member
    Posted 4 years ago #

    Hello, Can any one help on the folowing:

    How do I style a specific li via CSS?

    If I use web developer in Firefox here is what I am trying to style:

    #dropmenu > li .page_item page-item-153 a

    basically I want to make The above page number 153 red and a different page number say 25 green

    Any help would be appreciated!!!

    Dave

    PS here is the site if it helps http://paintapot.org/beecraft/

  2. muthukswamy
    Member
    Posted 4 years ago #

    add this to CSS:

    .page-item-153{color:#d54e21!important;}
    .page-item-25{color:#d8b671!important;}
  3. davemcc
    Member
    Posted 4 years ago #

    Many thanks muthukswamy

    I just hadnt quite got it!!

    In the end the css I used is as follows

    #dropmenu .page-item-153 a{
    background-color: #0099CC;
    }

    I can now specify the drop downs BG colour

    Cheers

    dave

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.