Jump to content

How to Change the padding of scenecat to fit all picture


Recommended Posts

  On 11/11/2012 at 2:05 PM, yaniv14 said:

So you good with the image size?

And you just want to eliminate the border?

Send a link to your site please

 

I want my image to fill inside the grey box,yes elinminate the white borders,i think its a css something about padding!

my site

http://www.galleboutique.gr/prestashop

Edited by kostasfmx (see edit history)
Link to comment
Share on other sites

  On 11/11/2012 at 2:30 PM, yaniv14 said:

I don't see any padding, your image is not full size, make sure your image is exactly 523pxx153px.

to remove the border you need to edit themes/default/css/category.css lines 12 is the border, you can erase it or change it

 

Thanks for the responce

 

I found the css of scenecat

.content_scene_cat {
padding:5px;
border:1px solid #ccc;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
-moz-box-shadow: 0 1px 1px #e2e2e2;
-webkit-box-shadow: 0 1px 1px #e2e2e2;
box-shadow: 0 1px 1px #e2e2e2;
}

When i change the padding to 0 my image fill the left side but at the right side border still exists

I resize my picture a lot of time in diffrent dimension but no luck.

I inspect the element with firebug and i see in the html the div contain the scenecat have a class "allign center" and i thought maybe thats why i can eliminate the right border.

Any help where i find the html to delete align center?

Edited by kostasfmx (see edit history)
Link to comment
Share on other sites

div align center is located in themes/default/category.tpl.

but it won't change anything.

I don't understand what you mean "right border", border is like a line and I don't see anything once you delete the "border:1px solid #ccc;" from the css.

If you mean by border that the image is not stretching all the way on the right side. than go to back office -> preferences -> images, and change the category image width & height to: width:535px & height:157px. after you save you need to press "regenerate thumbnail" on the same page.

  • Like 1
Link to comment
Share on other sites

  • 7 months later...
  On 6/12/2013 at 12:19 PM, iuliann said:

That was the answer! I had same problem too. But in my case the right dimensions in the BO-->Preferences-->images-->category_default is 522x170 px.

 

so your problem is also solved? :-)

Link to comment
Share on other sites

×
×
  • Create New...