Results 1 to 2 of 2

Thread: what CSS I need ?

  1. #1
    Join Date
    Dec 2009
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default what CSS I need ?

    <html lang="en">
    <head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Untitled Document</title>
    <style type="text/css">

    #apDiv2 {
    width:300px
    height:200px;
    background-color: #F00;
    border: 1px solid #000;

    }
    #apDiv3 {
    width:300px
    height:200px;
    border: 1px solid #000;
    background-color: #9CF;


    }

    </style>
    </head>

    <body>
    <div id="apDiv2">
    <p>hggjk</p>
    <p>&nbsp;</p>
    </div>
    <div id="apDiv3">
    <p>hgjhgf</p>
    <p>&nbsp;</p>
    </div>
    </body>
    </html>

    I would like to put the two div's next to each other . what CSS I need ?

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Code:
    #apDiv2 {
    width:300px
    height:200px;
    background-color: #F00;
    border: 1px solid #000;
    float: left;
    }
    #apDiv3 {
    width:300px
    height:200px;
    border: 1px solid #000;
    background-color: #9CF;
    float: left;
    }
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •