Now it has no background colour.
Also, I think the previous settings are now showing... i.e. the page is out of whack...
EDIT: BTW, I did remove the contents of the previous HEAD contents...
Got it ;)
Thank you :D
So, now how would one remove its 'out of whack'ness?
The image is sitting to the right.
It used to be smack bang centered before...
by out of whack, that is what I had meant :)
Please post a URL so we can see what's what.
And LoL @ whacking it back into whack :p
Nice one ;)
I tried to remove all the values in the table part of the html code, hoping it would do just that... This only made all the images disappear.
So, I put them back in.
I appreciate the help you are providing cfajohnson.
Actually, the HTML attributes are to become deprecated, especially in strict HTML and in XHTML Doctypes. The modern web development has to follow the separation between the content (HTML) and the presentation (CSS). This is the reason why a HTML attribute like align does not pass the W3C validation.
The horizontal centring of a HTML element is to be done in CSS, using the margin CSS attribute, and the values auto for left and right margins:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Content-Style-Type" content="text/css">
Doctype is required. You don't have to use a XHTML doctype, unless you intend to work with XML files. HTML 4.01 strict is all you need.
well at least all the pages i've made havn't been for someone else then^^ ill look into how i should do it, just one more thing for me to learn. Fyi i already told them to do the margin: 0px auto; thing but instead i think i said pagewrap trick.
Step One: HTML
Declare a DOCTYPE. Create an initial "wrap" DIV that will be the website's wrapper.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- WEBSITE GOES HERE -->
Step Two: CSS
Declare the wrap ID -- you MUST declare a width (otherwise, how would you center it?) Use left and right margins of "auto."
/* "auto" makes the left and right margins center the wrapper */
margin: 0 auto;
You can centre a webpage using CSS method
Watch video :