Post by Donce » Fri Oct 23, 2009 7:04 am

Hello everybody,

ive got one question, how to make widden this table,

http://www.part.lt/img/c55ccd1ee77b257d ... fade78.png

thanks.

New member

Posts

Joined
Fri Aug 28, 2009 8:22 pm

Post by fido-x » Fri Oct 23, 2009 3:25 pm

To set the cell width in the table, use:

Code: Select all

<td width="25%">
or

Code: Select all

<td style="width: 25%;">
for a percentage width (set the percentage to whatever is suitable).

Or you can use:

Code: Select all

<td width="150">
or

Code: Select all

<td width="150px">
or even

Code: Select all

<td style="width: 150px;">
for fixed width cells (again, set the width to whatever is suitable).

Image
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool

If you're not living on the edge ... you're taking up too much space!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia

Post by Donce » Fri Oct 23, 2009 4:13 pm

Thanks for the reply Fido,

i see what you mean, and i agree with that..but, since i try to change values in product.tpl, nothing happens. i can reduce picture, to make that field widder..

p.s

when i change image size in admin, it widdens, but very little, not enough for text in one line..

New member

Posts

Joined
Fri Aug 28, 2009 8:22 pm

Post by fido-x » Fri Oct 23, 2009 4:53 pm

Donce wrote:..but, since i try to change values in product.tpl, nothing happens.
Line 8 in "product.tpl" starts with:

Code: Select all

<td style="text-align: center; width: 250px; vertical-align: top;">
and sets the width for the cell containing the product image.

Line 10 in the same file starts with:

Code: Select all

<td style="padding-left: 15px; width: 296px; vertical-align: top;">
and sets the width of the cell containing the price, model, options, etc.

You'll note that they both have widths. You may have to change both (if you increase one, decrease the other accordingly). You'll also need to bear in mind the width of the content area. If you make the table cells too wide, the content area won't fit between the columns, and will end up with the content sitting below the columns.

Image
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool

If you're not living on the edge ... you're taking up too much space!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia

Post by Donce » Fri Oct 23, 2009 5:17 pm

thank you Fido, it helped.

Greetings from Lithuania

New member

Posts

Joined
Fri Aug 28, 2009 8:22 pm

Post by fido-x » Fri Oct 23, 2009 5:19 pm

You're welcome.

Image
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool

If you're not living on the edge ... you're taking up too much space!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia
Who is online

Users browsing this forum: No registered users and 4 guests