rajnishrao — 2011-05-04T09:35:45-04:00 — #1
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.
ralphm — 2011-05-04T09:40:21-04:00 — #2
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?
paulob — 2011-05-04T09:46:25-04:00 — #3
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.