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.

HTML Forum


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



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Centering Entire Page...
Old 03-10-2005, 06:16 PM Centering Entire Page...
Novice Talker

Posts: 9
Trades: 0
Hi,

I was having some trouble with aligning my entire page on the screen. For example, on a 1024x768 resolution, the website is perfectly fine. However, any resolutions higher then that results in the page being left aligned. Someone mentioned the use of "div" tags to center the page on higher resolutions, but I am not sure how to go about it.

The page can be viewed here:

http://69.199.11.207/

There is a main page, and the content inside is constantly changing using a frame.

I would greatly appreciate it if someone could edit the page for me!

Cheers,


DegreeZ,
DegreeZ is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-10-2005, 08:44 PM
Webmaster Talker

Posts: 589
Trades: 0
use this simple code:
<table border=0 cellpadding=0 cellspacing=0 width=100%>
<tr>
<td width=100% align=center>

Your entire website code

</td>
</tr>
</table>
thevirus is offline
Reply With Quote
View Public Profile
 
Old 03-10-2005, 10:47 PM
metho's Avatar
Ultra Talker

Posts: 481
Location: Gold Coast - Brisbane QLD, Australia
Trades: 0
wrap the entire page content up in a div e.g.

<style type=text/css>
#wrapper {
width: 100%;
margin-right: auto;
margin-left: auto;
}
</style>
</head>
<div id="wrapper">
..snip all content..
</div><!--end wrapper-->
</html>

alternatively, just centre align ur body tag eg.

<head>
..snip..
<style type=text/css>
body {
text-align: centre;
}
</style>
</head>

However using method #2 may cause inheritance issues deeper into your page structure.
__________________
I do
Please login or register to view this content. Registration is FREE
based.
Spend a lot of time in
Please login or register to view this content. Registration is FREE
.
And
Please login or register to view this content. Registration is FREE
chews up the rest.
metho is offline
Reply With Quote
View Public Profile Visit metho's homepage!
 
Old 03-11-2005, 12:14 AM
Skilled Talker

Posts: 90
Trades: 0
My favoritest HTML tag is <center> </center>
__________________

Please login or register to view this content. Registration is FREE
myshtern is offline
Reply With Quote
View Public Profile
 
Old 03-11-2005, 09:21 AM
Novice Talker

Posts: 5
Trades: 0
I agree with "metho", wrap everything up in a <div> and use left and right auto margins. I would include the align:center on the body tag as well for older MSIE browsers.

* html body {
text-align:centre;
}

The <center> tag was depreciated about 5 or so years ago and you should be keeping all of the styling in the CSS file not your HTML.

Goodluck!
obliquegeek is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Centering Entire Page...
 

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.34321 seconds with 12 queries