Difference between revisions of "Css classes"

From MyWiki
Jump to: navigation, search
 
(6 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
<source lang="text">
 
<source lang="text">
 
.indent{
 
.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