I was just working on creating a simple address container and what I had in my HTML was just the following simple markup:
<p class="address">
<ul>
<li>hello</li>
<li>hello</li>
<li>hello</li>
</ul>
</p>
and the following CSS:
.address {
-webkit-box-shadow: 1px 1px 1px rgba(0,0,0,.5);
box-shadow: 1px 1px 1px rgba(0,0,0,.5);
}
Now somehow the <p>
element does not contain the ul
and neither is the box-shadow applied to the p
tag , but when I replace the p
tag with a div
tag, everything works find. The div contains the ul
(as can be seen in the inspect elements) and also the div has a box-shadow. I have checked this in both FF and Chrome and have no idea of why is this glitch occurring.
` as must.
– Justin George May 14 '15 at 06:10whenever address is not relevant !
– Alexander Solonik May 14 '15 at 06:10` it knows that the `
– Mr Lister May 14 '15 at 06:12` should end. And it does! So the `
` is completely empty and that's why it doesn't get drawn. No margins, no shadow.
` if you want, you just can't put an `
` inside it. So if you really need the `
– Mr Lister May 14 '15 at 06:23`, you can't use the `
`. If you really need the `
`, you can't use the `
`.