Click to See Complete Forum and Search --> : Question about tables


CoderJohan
02-21-2003, 03:34 AM
Hello
I'm currently working with DWMX and i like it alot, but these days a webpaged demands alot of a programmer to be interessting... So i have a question about tables...

It's very common to use this i use it all the time but haven't dug deep into what you can do with it... so my question is..

I have seen on webpages tablecolums that work independently...
e.x If you have a table with one row and 2 colums... In the right on you place an image and in the left one you type text. This works aslong as the textrows is smaller or equal size as the image if you go over the image size the image will move down to be more centered and mess up the layout... So i thought "Maby put a table inside the colum would work?" Well it did if you would like a table to work independently but if the text rows exeeds the table height inside the right colum the table will move down like the image...

I have seen this type of layout on webpages where the table or image doesn't move and i have tried and tried but faild to replicate that feature... I even taken time to look at the code but it's so messy with lots of tables and so so i can't figure out how it all effects the table what is the driving force that makes it stick to it's place...

Do i make any sens to you? I hope :) And i hope you can help me out with this and fast... I'm going away this weekend and taking my laptop with me to work on the page

Thanks once again :)
//Johan

autocolismo
02-21-2003, 06:51 AM
i don't know if i undersdtood what you said but i think that if you align your image to "TOP" (valign="top") instead of middle should work out.

CoderJohan
02-21-2003, 12:49 PM
Naaa that didn't do the trick...
oki lrts say you have a menu in the left colum of a table and in the right you have text...

The menu is 200px height now... You type text in the right colum all is fine untill you go over the end of the menu. Then the menu move down a bit when you hit enter and continues to move down untill your done typing.. When you look at the layout now you have a menu which is more in the middle of the colum then on the top where it should be... My question is... How can i make it stop at the top and not moving when i have typed like over 20 rows or so...?

Does this make anybetter sens? I hope so :)
//Johan

CJ@G3
03-05-2003, 10:57 AM
give us an example. the code or put the code up on the web and link us.

mzanimephp
03-12-2003, 02:04 PM
Oh... I know exactly what you are talking about! I experienced the very same problem this week with a smaller web site I was working on.

Look at this page on my site.

http://www.mzanime.com/av/

There we have two columns and its true that if you add a lot of content to the right side the content (or rows) in the left side will move down towards the center.

Thats just a default, of the table trying to equalize the empty space on the left side.

-What you have to do is make sure the left column is set to VALIGN=TOP (verticle), then make a smaller table within it. This smaller table will probably look best with its width set to 100%.

Hope this helps.