chris linford get going guides
item1

Code for Centred page which is 750 pixels wide

<div id="PageDiv" style="position:relative; min-height:100%; margin:auto; width:750px">

<img src="icon.gif" border=0 width=750 height=130 alt="item1" style="float:left"></div>

Code for Left aligned page which is 750 pixels wide

<div id="PageDiv" style="position:left; min-height:100%; width:750px">

<img src="icon.gif" border=0 width=750 height=130 alt="item1" style="float:left"></div>

Code for Right aligned page which is 750 pixels wide

<div id="PageDiv" style="position:right; min-height:100%; margin-left:auto; margin-right:0px; width:750px">

<img src="icon.gif" border=0 width=750 height=130 alt="item1" style="float:left"></div>

Page control with DIVs

Divs allow you to have a set page size for your website. This helps you to control the design of your page, rather than the "rubber-banding" effect you may have in simple HTML. This site has a set page size.

In the HTML code you can define the layout of the whole page using DIVs in the <body> section of the code. All the design aspects of your page and content should come after the opening <div> command and before the closing </div> command.

You can identify this DIV by giving it the ID of "PageDIV"

You can also have the page be aligned in the left, right or centred on the browser. Normally centred is all you would use. The only bit of code that changes is the margin.

In the code sample I have placed an image to demonstrate where the content should go. You should replace this with your own content.

Note: you can use table layouts within a DIV

pev2
next1

facebook
linkedin
twitter
youtube
item7 return to home page Chris Linford Get Going Guides return to home page chris linford get going guides