Jump to content

Fixed left margin before left column


Recommended Posts

Hi there, I think that what I need is very simple.

 

I want to put a background image (178 px, ie.) on the left side of my store. Then I need a left margin of 180 px.

 

I'm already did that, the problem is if I minimize the browser the prestashop main page (left, center and right columns) goes over that background image.

 

I don't want that. I want a fixed width at the left of the page, so the background image will always there, fixed to the left column.

 

I know that's in global.css, I know that's in page properties, I just don't know how exactly deal with that area outside the Prestashop main page.

 

Is there anyone that could help?

 

P.S. Site is not alive, so there's no link to check that. I'm attaching the images of both screens.

 

 

 

PrestaShop™ 1.5.4.1, Default Theme

Link to comment
Share on other sites

Hi,

DId you add it as a body background image at the moment? If so, its behavior is absolutely normal. To avoid it, I would add a new div to the left column. Add position: relative to the left column itself, and position:absolute to the div. Make this div span across the size of the image with fixed dimensions, then set top: 0 and left: -178px. It should work :)

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...