If your page design allows, you might be able to use div's to group your controls and thus refine your CSS descriptions of them.  Small, silly example.


<div class="foo">
    <input type="text"....>
    <input type="text"....>
    <input type="text"....>
    <input type="text"....>
    <input type="text"....>
</div>


<div class="bar">
    <input type="radio"....>
    <input type="checkbox"....>
    <input type="radio"....>
    <input type="checkbox"....>
    <input type="radio"....>
    <input type="checkbox"....>
</div>


<div class="foo">
    <input type="text"....>
    <input type="text"....>
    <input type="text"....>
</div>


You could then define CSS as such.


<style....>
    div.foo input
    {
        border: 1 solid pink;
        background-color: yellow;
    }


    div.bar input
    {
        border: 0;
        background-color: green
</style>


This might be a small improvement over having to put a class parameter in every input tag.


HTH


--------------
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA

"C code. C code run. Run code run. Please!"
     - Cynthia Dunning
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to