![]() |
|
|
|
|
|||||||
| HTML / Design Are you a designer? Or just trying to become one? Great! You'll be able to talk about layouts, and HTML code to help your fellow designers, so everyone can work together to master the tricks of the trade. (Maybe even some JavaScript too!) |
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
||||
|
||||
|
I have two style - style.css and style1.css .
Somewhere I read that by ! Important can be indicate the primary style for using, but I do not know how. Can anyone tell me if it is possible? By JavaScript could be done, but only with css I don't know? |
|
#2
|
|||
|
|||
|
!important can be used after attribute value, when you want to ignore any value and then take into assigning only this value:
Code:
.abc {
width: 200px;
background: #AAFF00; }
.abc {
width: 300px !important; }
.abc {
width: 100px; }
|
![]() |
| Tags |
| css, hosting, styles, website |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|