Okay, I’m stuck again. The code validates and renders just fine in Dreamweaver CS3, but I’m getting validation error
document type does not allow element "div" here; missing one of "object", "ins", "del", "map", "button" start-tag
at W3C. Here’s the code area in question as entered into the EE weblog Publish area, and it’s entered as its own paragraph:
Speaking of web sites, I'm also rebuilding our company site to more modern standards, and I thought I'd take a second to once more state how much I love CSS.
<div class="centered"><a href="http://bp0.blogger.com/_nRpFSePUDBk/SAy4YGz2SNI/AAAAAAAAAQk/LWWJRZD1JEM/s1600-h/css.png"><img src="http://bp0.blogger.com/_nRpFSePUDBk/SAy4YGz2SNI/AAAAAAAAAQk/LWWJRZD1JEM/s400/css.png" alt="image of css" /></a></div>
This new designing has led me to another crossroads, though: specifying font size.
Upon viewing the rendered source code, EE’s weblog formats the above like this:
<p>
Speaking of web sites, I’m also rebuilding our company site to more modern standards, and I thought I’d take a second to once more state how much I love CSS.
<br />
<div class="centered"><a href="http://bp0.blogger.com/_nRpFSePUDBk/SAy4YGz2SNI/AAAAAAAAAQk/LWWJRZD1JEM/s1600-h/css.png"><img src="http://bp0.blogger.com/_nRpFSePUDBk/SAy4YGz2SNI/AAAAAAAAAQk/LWWJRZD1JEM/s400/css.png" alt="image of css" /></a></div>
<br />
This new designing has led me to another crossroads, though: specifying font size.
</p>
The validator is flagging “<div class=“centered”><a href=“http://bp0.blogger.com/...”, but I’m not seeing my div inside a block-level tag. All that EE is doing that Dreamweaver isn’t is adding the <br /> before and after the div class.
Any ideas?
