Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Feb 2007
    Posts
    43
    Plugin Contributions
    0

    Default Header image width 100%?

    After a lot of searching I still haven't been able to get this. How can I make the header image take up the width of the screen? Does my template need to be edited rather than doing it with CSS?

    TIA!

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Header image width 100%?

    Can not see what you have to work with
    Post a link to your site
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Feb 2007
    Posts
    43
    Plugin Contributions
    0

    Default Re: Header image width 100%?

    There is nothing to see really lol. Trust me it's a zen cart install, I've just removed everything. It's the Free Blue template.

    http://www.gempra.com/home/

    Thanx

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

    Default Re: Header image width 100%?

    Your logo/header is easily adaptable to a flexible width (unlike many).
    Cut it into two pieces and stretch the straight horizontal end of one so they could together cover any possible width.

    There are a number of ways you can attach them to be flexible, but you might try using the left one with the name (and not stretched end) as the standard logo, and the right one as the background-image for #logoWrapper. Give #logoWrapper a width of 100% in your stylesheet.

    Google for sliding door method for the standard detailed tutorial on this.

  5. #5
    Join Date
    Feb 2007
    Posts
    43
    Plugin Contributions
    0

    Default Re: Header image width 100%?

    Thanx for the reply. I have used that technique before so I get what you're saying. I still cant seem to get it tho.

    I added this to my stylesheet but it doesn't seem to display the image:

    #logoWrapper {
    width: 100%;
    background: url('../images/gempralogo2.jpg') center center no-repeat;
    }

    If I remove the image from #headerContent then no image is displayed.

    #headerContent {
    background: url('../images/gempralogo2.jpg') center center no-repeat;
    padding-top: 9px;
    padding-right: 0px;
    padding-bottom: 9px;
    padding-left: 0px;
    }

    I dont know but it is driving me crazy lol.

  6. #6
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Header image width 100%?

    Your template for some unkown reason is not using logoWrapper yours appears to have 2 #nameWrapper and #headerContent
    If this were a ZC compliant template we could point you but as it has created it's own div's you should determine their order and purpose and you can compare to a normal layout looking at a tpl_header.php and then yours
    Zen-Venom Get Bitten

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

    Default Re: Header image width 100%?

    What is the standard/default width and height of the logowrapper and header??

    SK

  8. #8
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Header image width 100%?

    Quote Originally Posted by Resqjock
    What is the standard/default width and height of the logowrapper and header??
    As this can be template specific and you have not provided any details for your site, your version of ZenCart, basically nothing:

    By default(if you are using a template that has not altered it) logoWrapper is contained within the mainWrapper and inherits what ever width it specifies. Height is normally auto detected if there is an image contained
    Zen-Venom Get Bitten

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

    Default Re: Header image width 100%?

    Quote Originally Posted by kobra View Post
    As this can be template specific and you have not provided any details for your site, your version of ZenCart, basically nothing:

    By default(if you are using a template that has not altered it) logoWrapper is contained within the mainWrapper and inherits what ever width it specifies. Height is normally auto detected if there is an image contained
    Sorry, for not providing the info.

    I am running ZC 1.3.8a and I have not altered anything with regards to the header image area.

    What i want to do is place my logo image so it spans the total width of the header/mainwrapper. I had to reduce my current logo image to show completely. If I kept the image at its orginal size it gets cut off. here is a link to my site and I think you will know what I am talking about http://www.htpradios.com/store

    Can anyone help with this??

    Stan
    Last edited by Resqjock; 22 Mar 2009 at 08:46 PM. Reason: added link

  10. #10
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Header image width 100%?

    Not sure what you have going on???
    In IE - I see one smaller centered image with the large behind it

    In FF - I only see the small centered image but there is another image - header_bg.jpg - that is not readily visible as a background image that states "Impact Radio Accessories.
    Code:
    #logoWrapper{
    	background-image: url(../images/header_bg.jpg);
    	background-repeat: repeat-x;
    	background-color: #ffffff;
    	height: 100px;
    }
    You have the main wrapper set to 1050px and for a 1024 wide display this will always represent a scroll bar.

    Try setting this to about 990 to 1000px and adjust your image to match this width
    Zen-Venom Get Bitten

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v150 Header image width is not adjusting bottom of image is cut off
    By RonGin in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 23 Jul 2013, 06:09 PM
  2. Make 100*100 image file to below 10k !!
    By greenlight in forum General Questions
    Replies: 6
    Last Post: 24 Nov 2008, 09:56 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
  4. Breadcrumb 'header' is not 100% width.. please help.
    By rcrosier in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 26 Dec 2006, 11:34 PM

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