Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

width of web pages


  • Please log in to reply

#1
loser

loser

    Member

  • 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

Advertisements


#2
thenotch

thenotch

    Member

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

An example would be as such:

<yourdefaultcssfile.css>
#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">
<head>
<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" />
</head>

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


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

#3
loser

loser

    Member

  • Topic Starter
  • Member
  • PipPip
  • 75 posts
first
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

#4
Allsortgroup

Allsortgroup

    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.

:whistling:
  • 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