Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4

Thread: Inputs and css

  1. #1
    Senior Coder
    Join Date
    Jun 2002
    Location
    ColoRockyz
    Posts
    1,649
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Internet Explorer Inputs and css

    I have a form with several buttons styled in css (.b1 {font:bold 12 verdana;text-align:center;width:85;height:25;}). The problem is, I also have a text input box which needs to be size=20. If I could find a way to declare this text box size in css, I could save a lot of code by using input {font:bold 12 verdana;text-align:center;width:85;height:25} once rather than using class="b1", class="b2", etc. each time one of several buttons are styled.

    Any ideas out there?

    Thanks
    Zoobie or not Zoobie...That is the problem.
    <body onUnload="flush( ! )">

  • #2
    Senior Coder
    Join Date
    Jul 2002
    Posts
    1,628
    Thanks
    0
    Thanked 0 Times in 0 Posts
    isnt the default size of the input 20 anyway?
    width:155 matches the size

  • #3
    Senior Coder
    Join Date
    Jun 2002
    Location
    ColoRockyz
    Posts
    1,649
    Thanks
    1
    Thanked 0 Times in 0 Posts
    LMAO! Umm...ok...I guess I shouldn't code at 3 in the mornin'...Thanks
    Zoobie or not Zoobie...That is the problem.
    <body onUnload="flush( ! )">

  • #4
    Senior Coder
    Join Date
    Jun 2002
    Location
    ColoRockyz
    Posts
    1,649
    Thanks
    1
    Thanked 0 Times in 0 Posts
    <NOTE>

    If I declare on my sheet that input {border-color:white;}, this is usually overridden by an inline class .txt {border-color:none;}. However, in this case (IE) applied to a textbox, it didn't work even though it's W3C.

    I found that .txt {border-color:transparent;} did, however, work and shows the default border.

    </NOTE>
    Last edited by zoobie; 11-22-2002 at 11:33 PM.
    Zoobie or not Zoobie...That is the problem.
    <body onUnload="flush( ! )">


  •  

    Posting Permissions

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