View Single Post
Old 01-16-2011, 11:10 AM   #9
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
Quote:
Originally Posted by cybmole View Post
didnt seem to but maybe I messed up the syntax

other entries in .css begin with a .
so should it look like this
.h2 {margin-top:0}
No definitely h2 {margin-top:0} with no dot at the beginning.

If your CSS has
Code:
h2 {margin-top:0}
it will be applied to html with <h2> tags.

If it has
Code:
.h2 {margin-top:0}
It will be applied to html with class h2, e.g
Code:
<p class="h2"> or
<div class="h2">or 
<h1 class="h2">
Edit: Also be careful if you do conversions of conversions of conversions .... The CSS class names calibrenn may get renumbered each time

Last edited by jackie_w; 01-16-2011 at 11:16 AM.
jackie_w is offline   Reply With Quote