Jump to content

[Solved]Color attribute - Wont display 'texture' at correct size! grrrrr!


Recommended Posts

Hi guys,

 

Ok, I am trying to use an image as the 'texture' for one of my colour attributes. So, i created a gif at 20x20 pixels and uploaded it, then checked in my shop and could see that 20x20pixels was too large. So after measuring it it turns out it needs to be 15x15pixel to fit within the bounding box.

 

So i created same image but 15x15pixels and uploaded that. However, it still doesn't line up, because its displaying my 15x15pixel image at 20x20pixels still. If i right click (in firefox) on the image in my front end and choose 'display image info' it says :-

 

"15px × 15px (scaled to 20px × 20px)"

 

Here's a screenshot so you can see what the issue is. any help would be appreciated as always guys :)

 

yzqh.jpg

 

Vekia.............wake up! lol :)

Edited by dazlia (see edit history)
  • Like 1
Link to comment
Share on other sites

remove all shadow definitions from:

 

.attribute_list #color_to_pick_list li.selected {
border-radius: 15px;
-webkit-box-shadow: 0px 0px 0px 2px rgba(0, 0, 0, 1);
-moz-box-shadow: 0px 0px 0px 2px rgba(0, 0, 0, 1);
box-shadow: 0px 0px 0px 2px rgba(0, 0, 0, 1);
-webkit-transition: all .2s ease-in-out;
-moz-transition: all .2s ease-in-out;
transition: all .2s ease-in-out;
}

 

it's a part of /themes/millenium/css/product.css near 553 line

Link to comment
Share on other sites

@dazlia here is the solution for you:

 

/themes/default/css/product.css near line 207

 

add position:relative;

.attribute_list #color_to_pick_list li.selected {
border: 1px solid #000;
position:relative;
}

 

then in product.css add this style:

#color_to_pick_list img {position:absolute; left:-1px; top:-1px;}

  • Like 1
Link to comment
Share on other sites

  • 4 weeks later...
  • 1 year later...

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