|
Posted by Jonathan N. Little on 06/07/06 00:34
John Salerno wrote:
> Rik wrote:
>> John Salerno wrote:
>>> Rik wrote:
>>>
>>>> input{
>>>> margin: 0 0 3px;
>>>> }
>>>> input.adress{
>>>> margin:0;
>>>> }
>>> This still seems to be a problem, because the margin between the third
>>> textbox in the home address and the first textbox in the foreign
>>> address is 0px, and I want it to be 3px.
>>
>> I didn't say you had to apply the class to the last input element...
>>
>> Grtz,
>
> Well then, IMO, that's no better than using tables when you don't need to.
Lookup the element 'fieldset'!
>
> If you can't apply a class to all elements that it should be applied to,
> then that isn't a very good solution. I don't want to start making
> exceptions as to what I can label 'address' (or whatever else) just
> because it's convenient to leave it out here and there.
CSS cascades
ELEMENT { applies to all elements ELEMENT the most general }
..class { subset of elements with class 'class' more specific }
#ident {one element with id='ident'}
of course your can combine class
..myInputs { ...general styling for input fields.... }
..special { ...so properties adjusted for special treatment...}
<input class="myInputs" type="test" value="Standard styling">
<input class="myInputs special" type="test" value="Now modified">
>
> The way I see it, either all six input boxes should be labeled
> 'address', or I just need to come up with another solution.
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Navigation:
[Reply to this message]
|