GIDForums  

Go Back   GIDForums > Webmaster Forums > Web Design Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 05-Sep-2003, 04:38
ukrspp21 ukrspp21 is offline
New Member
 
Join Date: Jul 2003
Location: London
Posts: 17
ukrspp21 is an unknown quantity at this point

Centralised web pages


Dear All

I am sorry this thread is a little off topic, however does anyone know how to display a fixed size web page in the centre of the screen. My page is a series of tables with a fixed width of about 800px. I run my monitor at 1280x1024, which means that my page is displayed in the top left corner of my screen.

I have noticed that people like e-bay can keep theirs in the centre of the screen. I downloaded their site to see if I could figure how to do it. Unfortunately most was in JavaScript, not my forte.

Can anyone help?

Best regards

Philip
  #2  
Old 05-Sep-2003, 04:48
ukrspp21 ukrspp21 is offline
New Member
 
Join Date: Jul 2003
Location: London
Posts: 17
ukrspp21 is an unknown quantity at this point
dohhhh

sorrry, simple html (<center>) is of course the answer!!
  #3  
Old 05-Sep-2003, 08:55
Garth Farley Garth Farley is offline
Invalid Email Address
 
Join Date: May 2002
Location: Ireland
Posts: 638
Garth Farley is a jewel in the roughGarth Farley is a jewel in the roughGarth Farley is a jewel in the rough
Talking

Amazing what 10 minutes can do


That might work, but I recommend a 3 column table, with the center column width of 760 - for your content, and the other 2 columns width of 50% - to space it equally in the center of the screen.

GF
  #4  
Old 05-Sep-2003, 09:00
ukrspp21 ukrspp21 is offline
New Member
 
Join Date: Jul 2003
Location: London
Posts: 17
ukrspp21 is an unknown quantity at this point
Yeah 10 minutes and a truly Homer Simpson moment!! The <center> tags are working at the mo, however I shall certainly keep your tip in mind when developing future pages.

Thanks

Phil
  #5  
Old 05-Sep-2003, 18:12
JdS's Avatar
JdS JdS is offline
Senior Member
 
Join Date: Aug 2001
Location: KUL, Malaysia
Posts: 3,371
JdS will become famous soon enough

How to center content in a web page


I believe the <center> tags are deprecated in XHTML, though I haven't really verified this just now.

For anyone interested in an alternative way, here's one using CSS (and margin:auto):
HTML Code:
<body> <table style="width:760px; margin:auto;"> <!-- row and cells --> </table> </body>

Another, tested, sample code here: http://www.desilva.biz/forum/showthr...=4883#post4883
  #6  
Old 08-Sep-2003, 17:17
Kalphegor Kalphegor is offline
New Member
 
Join Date: Sep 2003
Location: Romania
Posts: 8
Kalphegor is an unknown quantity at this point
try with frames like this:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<title>your site name here</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">
</head>
<frameset cols="*,765,*" frameborder="no" framespacing="0" border="0">
<frame src="left.htm" name="left" scrolling="no" noresize> {what page to display at left}
<frame src="center.htm" name="center" scrolling="auto" noresize> {what page to display in center}
<frame src="right.htm" name="right" scrolling="no" noresize> {what page to display at right}
</frameset>
</html>

and an example at this address:
www.kalphegor.go.ro
 

Recent GIDBlogPrepping for deployment by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
one of the web pages prints out differently to the others KiloKilo Web Design Forum 5 21-Jul-2003 03:11
Funny AdSense ads on web pages jrobbio Open Discussion Forum 2 18-Jul-2003 06:11
carry logging state across pages skyloon MySQL / PHP Forum 1 30-Jun-2003 05:03
Search Engine Positioning 101 and 201 "How To" Tips... 000 Search Engine Optimization Forum 0 29-May-2003 10:34
Link submission pages to search engines directories invisible web but not FFA or PPC jrobbio Advertising & Affiliates Forum 4 10-Apr-2003 19:01

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 23:27.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.