Forum Moderators: not2easy

Message Too Old, No Replies

Two style rules

Using two style rules

         

Alternative Future

5:08 pm on Feb 26, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi all,

Am sure this is possible, but cannot remember how it's done (if it can) I want my input type to use both the .text300 and .textFontChange class selector.

Here is an example CSS:

<style type="text/css">
<!--
input{
font-family: Arial, Helvetica, sans-serif;
width: 100px
}
.text300{
width:300
}
.textFontChange{
font-family: Verdana;
}
//-->
</style>

My HTML:

<input type="text" class="how do I use both the above classes?">

Many thanks for all help.

-George

DrDoc

5:18 pm on Feb 26, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



<input type="text" class="text300 textFontChange">

:)

Alternative Future

5:21 pm on Feb 26, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Many thanks DrDoc...

No known browser issues with this type of call is there?

-George

AWildman

5:54 pm on Feb 26, 2004 (gmt 0)

10+ Year Member



Actually, NN 4.x doesn't so much like class calls like that. It usually only applies the first class.

Alternative Future

9:52 am on Feb 27, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks AWildman its nice to know before starting a project...

-gs

PCInk

11:29 am on Feb 27, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



No known browser issues with this type of call is there?

Yes. You must use the quotes as they are separated by the space. Now, we should use quotes around all of the non-numerical parameters anyway, but...