Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works

width of web pages

  • Please log in to reply




  • Member
  • PipPip
  • 75 posts
i notice that a lot of web pages are skinnier than my screen

how do people make it so theyre so skinny?

do you have to specify the size of the images you use or the tables or what?

how big should you make everything

i use dreamweaver mx

thanks so so much
  • 0





  • Retired Staff
  • 668 posts
You could use tables but you SHOULD use CSS

An example would be as such:

#content {
	width: 780px;
	margin-right: auto;
	margin-left: auto;

And then your html file:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>your title</title>
<link href="yourdefaultcssfile.css" rel="stylesheet" type="text/css" />

<div id="content">your content</div>

This is a VERY basic layout... makes the box 780px wide and aligned in the center

Edited by thenotch, 15 April 2006 - 08:58 PM.

  • 0




  • Topic Starter
  • Member
  • PipPip
  • 75 posts
thanks a whole lot for replying

i dont know what css is (sorry i should have said i dont know s***)

i actually didnt understand the other part either

could i make a table that is set to 780 pixels?

thanks again
  • 0



    I SPAMMED Too Much!

  • Banned
  • PipPipPip
  • 905 posts
Hi there,

CSS stands for cascading style sheets.

You can include css in your avarage html file or you can make your own sheet.css file and all of your pages can like to it.

A CSS file basically positions everything and does all the font, table widths, colors etc.

Its really easy to use. Ive got a book on css and it really helps. I picked it up within a few weeks.

Also, i use page widths around 780px - 820px. (They are modorate sizes so most screens can display it fully).

Also have a look at these...

1) http://www.w3.org/Style/CSS/

2) http://www.w3schools...css/default.asp

3) http://www.csszengarden.com/

4) http://www.htmlhelp.com/reference/css/

5) http://www.google.co...nition&ct=title

Hope that helps.

  • 0

Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP