css help
css help
Out of context: Reply #3
- Started
- Last post
- 11 Responses
- jonatne0
well you can't have a div inside a p but you can have an element with an id inside a p
so whether you have <p><span id="whatever"> which would be
p #whatever
or you have <div id="whatever"><p> which would be
#whatever p
they would both work for their occasion respectively- ah but just because call it divname doesn't mean it's a div necessarily7point34
- and why can't you put a div inside a p?7point34
- I thought you could. HmmmJamesBoynton
- only inline level elements are allowed inside p, div is block level. it won't validate, and results may varyacescence
- ah, i've never had any problem... i usually only do it with floating blocks of text7point34
- fuck p'ssection_014