order invoice view style

  • Posts: 28
  • Thank you received: 0
11 years 9 months ago #86983

Hi there,

in the backend for the view order->invoice , under additional infromation, I have a field that contains an image. I need that image to stretch to the column width/height. I do not want the TD to auto stretch. The content of the td should stretch to fit the width and height of the td.

Please help.

Thank You

Please Log in or Create an account to join the conversation.

  • Posts: 2334
  • Thank you received: 403
11 years 9 months ago #87009

Hi there,

It's just a css matter.
Try to specify a weight and/or a height in the td where you added your picture to make it fit your needs.
you can also put your image in a div to allow playing with more css rules.

Please Log in or Create an account to join the conversation.

  • Posts: 28
  • Thank you received: 0
11 years 9 months ago #87078

hey there,

I will look into weigth.

However, I have tried everything to style it, including these attributes on their own and together or on a inner div , the td or the parent table:

max-width:100%;

max-height:100%;

display:block;

display:inline;

Also tried wrapping.

I just need whatever is inside the td, e.g. my image, to scale down/stretch to fit the td, because images vary in size.

Please Log in or Create an account to join the conversation.

  • Posts: 82796
  • Thank you received: 13357
  • MODERATOR
11 years 9 months ago #87259

Such CSS should do the job:

.hikashop_custom_image_link{ width: 100px !important; }

Please Log in or Create an account to join the conversation.

Time to create page: 0.067 seconds
Powered by Kunena Forum