SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Wizard bronze trophy
    Join Date
    Jul 2006
    Location
    Augusta, Georgia, United States
    Posts
    4,048
    Mentioned
    16 Post(s)
    Tagged
    3 Thread(s)

    Displaying legend as a Block element

    legend {
    display:block;
    }

    ^ doesn't work. Any ideas?

    I need my legends to act like headings.

  2. #2
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    39,797
    Mentioned
    158 Post(s)
    Tagged
    3 Thread(s)
    Hi,

    Legends are a unique element and are almost treated as a pair with the fieldset and as such have limited styling opportunities.

    The only way to get any consistent behavior with legends is to nest an inner element inside the legend and apply styles to that instead. Have a look at John's Article explaining one way to do it.


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
  •