![]() |
|
#1
|
|||
|
|||
Centralised web pagesDear 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
|
|||
|
|||
|
dohhhh
sorrry, simple html (<center>) is of course the answer!! |
|
#3
|
|||
|
|||
Amazing what 10 minutes can doThat 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
|
|||
|
|||
|
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
|
||||
|
||||
How to center content in a web pageI 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:
Another, tested, sample code here: http://www.desilva.biz/forum/showthr...=4883#post4883 __________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
|
#6
|
|||
|
|||
|
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 GIDBlog
Once again, no time for hobbies by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
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 04:11 |
| Funny AdSense ads on web pages | jrobbio | Open Discussion Forum | 2 | 18-Jul-2003 07:11 |
| carry logging state across pages | skyloon | MySQL / PHP Forum | 1 | 30-Jun-2003 06:03 |
| Search Engine Positioning 101 and 201 "How To" Tips... | 000 | Search Engine Optimization Forum | 0 | 29-May-2003 11:34 |
| Link submission pages to search engines directories invisible web but not FFA or PPC | jrobbio | Advertising & Affiliates Forum | 4 | 10-Apr-2003 20:01 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The