|
Posted by Jonathan N. Little on 01/01/13 11:53
Toby Inkster wrote:
> Dario wrote:
>
>> I created a <div>, for pull quote, called VIRGOLETTE2
>
> Better would be:
>
> <blockquote class="virgolette2">
> <p>quote here</p>
> </blockquote>
>
>> In Html I add this DIV inside the <p> of article
>
> DIVs can't live inside paragraphs. As soon as you create a DIV, the
> paragraph is automatically ended (as if you'd written "</p><div>").
>
Seems so by reviewing the spec, understandably nested P's would make no
sense but a inset block?
+----------------------+
| |
| |
+-------+ |
| |
+-----+ | |
| | | |
| | | |
+-----+ | |
| |
+-------+ |
| |
+----------------------+
The only way to do this then would be for the inset to be an inline
element that is restyle as block (and floated)
Or the outer container block cannot be a P but a DIV with the P's styling?
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Navigation:
[Reply to this message]
|