See the section of /* Common Classes */this page.
/* Common Classes */
http://webdesign.about.com/od/css/a/master_stylesht_2.htm
are these css classes good to use in any project? in terms of semantic?
/* Common Classes */ .clear { clear: both; } .floatLeft { float: left; } .floatRight { float: right; } .textLeft { text-align: left; } .textRight { text-align: right; } .textCenter { text-align: center; } .textJustify { text-align: justify; } .blockCenter { display: block; margin-left: auto; margin-right: auto; } /* remember to set width */ .bold { font-weight: bold; } .italic { font-style: italic; } .underline { text-decoration: underline; } .noindent { margin-left: 0; padding-left: 0; } .nomargin { margin: 0; } .nopadding { padding: 0; } .nobullet { list-style: none; list-style-image: none; }
. . css , , , "" -, "" . - (.. ) , (.. ), . , - , , , , , .
, - html, , CSS , . , , (, "bluefont", color: red). , "bluefont" , . "abgewdgbcv", -, : .
: . . W3.
, .
, , , .
, , "bluebold", , , , , , , .
, , , , , - , !
Edit:
, , , , .
CSS . . , - , :
*{ margin:0; padding:0 } li { list-style: none; list-style-image: none; }
, floatLeft floatRight ,
<div id="main"> <div class="searchPanel"> </div> <div class="resultsPanel"> </div> </div>
CSS ( ) #main searchPanel { ; } # Panel { float: right; }
, . / . .
:
.floatLeft → .float-left: .
.floatLeft
.float-left
.bold→ the .important name should tell the purpose, not showing how to do it
.bold
.important
.nobullet→ ul.nobullet it is best to specify to avoid conflict with other css.
.nobullet
ul.nobullet
Source: https://habr.com/ru/post/1740682/More articles:Data serialization and deserialization - JavaScript - javascriptSyncing DataGrid and DataForm in Silverlight 3 - silverlightAn error occurred while trying to create a faceted section in ggplot2 - rDjango: get the number of ForeignKey elements in a template? - djangoVisual State Manager in WPF not working for me - wpfBasedOn property not working with ListView - c #SQL: recursively retrieve parent records using common table expressions - sqlDatatemplates when using theme does not work - WPF - c #Ruby: Define a class definition at runtime? - ruby | fooobar.comCan I use the Mono app with ClickOnce? - installerAll Articles