tested with several themes i downloaded from Drupal (D7). a standard blog entry, using the Body field.

add

bla bla bla

in css,

p.upcaption {color:red;}

(just for testing purposes)

when i inspect element, the class is added, but the attribute ignored.
text format is full

have also tried and also ignored. this is driving me nuts. can't add a span, can't modify p with a class. wtf?

tia.

Comments

Sam Moore’s picture

What happens if you add the CSS into devtools' "Sources" tab?

t.a. barnhart’s picture

i don't know how to do that

Sam Moore’s picture

First make sure you've got Chrome's Devtools (or Firebug in Firefox) turned on.
For Chrome, see here:
https://developers.google.com/web/tools/setup/workspace/setup-devtools

Go to your page, right-click (ctrl-click if you only have one button) on the page and chose "Inspect Element".
Devtools window opens up; go to the Sources tab, find and click on a CSS file so it's displayed in the main window, and add your CSS here. This will take effect immediately (though only in your current session of course) and will let you test whether your CSS is in fact valid and effective.

t.a. barnhart’s picture

thanks. this was really useful.

so was, by trial & error (since i had forgotten long ago & never do it) starting name of the identifier with a number is what broke this. sheesh.