Why won't this HTML work?

Posted by Johnsx on Stack Overflow See other posts from Stack Overflow or by Johnsx
Published on 2010-06-03T12:29:29Z Indexed on 2010/06/03 12:34 UTC
Read the original article Hit count: 236

Filed under:
|
|

I have a span text block inside a paragraph. Inside this span block I have two paragraph breaks. On webkit, the browser renders the first paragraph correctly but fails back to browser default settings on the last two. Why?

<style type="text/css">

span.post-content {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 16px;
}

</style>

<p><span class="post-content"> Some text here <p/> From here text loses style and adopts browser default <p/> same here </span></p>

This works in all browsers except Webkit based ones: chrome and safari.

© Stack Overflow or respective owner

Related posts about html

Related posts about css