southbeach
Programmer
Alright, it is time I curve myself and start adhering to using HTML compliant tags and use HTML validator to make sure my code is 100% complaint ... or as close as I can bring it.
I have been using <center> to center my page content. The validator picks up an error on this tag. I know it has been deprecated but I cannot find a remedy to replace it with.
I have tried:
but nothing is centered. Content shows normal (left justified).
What is my solution?
For now, I am sticking to <center> until I learn what is now the "unknown".
Thanks,
I have been using <center> to center my page content. The validator picks up an error on this tag. I know it has been deprecated but I cannot find a remedy to replace it with.
I have tried:
Code:
<body style="margin-left: auto; margin-right: auto;">
AND
<body>
<div id="mainContainer" style="margin-left: auto; margin-right: auto;">
but nothing is centered. Content shows normal (left justified).
What is my solution?
For now, I am sticking to <center> until I learn what is now the "unknown".
Thanks,