Difference between revisions of "Css classes"
From MyWiki
(Created page with "<source lang="text"> .anything{ } </source>") |
|||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | class = "indent" in "<a" tag | ||
<source lang="text"> | <source lang="text"> | ||
− | . | + | .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; | ||
+ | } | ||
</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