ARTICLE type: Images --> patch 17-2 BUG!!

Use GitHub to post bug reports and error descriptions for phpwcms. Describe your problem detailed!
Moozie
Posts: 164
Joined: Sat 8. Nov 2003, 00:21
Location: Netherlands

Post by Moozie »

Oliver,

Addition to your suggestion to do:
.table_class {width: 300px;}

If I did this the image list appears OK, but in other pages where I use text + image (in text, right aligned) the image gets also a table of 300 pixels. If the pic itself is only 150 pix wide, it will align left and leave a blank space of 150 pixels on the rightside. And the page looks messed up.

I tried:
.table_class {width: 1px;}

And than both imagelist AND other pages with text + images appear OK. I was wondering why you choose .table_class {width: 300px;} where .table_class {width: 1px;} is better.

Or do I miss something?
User avatar
Oliver Georgi
Site Admin
Posts: 9900
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

Was only a sample ;-) (or better woraround).
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
Moozie
Posts: 164
Joined: Sat 8. Nov 2003, 00:21
Location: Netherlands

Post by Moozie »

But does it makes sence to you that if I use:

.table_class {width: 1px;}

that all is fine?
User avatar
Oliver Georgi
Site Admin
Posts: 9900
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

yes - absolute normal.

What you have done with .table_class {width: 1px;} is to say the browser to minimize the table to a width of 1px. But your images are wider than 1px that's why this is the new table limit.

Often it's better to set the no fixed width - then use .table_class {width: 1%;} - more optimal to the browser it defines browser should check for best width.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
Moozie
Posts: 164
Joined: Sat 8. Nov 2003, 00:21
Location: Netherlands

Post by Moozie »

Thanks. I take the 1% then instead if 1px. Made no dif in my test version.
Locked