Jump to content

[SOLVED] table in a table


The_eXXe

Recommended Posts

Hi guys!

 

Think that you have a table or layer. how can we set the width of the table/layer static?

Some of you may say, setting width to some value. Ok it is for text. Layer or table will not go larger than the width itself.

 

What if you have a table or an image in a layer with width is larger than the layer/table?

 

I am really tired, exausted if there is a mistake in my english, sorry. I will attach a picture to make this problem much more clear.

 

The text in the picture called "A Few About Myself" is coming from database with HTML codes. I have provided a wysiwyg editor to let them make some HTML things. But think user made a table with width is larger than I expect (shown as in picture). Do you have any idea how to solve this situation?

 

First I was thinking parsing the string and find table width in it and change the size to maximum value which does not exceed the limit of the page, before writing to database. It looks like a little messy. Do you have any suggestion?

 

Thanks. Any help or at least help attempts will be appriciated  ;D

 

[attachment deleted by admin]

Link to comment
https://forums.phpfreaks.com/topic/48562-solved-table-in-a-table/
Share on other sites

Archived

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

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.