View Full Version : Centering my Pages ?
guidom64
09-27-2007, 08:05 AM
How can I center my pages ? My published pages show off on the left side and not centered when viewed in a higher resolution then 800x600.
I made my stuff with Pagewizard and need a Hint to a problem I could not solve (If there will be a solution, as few people use Pwizard).
Somebody told me to use a other program then Pwizard, but then I have to build all my pages again, what I am trying to avoid.
PWiz is just a HTML editor, he even can't modify the source code.
But if problem can be solved over source code, I could change it over the File Manager/code editor.
Thanks for the ideas
Chella
09-27-2007, 08:23 AM
In your HTML, you need to edit the table's "align" attribute. This would be easier if you posted a link to the page in question, but for now I hope this helps:
Find the align tag, that will look something like
<table align="left" border="1" cellpadding="0" cellspacing="0">
And change table align="left" to table align="center"
sidorak95
09-27-2007, 03:56 PM
To center normal words in HTML, you would have to do:
<p align="center">Your text goes here</p>
What Chella said,
In your HTML, you need to edit the table's "align" attribute. This would be easier if you posted a link to the page in question, but for now I hope this helps:
Find the align tag, that will look something like
<table align="left" border="1" cellpadding="0" cellspacing="0">
And change table align="left" to table align="center"
that is only for a table.
Hope this helps.
SiriusB
09-27-2007, 04:44 PM
You could add a div that contains your whole page... such as:
<body>
<div id="container">
<!-- rest of site -->
</div>
</body>
Then in your css add the following property to the #container element
#container {
margin: 0 auto;
}
This should center your page regardless of the resolution.
guidom64
09-27-2007, 08:42 PM
First of all thanks for your answers. Now I have three possibilities and still don't know exactly what to do.
I want to Center the WHOLE WEBSITE, all pages I made. It looks like the answer from Sirius B is the closest to this, but as I am new to Website building I really don't understand his Explanation and where I have to place what. I am very sorry for my ignorance.
Perhaps someone can explain again what I have to do and where, in a form my small knowledge can follow and implant it.
Thanks again folks
Oh, and for who is interested to see the page http://www.bonus-webhosting.com
shadmego
09-27-2007, 09:39 PM
SiriusB did actually provide the best answer in terms of web development standards. Tables are being depreciated, but are still in heavy use, and as Sirius stated, you would have to use the center attribute for every table you wanted centered. It could get tedious if you have lots of nested tabled (a nested table is a table that is inside of another table).
CSS. or Cascading Style Sheets is used by web designers to help seperate the structure of a website (width, color, font styles, layout, etc) from its content (the actual words and text you read). CSS is intensive and can be tough to learn, but it is probably one of the most important languages to learn if you are going to be marginally serious about designing web sites.
You can start learning here: www.w3schools.com (http://www.w3schools.com). To see what you can do with CSS, visit www.csszengarden.com (http://www.csszengarden.com). There is a lot to learn about CSS, but you are in a great spot to ask questions about it.
To begin, I would at least recommend you read the intro, syntax, and how to at the www.w3schools.com/css (http://www.w3schools.com/css) website. You will be very glad you took the time to do this.
~regards,
Shadmego
SiriusB
09-28-2007, 08:42 AM
I agree with shadmego completely.
I am sorry if I assumed CSS knowledge on your part. However, CSS is really, really easy to pick up - becoming good at it is the hard bit :)
As suggested, go visit the w3c schools website.
If you visit the CSS Zengarden, please bear in mind a lot of the pages were made by professionals - a lot of them with graphic design skills. So don't be disheartened if you think you'll never get a page looking that good. It takes practice :)
pmc3090
09-29-2007, 09:12 AM
The reason your page looks as though it is not centered is because your browser is showing a larger page size than the one you are using.
To change page size in Pagewizard: right click on your page. Click properties. Change page size. Save and publish. However, you must do this every time you bring up your page for changes. It always reverts back when your page is first opened.
Pat
flowerartgarden.com
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.