Results 1 to 10 of 10
  1. #1
    Join Date
    Aug 2008
    Posts
    340
    Plugin Contributions
    0

    Default header width modification in CSS

    hello
    I have installed a Zencart template with a horizontal header displayed the full length of the screen. But I would like the header be the same length as the main container. (750px)
    I went looking for the CSS file in my template classic > css > stylesheet.css

    #logoWrapper{
    background-image: url(../images/header_bg.jpg);
    background-repeat: repeat-x;
    background-color: #ffffff;
    height:75px;
    }

    and changed it in:

    #logoWrapper{
    background-image: url(../images/header_bg.jpg);
    background-color: #ffffff;
    height:75px;
    width:750px;
    }

    Than I saved the file , but nothing happened in the browser. It is still a header
    over the full length of the screen.

  2. #2
    Join Date
    Mar 2007
    Location
    AZ
    Posts
    1,911
    Plugin Contributions
    2

    Default Re: header width modification in CSS

    Look at the codes for logo and/or header wrapper.

    Tina

  3. #3
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: header width modification in CSS

    You need to give a link so we can see your site if you want useful advice here.

    If you have installed a template, that template's folder is the place to make changes, not /classic/.

  4. #4
    Join Date
    Aug 2008
    Posts
    340
    Plugin Contributions
    0

    Default Re: header width modification in CSS

    Has it something to do with cache settings??

  5. #5
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: header width modification in CSS

    What is the name of your template? Can you post a link to your site?

  6. #6
    Join Date
    Aug 2008
    Posts
    340
    Plugin Contributions
    0

    Default Re: header width modification in CSS

    Thx gjh42,
    I looked in my template folder > css and made the same changes
    width:750px
    removed: repeat-x
    and it works:-)

    The site is still local, so I can't give you the url yet

  7. #7
    Join Date
    Aug 2008
    Posts
    340
    Plugin Contributions
    0

    Default Re: header width modification in CSS

    My header is 750px long and begins at the left of my screen. I'd like to see hem centered.
    I tried to insert the following code to for the header:

    horizontal-align:center;
    but the header is still starting at the upper left of the screen.

    Does anyone see what I do wrong?

  8. #8
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: header width modification in CSS

    To position the background image within #logoWrapper, try something like
    background-position: top center;
    To position #logoWrapper in the header, try
    margin: auto;
    Code:
    #logoWrapper{
        background-image: url(../images/header_bg.jpg);
        background-position: top center;
        background-color: #ffffff;
        height:75px;
        width:750px;
        margin: auto;
        }

  9. #9
    Join Date
    Aug 2008
    Posts
    340
    Plugin Contributions
    0

    Default Re: header width modification in CSS

    Thx:-)
    it worked just fine.

  10. #10
    Join Date
    Aug 2008
    Posts
    340
    Plugin Contributions
    0

    Default Re: header width modification in CSS


 

 

Similar Threads

  1. v139h Modification to Paul's version of CSS dynamic menu - support?
    By lindenboy in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 15 Jan 2013, 01:54 AM
  2. Width Issues outside of the stylesheet.css code modification?
    By uruharacosplay in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 18 Apr 2012, 05:15 AM
  3. 100% width header - fixed width content
    By Empire402 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 5 Jan 2007, 03:49 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg