/    Sign up×
Community /Pin to ProfileBookmark

[RESOLVED] Center entire page

No matter what I try I can not get my website to center.

Well almost… <table><tr><td align=’center’> works but I would call this just giving up instead of figuring it out.

I have tried to use <div align=’center’> but then everything in the container is centered reguardless of additional <div> tag aligns.

What do you think I should do?

Thanks in advance.

to post a comment
CSS

5 Comments(s)

Copy linkTweet thisAlerts:
@CentauriFeb 27.2008 — Wrap the entire site in a container div, set the width and use auto side margins. Css of wrapper div :[CODE]#wrapper {
width: [COLOR="Blue"]width here in px, % or ems[/COLOR];
margin: 0 auto;
}[/CODE]
Note that this will only work if you have a complete and valid doctype at the start of the page (which you [B]should[/B]).
Copy linkTweet thisAlerts:
@Frank62Feb 27.2008 — Note that this will only work if you have a complete and valid doctype at the start of the page (which you [B]should[/B]).[/QUOTE]
Since when is a standards mode-triggering doctype compatible with <font size="2">?


@Robert: you are using ancient techniques. And judging from the construction of your layout and a few more things, you seem to have little knowledge of how to build a professional looking site. While your site is supposed to generate new clients, isn't it? Are you sure you want to do this yourself?

I'll be happy to help you, but it is gonna take a lot of time before you will be able to build such a site. Do you have that time? Otherwise, I would suggest to see if someone (in your town) can do it for you. It may save you a whole lot of energy, too.

Let me know.
Copy linkTweet thisAlerts:
@CentauriFeb 27.2008 — Since when is a standards mode-triggering doctype compatible with <font size="2">?[/QUOTE]

The OP did not indicate that the site in question was the one in his sig, so I did not even look at it.
Copy linkTweet thisAlerts:
@robertketterauthorFeb 27.2008 — Well.... Frank62.... your job as a mind reader, fortune teller and overall nice guy is not going so well. First of all, the site you visited is not the site in question, second the site you did visit is working just fine and does not need updating because it&#8217;s just a way for my existing customers to email me Third&#8230;Why don&#8217;t you just stick to the original question, as I notice you didn't seem to have a better answer... just a big mouth.
Copy linkTweet thisAlerts:
@Frank62Mar 01.2008 — Well.... Robert.... I wonder for whom a job as overall nice guy will go well, having you as inquirer.

And I wonder what your potential customers will think when they type in your name in Google and end up on this thread.

On second thought, I don't wonder. I know: what an a.....e!!
×

Success!

Help @robertketter spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.27,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...