Difference between revisions of "Css classes"
From MyWiki
| (4 intermediate revisions by the same user not shown) | |||
| Line 6: | Line 6: | ||
} | } | ||
| − | <span class="ident">asdfasdf</span> | + | <span class="ident">asdfasdf</span> # To make indent first line of paragraph |
.gap-below{ | .gap-below{ | ||
| − | margin-below: 25px; | + | margin-below: 25px; # put in "<p" tag |
| + | } | ||
| + | |||
| + | .greeen-link:hover{ | ||
| + | color: green; | ||
| + | background: gray; | ||
} | } | ||
</source> | </source> | ||
| + | |||
| + | Classes can style any tag<br> | ||
Latest revision as of 18:11, 17 November 2015
class = "indent" in "<a" tag
.indent{
margin-left: 10px;
}
<span class="ident">asdfasdf</span> # To make indent first line of paragraph
.gap-below{
margin-below: 25px; # put in "<p" tag
}
.greeen-link:hover{
color: green;
background: gray;
}Classes can style any tag