SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Guru
    Join Date
    Feb 2007
    Posts
    874
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Both label and data to appear on same row.

    Dear All,
    I have a link here http://183.78.169.53/tm/addVL.php. My problem is how to make both Name label and its text box on same line and same goes for the checkbox and the label Trailer. Any idea what is wrong I have tried span even.

  2. #2
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,296
    Mentioned
    179 Post(s)
    Tagged
    6 Thread(s)
    Remove the display:block from label.description.

    If you need to size it then use display:inline-block instead.

  3. #3
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,118
    Mentioned
    448 Post(s)
    Tagged
    8 Thread(s)
    Remove this line in red:

    Code:
    label.description {
      border: medium none;
      color: #222222;
      display: block;
      font-family: Calibri;
      font-size: 15px;
      font-weight: 700;
      line-height: 150%;
      padding: 0 0 1px;
    }
    EDIT: beaten toot.
    Facebook | Google+ | Twitter | Web Design Tips | Free Contact Form

    Forum Usage: Tips on posting code samples, images and more

    Forrest Gump: "IE is like a box of chocolates: you never know what you're gonna get."


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
  •