<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML><HEAD><TITLE> New Document </TITLE><META NAME="Generator" CONTENT="EditPlus"><META NAME="Author" CONTENT=""><META NAME="Keywords" CONTENT=""><META NAME="Description" CONTENT=""></HEAD><BODY><--Here are the body tags
<cemter><-- try placing the center code here
...
Website code here
more website code here
...
</center><--and the close center tag here
</BODY><--Here are the body tags
</HTML>
Who likes bright blue fonts?? I DO!!! (but Cytael doesn't...)
-----------
Visit my Programmers Forum, Active_VB, here.
Don't use "<center>"~"</center>". This is deprecated (old, out-of-date) and is you use a STRICT !doctype, you'll throw errors.
Surround your page with a DIV. Let's call this a 'wrapper'.
<body> <div style="width:90%; margin:0 auto;"><!-- wraps entire page content from opening BODY tag, to closing BODY tag -->
-Your site content goes in here-
</div><!-- end WRAPPER -->
</body>
This works, and is valid. But in order to have auto-adjusting left-right margins ("centering"), you must also declare a width. I chose 90%, but you can make it whatever you want.
Bookmarks