HTML8 All pages centered except my...

User 167700 Photo


Registered User
8 posts

Well with a little help my website is coming along:
http://CashValueChicago.com
and now a small problem is the main page is not centered and is located along the left. The remaining pages centered easily using the center button under format. I tried using this code

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

taken from a previous answer by Cary. It centered the flash object but not the rest of the page. Here is my current code:

<div align="center"></div></div><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
</div><html>
<head>
<title></title>
<meta http-equiv="Content-Style-Type" content="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="style.css" type="text/css" rel="stylesheet">

Any help is always appreciated, thanks Ralph
User 456980 Photo


Registered User
81 posts

Not being a code expert, the best I can do is venture a guess...
my guess is to take out all "</div>" there... there are three in the first three lines.
Those cancel out the <div align="center">, to the best of my knowledge... there should be ONE </div>, at the very end of the document, after you close the html with </html>... see if that works.
I work on my computer mainly for the purpose of working on my computer.
User 167700 Photo


Registered User
8 posts

Thank you, now that the debate is over I can go back to the website.
Good looking dog

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.