Msg#: 4381874 posted 11:50 pm on Oct 31, 2011 (gmt 0)
Is anyone having problems with the W3C validation? It is being a bit annoying now. Can anyone explain to me how to center a Google Add in a module, part of a CMS, with script tags without getting penalized by the W3C scheme?
Msg#: 4381874 posted 10:31 am on Nov 1, 2011 (gmt 0)
The <center> tag is deprecated (since it is presentational) and <p> can only contain certain other elements since it is primarily intended for a paragraph of text. The <div> element is probably the one to go for, but it will depend on the context where it is to be used. You might even be able to center the Goodle-Ad using existing elements?
You could perhaps post the resulting markup to see what we have to work with, but I suspect this is more of a CSS issue than an HTML one?
Msg#: 4381874 posted 6:25 pm on Nov 1, 2011 (gmt 0)
Wrap it in a div, as mentioned, with margin:auto? text-align:center is likely to give you grief as that is, of course, for text and inline elements 9it will center things inside it you may not want centered.)