WordPress.org

Ready to get started?Download WordPress

Forums

reducing white space in left sidebar (3 posts)

  1. kiersten
    Member
    Posted 8 years ago #

    Hi, I am trying to make the links on my sidebar have less space between them, and less space between the link categories. Can someone tell me where to change the css code to do that?
    thanks.

    http://kmareka.com

  2. Buz Carter
    Member
    Posted 8 years ago #

    looked at your styles, saw this:
    li {
    padding:0.3em 0;
    margin:0;
    }

    the culprit is your padding declaration. quick css 101. you're using a shorthand version of padding. by only supplyin two values you're telling browser to repeat these two for the missing values.

    also, the syntax is:

    padding: top right bottom left;

    so an equivalent markup for your statment is:

    padding: 0.3em 0 0.3em 0;

    that's .3em for top and bottom and 0 for right and left;

    instead do this:

    padding: 0.3em 0 0 0;

    that make sense?

  3. kiersten
    Member
    Posted 8 years ago #

    Hi, Thanks -- I tried this - changed it to

    padding: 0.3em 0 0 0

    but when I looked at the page it seemed to be the same. Any other thoughts?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.