View Full Version : Creating a stretching cell?
commador
12-21-2006, 02:31 PM
Hello all. Ill start off by laying down the basics. Im trying my hand at page creation and running into a snag. Ive already made my page in photoshop and sliced it up, and now Im doing the coding and tables in dreamweaver. All is going very smooth except one thing. I have 2 tables side by side in the center of the page, where all the content is going to go. As more info is added, I expect the table to expand downwards (so you would have to scroll). Ive seen this happen in premade templates Ive used, but Im doing this one from scratch and dont know how its done. Right now when the table expands dowards, all the images equally space out. How do I make the side images that were sliced automatically stretch to cover the distance from the top of the page, to the bottom?
danlefeb
12-21-2006, 02:42 PM
Use percentages for your tables. For example, put the table at 100% height, then put each row at 50%, assuming you have two rows. That will ensure that each one will be equal no matter what resolution it's viewed at. Of course, if you have images in your table then the table will always be at least as big as the image...unless you're using the image as a background for the table.
I'm not exactly sure how Dreamweaver does its slicing as I never use that feature - I prefer to do everything manually, that way when something goes wrong I know my code extremely well. :)
commador
12-22-2006, 05:01 PM
Thanks for the help. It steered me in the right direction anyway and now its all good. I just had to make a table with a "core" where the text would be, and the header and footer would basically stay the same, and the sides were 1px images that stretch. So now I can add as much info as I want and the tables grows. woo! :yes
vBulletin® v3.7.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.