Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Image Questions


Guest

Recommended Posts

I would also like to have the image centered! How do I center the picture in the product view and resize the image without resizing all the images throughout the entire web site? What do I need to do?

It would help the web site look much better if I could do that. :blush:

Link to comment
Share on other sites

I would also like to have the image centered! How do I center the picture in the product view and resize the image without resizing all the images throughout the entire web site? What do I need to do?

It would help the web site look much better if I could do that. :blush:

 

in the body descriptor of the css style sheet:

 

background-image: URL ('images/bloggs.jpg')  50% 50% no-repeat;

 

should do it.

 

If you want it to stay in one place (like a transparent water mark) while the page text scrolls over it, make yr image say. 60% transparent then specify:

 

BODY { 
 background-image: url('bloggs.png');
 background-attachment: fixed;
 background-position: 100% 100%;
 background-repeat: no-repeat;
}

 

You may have to faff around a little with the percentages, depending how you have your page elements padded, but you'll get 'er centered eventually!

 

Also you sometimes have to move the no-repeat in the top example to a separate line ala the bottom example , or it will tile like a b...h

 

Good luck!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...