Results 1 to 2 of 2

Thread: how to display 2 objects in a div on the same line

  1. #1

    Thread Starter
    PowerPoster Nitesh's Avatar
    Join Date
    Mar 2007
    Location
    Death Valley
    Posts
    2,556

    how to display 2 objects in a div on the same line

    Hi guys,

    I have the following code:

    Code:
    <div><span class="GuardLabel">ID Number:</span>
                        <input id="TextGIDNum" class="GuardTextStandard" type="text" />
                      </div>
    this is from my stylesheet:

    Code:
    .GuardLabel
    {
     FONT-FAMILY: Arial;
     FONT-SIZE: 8pt;
     height: 18px;  
     width: 90px;
     display: block;
     float: left;
    }
    Code:
    .GuardTextStandard
    {
     width: 140px;  
     FONT-FAMILY: Arial;
     FONT-SIZE: 8pt;
     font-weight: normal;
     height: 18px;
    }
    I've attached a screenshot. I want a checkbox to appear to the right of the textbox. Whatever i've tried isn't working. Please show me how to.
    Attached Images Attached Images  

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: how to display 2 objects in a div on the same line

    Remove the display:block.

Posting Permissions

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



Click Here to Expand Forum to Full Width