Two classes together
Usually attributes are assigned just one class, but this doesn't mean that that's all you're allowed. In reality, you can assign as many classes as you like!
For example:
If any rules overlap between the two classes then the class which is below the other in the CSS document will take precedence.
Usually attributes are assigned just one class, but this doesn't mean that that's all you're allowed. In reality, you can assign as many classes as you like!
For example:
<p class="text side">...</p>
Using these two classes together (separated by a space, not with a comma) means that the paragraph calls up the rules assigned to both text
and side
.If any rules overlap between the two classes then the class which is below the other in the CSS document will take precedence.
Other Topics
CSS : Comments,CSS : Why, whatand need of
CSS,CSS : Background image Trick,CSS : Forcing Grayscale Printing,CSS : Two classes together,CSS : Border default value,CSS : Document for printing,CSS : Image replacement technique,CSS : Box model hack alternative,CSS : Centre aligning a block element,CSS : Class selector,CSS : Sticky Footer Layout,CSS::STYLING FORMS, mechanical Engineering, English books,Photoshop tutorials,Harry potter,Best 100 english books,Mechanical-old-question-paper,CSS : Id Selector
No comments:
Post a Comment