Results 1 to 10 of 12

Hybrid View

  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

 

 

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