Page 1 of 1

Notes - CSS

Posted: Sun Jan 31, 2010 4:22 pm
by Nyder
Hi,
Can I use CSS in notes? How?
It`s easier for me than using only HTML.

Posted: Sun Jan 31, 2010 6:09 pm
by joo
<style> and <link> tags may be blocked, but I seem to recall that inline styles of the format <element style="css"> worked.

For example:

<span style="color: red; font-weight: bold">Do not steal this note!</span>

Posted: Sun Jan 31, 2010 6:20 pm
by abandoned
Hi,

I managed to use css throug internal style definition (without an seperate *.css file, because I didn't want to link to an external server).

Should work like this:

Code: Select all

<style type="text/css">
   p {
      color: red;
   }

   a {
      color: blue;
   }
</style>


Just write the style tag in your note and fill it with what normally would go into the css file.

I noticed some anormalies though. Boxing and aligning didn't work correctly (or at least didn't work as I've expected it^^). Global definitions sometimes have effects on the whole Cantr page, sometimes they don't. There might be some extra white spaces in your note where the style definition is written and some extra blank lines around paraghraphs which won't disappear when margin=padding=border is set to 0.

Well, I don't know much css, so maybe there is anyone who can give you better tips, but at least you can start playing around^^ Good luck