WordPress.org

Forums

[resolved] Is this the code (in my style.css) for stuff in the top left panel? (3 posts)

  1. energymv
    Member
    Posted 6 years ago #

    At http://www.energyanalysis.org i want my blog title and tagline to sit a little more vertically centered on the background logo.png, which is nothing more than a cropped infrared image. I would also like to expand the logo.png infrared image in height by a few pixels, but right now that's as big as my theme will display it.

    I suspect the following snippet from style.css needs to be modified, but how?

    #logo {
    height:57px;
    width:627px;
    background:url(images/logo.png) no-repeat;
    display:inline;
    float:left;
    margin:28px 0 20px 6px;
    }
    #logo br {
    display:none;
    }
    #logo a,
    #logo a:visited {
    display:block;
    font:bold 33px/40px arial;
    color:#313437;
    margin:-7px 0 0 55px;
    }
    #logo em {
    display:block;
    clear:both;
    font:bold 15px/20px arial;
    color:#035f26;
    margin:-5px 0 0 56px;
    }

  2. stvwlf
    Member
    Posted 6 years ago #

    in this:

    #logo a,
    #logo a:visited {
    display:block;
    font:bold 33px/40px arial;
    color:#313437;
    margin:-7px 0 0 55px;
    }

    change -7px to 0

    you can make the image taller by adding a statement to this block:

    #logo {
    height:57px;
    width:627px;
    background:url(images/logo.png) no-repeat;
    display:inline;
    float:left;
    margin:28px 0 20px 6px;
    }

    add a line padding: 10px 0;

    you will have to play with the 10px to get the image height you want

    you will also need to adjust the margin line in that block - 28px is the top margin and 20px is the bottom margin - as you add padding make the margin numbers smaller to compensate

  3. energymv
    Member
    Posted 6 years ago #

    Nice! Thank you very much. I took your suggestion and then did a bit more playing with the padding and margins and width.

Topic Closed

This topic has been closed to new replies.

About this Topic