HTML & CSS
I have a little bit of confusion about display property in css, please Help! me.
actually I want to know that what is the benefit of display block.
Some elements, like div, <p>, <h1> etc are block elements by default, some are inline, like <a>, <span>. You can change the display type via CSS when needed.
Your question is a bit vague, really. Could you give a specific example?
The CSS reference list all the possible display values but as Ralph said we would need to know what you are not sure about to give a relevant answer.
The html faq explains the differences between inline and block level element.
This topic is now closed. New replies are no longer allowed.