Forum Moderators: open
I could simply use SPAN or some other inline element which works inside the P, but IE only renders natural blocks as inline-block. Meaning if it's an inline element it will work in Firefox but not IE, if it's a block the other way arround.
So how do I solve this quanundrum?
Either I need an element which is a natural block in IE and is allowed inside a P by the specs, or I'll use DIV instead of P, but I would much rather avoid this.
[edited by: tedster at 5:13 am (utc) on April 9, 2009]
Meaning if it's an inline element it will work in Firefox but not IE, if it's a block the other way arround.
Might help to clarify which browser versions are causing the troubles because this is usually the other way around:
display:block as default. In your scenario it should be possible to use a <span> inside a <p> (or preferably something more semantically correct) unless you need to support ff2.
Also keep in mind the difference between HTML and styling. While elements must be used with respect for their default display for the HTML to validate, that does not prevent styling them with a different display to achieve a desired design.