Forum Moderators: mack

Message Too Old, No Replies

Small fixed size website within the screen - How to?

         

hwolff

11:26 am on Dec 7, 2004 (gmt 0)

10+ Year Member



I want to create a small site that has a fixed size (say 720*530 or so), with a coloured background surrounding it.

How would I go about doing this. Do I go with making just a large table that holds it all, or is there a smarter way. I don't really know hot to use CSS yet.

Macro

11:37 am on Dec 7, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WW.

You'd make your table to 720*530 but set the page background to the colour you want or use a background (repeating) image for the whole page. You'd avoid that colour appearing in the table by setting the table colour to white (or whatever other colour you want it).

hwolff

10:26 am on Dec 8, 2004 (gmt 0)

10+ Year Member



Thanks for the help. I've created the site with tables. like you suggested.

However... I have a few problems still.

1. Inside the table I have one row at the top with 7 collumns containing my navigation menu. The cells keep shifting in size. Do I need to make the table widt in percentages to avoid that, i.e. menu wordings being in two lines instead of one (which is what I want)? Or are there other smart ways to do it?

2. I want my table to be centered on the page, not just horisontally, but also vertically. I know how to do it horisontally, but I'm having trouble finding out what to do vertically.

3. Below my menu bar I have another table inside the second row of the first table, that will contain the content of the site. I would like to push this down a bit from my menu to get some free space on the site, for a better aestaethical experience. Is there a way to do this. I was thinking I could insert a new row with my desired height in between?

Hmm, I may have answered that third question myself while typing ;-)