Thread: CSS Problems

    #1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2003
    Posts
    106
    Rep Power
    12

    CSS Problems


    Hey all,

    I have a small problem. In my webpage stylesheet I have set the <input> tag as having a solid border of 1 in black. Now when I do text boxes this is fine. But when i do checkboxes it looks stupid so how do it so that on some input tags it works and other input tags it doesn't.

    Thanks in advance.
  2. #2
  3. Cunning Linguist
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jul 2003
    Location
    I used to live at home, now I stay at the house
    Posts
    10,180
    Rep Power
    2039
    Code:
    <style type="text/css">
    #inputBox
    {
       border:black solid 1px;
    }
    #checkBox
    {
       border:0px;
    }
    </style>
    ...
    <input type="text" class="inputBox" id="tb1"><br>
    <input type="radio" class="checkBox" id="r1"><br>
    <input type="checkbox" class="checkBox" id="cb1">
    ...
    Jus tmake up your style requirements and give them class names, then add class="..." to the relevant <input>'s...

IMN logo majestic logo threadwatch logo seochat tools logo