kostasfmx Posted November 9, 2012 Share Posted November 9, 2012 Hello I want to fit the hall image inside this , but i dont know how i change the borders.Any help? prestashop 1.5.2 Link to comment Share on other sites More sharing options...
kostasfmx Posted November 10, 2012 Author Share Posted November 10, 2012 Anyone? Link to comment Share on other sites More sharing options...
yaniv14 Posted November 10, 2012 Share Posted November 10, 2012 Just create/resize your categories images to the box size, I think it's 523x150 (I am looking at prestashop demo site) Link to comment Share on other sites More sharing options...
kostasfmx Posted November 11, 2012 Author Share Posted November 11, 2012 On 11/10/2012 at 4:53 PM, yaniv14 said: Just create/resize your categories images to the box size, I think it's 523x150 (I am looking at prestashop demo site) I did it but the borders still exists...any more ideas? Link to comment Share on other sites More sharing options...
yaniv14 Posted November 11, 2012 Share Posted November 11, 2012 So you good with the image size? And you just want to eliminate the border? Send a link to your site please Link to comment Share on other sites More sharing options...
kostasfmx Posted November 11, 2012 Author Share Posted November 11, 2012 (edited) 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 November 11, 2012 by kostasfmx (see edit history) Link to comment Share on other sites More sharing options...
yaniv14 Posted November 11, 2012 Share Posted November 11, 2012 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 Link to comment Share on other sites More sharing options...
kostasfmx Posted November 11, 2012 Author Share Posted November 11, 2012 (edited) 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 November 11, 2012 by kostasfmx (see edit history) Link to comment Share on other sites More sharing options...
yaniv14 Posted November 11, 2012 Share Posted November 11, 2012 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. 1 Link to comment Share on other sites More sharing options...
iuliann Posted June 12, 2013 Share Posted June 12, 2013 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. Link to comment Share on other sites More sharing options...
vekia Posted June 12, 2013 Share Posted June 12, 2013 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 More sharing options...
iuliann Posted June 12, 2013 Share Posted June 12, 2013 Yes, and I've realized I can do more to fit better my images. Changing the dimensions I can show whatever images I want. Link to comment Share on other sites More sharing options...
Recommended Posts