Results 1 to 5 of 5

Thread: Box Type in CSS

  1. #1
    Join Date
    Jul 2008
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Box Type in CSS

    Hello Friends

    i am new to this community and new to css. i need some help for building a box in css . i am sorry if i call it in wrong manner

    here is a preview for what i want to build



    any help please

    Regards

    Dawebboy

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Here's the first, you can make the rest:
    Code:
    <html>
    <head>
    <style type="text/css">
    .div1 {
    margin: 0;
    border: 1px solid #006666;
    padding: 15px;
    width: 225px;
    height: 95px;
    font-family: arial;
    }
    .div1 .head {
    font-family: arial;
    font-size: 14px;
    color: #993333;
    border-bottom: 1px solid #993333;
    }
    .div1 dl {
    font-size: 12px;
    list-style-type: square;
    color: #CC6699;
    padding-left: 10px;
    }
    </style>
    </head>
    <body>
    <div class="div1">
    <p class="head"><b>mas</b> controls</p>
    <dl>
    <li>LabLink<small><sub>TM</sub>&nbsp;<sup>XL</sup></small></li>
    <li>MAS<small><sup>&reg;</sup></small> Control Products</li>
    <li>Watch Video</li>
    </dl>
    </div>
    </body>
    </html>
    Jeremy | jfein.net

  3. #3
    Join Date
    Jan 2006
    Location
    Ft. Smith, AR
    Posts
    795
    Thanks
    57
    Thanked 129 Times in 116 Posts

    Smile I was bored...

    Here you go, I did a little editing to the first one that Niles made and also whipped up the other two as well since I'm bored out of my mind at the moment.

    Code:
    <html>
    <head>
    <style type="text/css">
    .div1 {
    margin: 0;
    border: 1px solid #006666;
    padding: 15px;
    width: 280px;
    height: 95px;
    font-family: arial;
    }
    .div1 .head {
    font-family: arial;
    font-size: 14px;
    color: #993333;
    border-bottom: 1px solid #993333;
    }
    .div1 dl {
    font-size: 12px;
    list-style-type: square;
    color: #CC6699;
    padding-left: 10px;
    }
    
    .div1 dl b{
    color:#006666;
    font-weight:normal;
    }
    
    
    
    .div2 {
    margin: 0;
    border: 1px solid #006666;
    padding: 15px;
    width: 280px;
    height: 95px;
    font-family: arial;
    }
    .div2 .head {
    font-family: arial;
    font-size: 14px;
    color: #006666;
    border-bottom: 1px solid #006666;
    }
    .div2 dl {
    font-size: 12px;
    list-style-type: square;
    color: #006666;
    padding-left: 10px;
    }
    
    
    
    
    .div3 {
    margin: 0;
    border: 1px solid #006666;
    padding: 15px;
    width: 280px;
    height: 95px;
    font-family: arial;
    }
    .div3 .head {
    font-family: arial;
    font-size: 14px;
    color: #0099CC;
    border-bottom: 1px solid #0099CC;
    }
    
    .div3 dl {
    font-size: 12px;
    list-style-type: square;
    color: #66CCCC;
    padding-left: 10px;
    }
    
    .div3 dl b{
    color:#006666;
    font-weight:normal;
    }
    </style>
    </head>
    
    </style>
    </head>
    <body>
    <div style="display:inline; padding:15px;">
    
    <div class="div1">
    <p class="head"><b>mas</b> controls</p>
    <dl>
    <li><B>LabLink<small><sub>TM</sub>&nbsp;<sup>XL</sup></small></B></li>
    <li><B>MAS<small><sup>&reg;</sup></small> Control Products</B></li>
    <li><B>Watch Video</B></li>
    </dl>
    </div>
    
    <br />
    
    <div class="div2">
    <p class="head"><b>Casco</b> document standards</p>
    <dl>
    <li>DOCUMENT Web Services</li>
    <li>CAL&bull;VER<sup>®</sup> Linearity Standards</li>
    </dl>
    </div>
    
    <br />
    
    <div class="div3">
    <p class="head"><b>Drug</b> monitoring & immunoassays</p>
    <dl>
    <li><B>Assays</B></li>
    <li><B>Drugs of Abuse</B></li>
    <li><B>Calibrators and Controls</B></li>
    <li><B>Theraputic Drug Monitoring</B></li>
    </dl>
    </div>
    
    </div>
    </body>
    </html>
    Note: There is a messy hack in the CSS to change the text color and make it different from the bullet color... If anyone knows a better way of achieving this, feel free to post it up!
    --------------------------------------------------
    Reviews, Interviews, Tutorials, and STUFF
    --------------------------------------------------
    Home of the SexyBookmarks WordPress plugin

  4. #4
    Join Date
    Jan 2006
    Location
    Ft. Smith, AR
    Posts
    795
    Thanks
    57
    Thanked 129 Times in 116 Posts

    Default Just curious...

    Does anyone know a better way to achieve what I was shooting for with that messy hack?

    I've been curious every since I did it.
    --------------------------------------------------
    Reviews, Interviews, Tutorials, and STUFF
    --------------------------------------------------
    Home of the SexyBookmarks WordPress plugin

  5. #5
    Join Date
    Jan 2006
    Location
    Ft. Smith, AR
    Posts
    795
    Thanks
    57
    Thanked 129 Times in 116 Posts

    Default

    ...Nobody?
    --------------------------------------------------
    Reviews, Interviews, Tutorials, and STUFF
    --------------------------------------------------
    Home of the SexyBookmarks WordPress plugin

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
  •