Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website Design Forum


You are currently viewing our Website Design Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Centering my web page on the screen
Old 03-03-2005, 06:13 PM Centering my web page on the screen
Junior Talker

Posts: 3
Trades: 0
Ok, Hi, first post so be gentle.

I have recently create and uploaded my website I created using Dreamweaver MX. At first I designed all the pages in 1024x768 resolution, not thinking about anyone elses screen resolution. When I tried to view my website on my laptop I could barely fit any of it on the screen. I notice that on many sites the web page is centred on the screen, even if you make the window smaller it alters itself to fit.

After reading through the tutorials in the help files I somehow managed to centre the page, only to have some of the text leave its layout cell. After trying to fix this the page itself became corrupted and I had to start again. Anyway, the page is now re-created, but I cannot for the life of me follow the steps I had taken before to centre my web page. You may look on www.joeandyland.com to see what I mean. Everything is over to the left. I have only altered the homepage until I am sure I can fix the rest of the site.

If anyone is confused about what I am talking about please ask me to be clearer as I really need this sorted out as soon as possible.

Thank you for reading this far, and thank you in advance for your help.

Andy.
angel is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-03-2005, 06:59 PM
LGR
Extreme Talker

Posts: 241
Trades: 0
The link you have provided is unavailable and doesn't actually show anything.

But, if you set your table width as a percentage, rather than in pixels, it should resize itself accordingly.
LGR is offline
Reply With Quote
View Public Profile
 
Old 03-03-2005, 07:49 PM
Junior Talker

Posts: 3
Trades: 0
Thanks for the speedy reply, but I am still having problems. I've activated the site so you can take a lot now to see what I mean. Some sites like www.caligari.com sow perfectly what I am trying to describe. If you restore down your internet explorer then make the window horizontally smaller the website remains in the centre of the screen. I have created mine using Layout cells rather than tables, so I am unsure of what I need to do. First I managed to centre the page using a CSS style I created, but for some reason I cannot make it do it again. The websites which I presume you have createds suit the page very well, but they do not automatically centre themselves in the views screen as the Caligari one does, and what I wish mine to do.

Sorry if I wasn't clear... or if I was and I just didn't understand what you meant

Like I said, new to this

Andy.
angel is offline
Reply With Quote
View Public Profile
 
Old 03-04-2005, 08:18 AM Old school
aboyd's Avatar
Skilled Talker

Posts: 61
Location: USA
Trades: 0
Quote:
Originally Posted by angel
If you restore down your internet explorer then make the window horizontally smaller the website remains in the centre of the screen. I have created mine using Layout cells rather than tables, so I am unsure of what I need to do. First I managed to centre the page using a CSS style I created, but for some reason I cannot make it do it again.
Cheat. Use HTML 4 tags. Just wrap the content in div tags that have align=center for the attribute. In other words, like this:

<div align="center">
tables, text, images, whatever you want centered
</div>

Of course, if "using Layout cells rather than tables" means that you have used absolutely-positioned DIVs, then you'll have to undo all of that before the centering will work. Also, if you're determined to use CSS to center it, there is only 1 real way to do it, and I think only Mozila, Opera, and the very latest IE (SP2) support it, so most people on old versions of IE won't see it. It's like this:

body {
margin-left: auto;
margin-right: auto;
}
__________________

Please login or register to view this content. Registration is FREE
- geek blog & free phpBB mods

Please login or register to view this content. Registration is FREE
- tools & forums for writers

Please login or register to view this content. Registration is FREE
- dating advice for men, from women
aboyd is offline
Reply With Quote
View Public Profile Visit aboyd's homepage!
 
Old 03-04-2005, 10:45 AM
Junior Talker

Posts: 3
Trades: 0
Fantastic, thanks for your help guys, you've been really... helpful

Andy.
angel is offline
Reply With Quote
View Public Profile
 
Old 03-04-2005, 03:12 PM
Yoxim's Avatar
Average Talker

Posts: 28
Location: Orlando, Florida
Trades: 0
all you have to do is put your content in a table, and center the table. as in
<table align="center">
Yoxim is offline
Reply With Quote
View Public Profile Visit Yoxim's homepage!
 
Reply     « Reply to Centering my web page on the screen
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.42355 seconds with 12 queries