Jump to content


Photo
- - - - -

Sub-menu offset color change


  • Please log in to reply
2 replies to this topic

#1 MrFent

MrFent

    Super Member

  • Members


  • 220 posts
  • Country: Country Flag

Posted 24 February 2011 - 07:35 AM

Please Login or Register to see this Hidden Content

I wanted to increase the left margin on the "services" submenu. * Custom Mowing * Full Landscaping * Mulch Spreading * Hedge & Tree Trimming * Snow Removal * Leaf Cleanup So thanks to your awesome tutorial on firebug, I added the CSS .widget ul.sub-menu (margin-left: 10px; } Everything worked great, so then I wanted to change the color of that submenu so I added .widget ul.sub-menu {color: #207a3c; margin-left: 10px; } No change, so tried .widget ul.sub-menu a{color: #207a3c; margin-left: 10px; } The colors changed, but now there is an unwanted indent on Hedge & Tree Trimming. This is the only link that used up two lines. I'm not sure how to fix.

#2 Kate

Kate

    Advocate

  • Members
  • 3039 posts

Posted 24 February 2011 - 01:37 PM

I'm guessing that's because you added the left margin to the ``. Try adding it to the `
  • ` instead.

    #3 MrFent

    MrFent

      Super Member

    • Members


    • 220 posts
    • Country: Country Flag

    Posted 24 February 2011 - 03:23 PM

    Excellent, thanks a bunch