I’ve put together a list of useful CSS classes I find myself using on a regular basis, and a few of these are actually required by the Wordpress gang if you’re going to submit a free Wordpress template to them.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | .alignleft { float:left } .alignright { float:right } .aligncenter { margin-left:auto; margin-right:auto; display:block } .clear { clear:both } .float-left { float:left } .float-right { float:right } .text-left { text-align:left } .text-right { text-align:right } .text-center { text-align:center } .text-justify { text-align:justify } .bold { font-weight:bold } .italic { font-style:italic } .underline { border-bottom:1px solid } .highlight { background:#ffc } .img-left { float:left;margin:4px 10px 4px 0 } .img-right { float:right;margin:4px 0 4px 10px } .nopadding { padding:0 } .noindent { margin-left:0; padding-left:0 } .nobullet { list-style:none; list-style-image:none } |
Thanks for this. Looks useful. Here is another really great page I found with similar suggestions for classes to add to any theme. Actually this other post is what got me started on a Google search that led me here to jungle jar eventually. Thanks again, and check out Matt’s classes,
http://www.mattvarone.com/web-design/message-box-with-css/
Thank you for your contribution, and I can guarantee you that the above classes are useful. I find myself using just the ‘clear’ class at least twice a day.
Thanks again.