Jump to content

Footer background problem [SOLVED]


Recommended Posts

I know there must be a pretty simple way around my problem but I've hit a brick wall with this so I really need some help.

I would really like the footer background in my shop to run the whole width of the web page and not just the width of the center column. Without my footers content getting moved to the left of the page. If you would like to take a look at what I am working with then heres the link http://www.simplyhoodiesuk.co.uk

As I already use the page div for the top background image I wouldnt be able to use that for the footer.

If anyone has any ideas on this I will be grateful.

Dickie

Link to comment
Share on other sites

Hi
The first thing, you have to exclude your footer div out of page div. Then you may give footer width 100%.
Also add this to your global.css, line 843:

#wrapperfoot {
   margin: 0 auto;
   width: 770px;
   text-align:left;
}



Result will be like in image.
hope it will help you

37064_uFZocbaZkoFYz4dJJzY5_t

Link to comment
Share on other sites

  • 1 month later...
  • 8 months later...

Well, in this case you also have to remove "footer" from the

<div id="page">

 

Currently, when you collapse all your div you have :

 

<div id="page">
<div id="header"></<div>
<div id="columns"></div>
<div id"=footer"></div>
</div>

 

Your footer is contained in the <div ="page"> and so the maximum width is limited by "page".

 

So to have your 100% width footer, you must do :

 

<div id="page">
<div id="header"></<div>
<div id="columns"></div>
 </div>

 <div id"=footer"></div>

 

Is it clear ? :)

Link to comment
Share on other sites

hmm... Can you tell me please in which file is this "page" div? In footer.tpl i have this:

*}
 {if !$content_only}
</div>
<!-- Right -->
<div id="right_column" class="column">
 {$HOOK_RIGHT_COLUMN}
</div>
  </div>
<!-- Footer -->
  <div id="footer">{$HOOK_FOOTER}</div>
 </div>
{/if}
</body>
</html>

 

there is no page :D Thank you for your patient :D

Link to comment
Share on other sites

Hi HanPL,

 

Take a look in header.tpl, you should find it here.

 

In footer.tpl you must have the </div> to close <div id="page">, so if you move it above <!-- Footer --> it should be good.

 

See below an example :

 

*}
 {if !$content_only}
    </div>
<!-- Right -->
    <div id="right_column" class="column">
	 {$HOOK_RIGHT_COLUMN}
    </div>
  </div>
 </div>
<!-- Footer -->
  <div id="footer">{$HOOK_FOOTER}</div>
{/if}
</body>
</html>

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...