SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    May 2011
    Location
    New Delhi India
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Unhappy CSS Disply property

    Hi!
    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.

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,299
    Mentioned
    460 Post(s)
    Tagged
    8 Thread(s)
    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?

  3. #3
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,481
    Mentioned
    182 Post(s)
    Tagged
    6 Thread(s)
    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.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •