Problem with centering - Post ID 147470

User 1386006 Photo


Registered User
27 posts

I must have sugar plums in my eyes, I have 1 page in a re-do that refuses to center, :/ I have checked the code until I'm almost blind. Could it have something to do with the Javascript? Thanks!

http://www.collegegrovemethodist.com/infosystem3.html
User 122279 Photo


Senior Advisor
14,624 posts
Online Now

There is nothing wrong with the java script or the css, but if you change the doctype to

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">


you'll get it to center.

Took me some time before I discovered that, though. ;)
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com


User 1386006 Photo


Registered User
27 posts

Thank you Ingar! I feel like an idiot. :P I just can't get use to having to deal with the doctype.

God jul!
User 122279 Photo


Senior Advisor
14,624 posts
Online Now

Oh, I think you're doing fine! Didn't you start messing with html and css just recently? You've come a long way :)

Thanks for the Christmas greetings! Same to you!

Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com



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.