Jump to content


Photo

Need help getting picture to fit frame

help css

  • Please log in to reply
5 replies to this topic

#1 fletcher91

fletcher91

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 21 November 2014 - 10:33 AM

Hi thank you for taking the time to read this.

 

I have been trying all yesterday to get this fabric swatch to fit the 50x50px container box. I have been playing about with the css code and I am now completely stuck.

 

This is the code I changed the make the container 50x50px but the picture inside is not filling the space:

 

.product-options li a {

width:50px;
height:50px;
padding:none;
display:inline-block;
border:1px solid #D1D1D1;
margin-bottom:10px;
}

 

I will include the css code I believe needs to be changed and a picture of the box.

 

Thank you so much.

Dan

Attached Files



looking for the best presta addons with outstanding support? check this: PrestaShop Modules

#2 vekia

vekia

    Advanced Member

  • Members
  • PipPipPip
  • 9808 posts

Posted 21 November 2014 - 11:01 AM

any chance to see it live?

there is a chance that some other styles changing the way of how it appears (not related to product.css)


free tutorials, free templates, free addons, prestashop modules MndfRK4.png  lpHMrZ5.png  gtKHYO7.png  google-48.png


#3 fletcher91

fletcher91

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 21 November 2014 - 11:07 AM

Hey thanks for replying. Here is a link to the site:

 

http://fletcherwardd...troller=product



#4 vekia

vekia

    Advanced Member

  • Members
  • PipPipPip
  • 9808 posts

Posted 21 November 2014 - 02:21 PM

in product.css or in global.css place this code:
 

#color_to_pick_list img {
	width:50px;height:auto!important;
}

free tutorials, free templates, free addons, prestashop modules MndfRK4.png  lpHMrZ5.png  gtKHYO7.png  google-48.png


#5 fletcher91

fletcher91

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 21 November 2014 - 03:02 PM

THANK YOU SO MUCH!!

 

Would give you a big hug if I could! 

 

:)



#6 vekia

vekia

    Advanced Member

  • Members
  • PipPipPip
  • 9808 posts

Posted 24 November 2014 - 04:19 PM

you're welcome :-)

glad to hear that i could help a little :-)


free tutorials, free templates, free addons, prestashop modules MndfRK4.png  lpHMrZ5.png  gtKHYO7.png  google-48.png






IPB Skin By Virteq