dream weaver training - centralising page
The UK's Number 1 for Microsoft Office Training Add this page to your favourites/bookmarksBookmark page
 
View printable version of pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Dreamweaver Training and help » dream weaver training - Centralising a page

dream weaver training - Centralising a page

resolvedResolved · Low Priority · Version Standard

replyReply Tue 16 Jan 2007, 19:22Delegate Sara said...

Sara has attended:
Dreamweaver 8 Introduction course
Dreamweaver 8 Intermediate course

Centralising a page

How can you get a page to appear in the middle of your screen as a fixed size panel? e.g. http://www.guildfordymca.org.uk/

Thanks

Sara

For upcoming training course dates see: Pricing & availability

replyReply Wed 17 Jan 2007, 12:12Trainer Rich said...

Using table to centre your content on a web page

Hi Sara,

The most common method to achieve this is put all of your content into a single celled table. Then set the table properties to be aligned to the centre and a certain width (eg. 700px) or percentage (eg. 70%).

You may notice the code for the web site you pasted looks like this:
<table width="720" border="0" align="center" cellpadding="0" cellspacing="0">
They have also turned off borders etc. so the visitor can't see that tables are used for the layout. To see a web page's code, in IE7 go to Page -> view source. In Firefox go to View -> Page source.

However, you may like to use the new CSS method, which is to put everything in a container (or DIV) which has similar centred and fixed/percentage width properties.

I hope this helps. Let me know if you achieve the result you're after.

Regards, Rich

 


Microsoft Certified Partner Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses Security Seal verified by visa, mastercard securecard