Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Site spreads across screen

Status
Not open for further replies.

maddarlo

Technical User
Feb 21, 2007
3
GB
Hi,

I'm starting a new site, which can be seen at
I'm using Dreamweaver and the problem I'm having is that the content spreads right across the screen, from left to right, when I don't want it to!

Is there anything I can do to stop this?

Here is a screenshot (with the explorer window shrunk) of how I'd like it look. I guess I'd like white space down the right hand side or - even better - to have white space down the left and the right sides, with the content in the centre.

Hope someone can help!

Andy
 
All of your layout on your page is contained in nested tables. The outermost table starts after your <body> tag and is:
Code:
<table width="100%" border="0" cellpadding="1" height="79%">
While I would never advocate the use of tables for layout, you may want to play with the width attribute and see if that will get you closer to your goal.
For instance, you might start with:
Code:
<table width="[COLOR=blue]750px[/color]" border="0" cellpadding="1" height="79%">
or
Code:
<table width="[COLOR=blue]80%[/color]" border="0" cellpadding="1" height="79%">

Personally, I would do all of the layout without tables and style it with CSS (stlyesheets), but you are free to ignore me. [smile]

Greg
"Personally, I am always ready to learn, although I do not always like being taught." - Winston Churchill
 
Thanks Greg. I shall try that. Have never heard of CSS, to be honest. Am a bit of a novice. What is CSS and why is it better than tables?
 
CSS is short for Cascading Style Sheets. Dreamweaver has plenty of built-in support for styles. There are countless Web sites out there that discuss this, but you might want to start with Dreamweaver - css tutorial

Greg
"Personally, I am always ready to learn, although I do not always like being taught." - Winston Churchill
 
Dear Andy

I sympathise with your problem because I have the same with a site I was building for a friend of mine. Greg always gives good advice and I have looked at his recommended CSS tutorial but as is always the case many of these tutorials when you are used to working in a particular style, it comes as a bit of a shock when you become a beginner again and have to start from scratch. I use some CSS style sheets for some of the designs but I have still been using tables to layout my pages. There are some good lessons on Maybe I should go back to driving a cab! Good luck

guytoon
 
Thanks muchly, guys! You've been a big help!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top