Notes - CSS

Forum for general requests for support for players. Both staff members and veteran players can help new players with problems they encounter. No chatting in this forum, please.

Moderators: Public Relations Department, Players Department, Programming Department

Nyder
Posts: 10
Joined: Sun Jan 31, 2010 3:25 pm

Notes - CSS

Postby Nyder » Sun Jan 31, 2010 4:22 pm

Hi,
Can I use CSS in notes? How?
It`s easier for me than using only HTML.
User avatar
joo
Posts: 5021
Joined: Fri Jun 17, 2005 2:26 pm
Location: London, UK

Postby joo » Sun Jan 31, 2010 6:09 pm

<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>
User avatar
abandoned
Posts: 409
Joined: Thu Oct 28, 2004 8:26 pm
Location: austria...

Postby abandoned » Sun Jan 31, 2010 6:20 pm

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
Strike of the One Million Fear-ridden Pandas (es gibt für alles den passenden Generator)

Return to “General Support”

Who is online

Users browsing this forum: No registered users and 1 guest