socialgo

Quick-tip: adjust position of header image

Published by: ezra vancil on 25th Apr 2009 | View all blogs by ezra vancil
When I get a private question that may be relevant to you I'll try to post the answer here on the blog so others can benefit. 

Sometimes you need to adjust where your header background image starts, to either align it better with the repeat function, or to align it better with your body content. Here is how you do that. This will push your background image (that was set to "FULL WIDTH" in the network designer header section) over to the left see pictures. We will use the #wrapper-header-outer, that is where Socialgo Network designer places the FULL WIDTH image: 

  This is what it looks like without doing anything:

header1.jpg

div#wrapper-header-outer.has-full-header-image { background-position: 200px 50%; }
This is what it looks like moved over 200px:

header-2.jpg

Now, you can also tell the image not to repeat with this code:
div#wrapper-header-outer.has-full-header-image {
background-position: 200px 50%;
background-repeat: no-repeat;
}



And, this is what it looks like:

header3.jpg 

Comments

5 Comments

  • doymarn
    by doymarn 9 months ago
    Hi ezra, you provide some very good articles, well written and informative, thanks

    Couple of quick questions:-

    1. if i have a free plan, can i enter the custom CSS overides like in the above, in the 'ADs Custom HTML box' in order to override the header CSS for a standard SG template?

    2. Is it ok to overide the height of the header in a CSS overide or even hide it on a standard SG template?

    3. One big frustration i have with SG is that it is so inconvenient to change a Premium network style and layout wise because once it is live then you are pretty much stuck because you really don't want to take down the network while you play with new styling and layouts. Do you have any advice that can ease this situation?

    That's it for now:)

    Keep up the good work
  • ezra vancil
    by ezra vancil 9 months ago
    doymarn, welcome!
    SG adjust the size of the header with line-hight.. or by an inline image that you upload through the admin. They don't actually apply any size properties to the #header but you can...

    - You can do a display:none on the header to get rid of it and do your own.
    #header {
    display: none;
    }

    I usually load my banner into the #header {background; url(images/myimage);
    and then adjust the size of the banner using the line height just to keep it simple.. you can override it with this. (put!important)

    div#header h1 a{ line-height:113px; }

    You can also adjust the H!'s padding

    div#header h1{padding:10px 25px;}

    I put the logo into the H1 a

    div#header h1 a{ background: url(mylogo.jpg) no-repeat 50% 50% ;}

    hope that helps.

    on the other issue.. I always use HTMLScout or some other app to grab the HTML and CSS off my SG site and work on it from my own hard-drive .. that way there is only a small testing period when i upload it to the SG admin.. where i tweek it.
  • doymarn
    by doymarn 9 months ago
    hi ezra, thanks for the prompt reply and answer, you're a star:)
  • fly123
    by fly123 2 months ago
    I can't stand the pressure and competition, Bathroom Vanities explained highly-paid but demanding position in his company recently.Fishing Rods My friend may have his own reasons, louis vuitton handbagsbut I don't think his decision is wise in reality. yy2010.5.5
  • AntoniaSalinas26
    by AntoniaSalinas26 15 days ago
    Following my own exploration, thousands of people on our planet get the personal loans at good banks. Hence, there is good possibilities to get a consolidation loan in any country.
Please login or sign up to post on this network.
Click here to sign up now.