creating own css classes? possible?

Feb 22, 2014 14:12

i searched for a faq or help page mentioning it, goggled like mad, didn't find it ( Read more... )

css:base themes, entries:misc

Leave a comment

portisheart February 26 2014, 03:54:49 UTC
thanks for your answer!

actually, as i started reading it, i was almost happy.
just happy to know custom css worked - because in fact it was a good thing it didn't in this particular entry in a way - it would have been overloaded, i realized afterwards. so not using any border was far better ~
and i learned something with your advice - i didn't know about this precedence fact.

but still, i tried out your solution - being almost sure in the back of my head that i already HAD tested this myself as one of the first alternatives.. (without knowing about the precedence, i tried a couple of possibilities about how to call the element..)

and it DIDN'T work. same as always. i even tried to place this css code bit right at the top of my css panel, where nothing could "influence it" - nope. added !important on border and bgd - nope. took the rounded border away.. nope.

no idea what the problem is ~ maybe the layout, maybe my other overrides..

i will try tomorrow on my own private journal, just cuz i'm curious - not now it's *yawn* 4:54am..

it's paid account, but a community. i don't think it's relevant..

Reply

fiddlingfrog February 26 2014, 04:24:40 UTC
* Please post the entire custom CSS you're attempting to use.
* What base layout are you using?
* Can you provide a link to an entry where you're trying to use your custom classes?

Reply

portisheart February 27 2014, 11:56:22 UTC
well, finally i tried on my own lj, not the community's:
1) i used "blah" as a class (there was like 0,1% chance faqGreen would have been reserved or something) -> nope.
2) i copied YOUR howto in entry + css (first, it worded with you, second the block wasn't shorthand but separed in color, px, style) - nope.
just to make sure that it wasn't because of the word "faq", or a community page.

my own journal is portisheart but where i wanted this was in my new community andromedia3d.
the style BOTH use as a base for the layout is Expressive - River at Night.

but while it's still quite visible on my own lj in spite of quite a bit of css overrides, when you look at the community page you wouldn't think it's the same base - i changed all the colors, the nav etc (the only reason i used the same base was i had my code/overrides to build upon).

if you go on the community page and get the source code, you'll see the overrides in the HEAD section.. if i upload it here you will have to scroll 10x, and it's easier to read it from a different browser tab, isn'it?

the community is members only and save for the intro, the (yet nonexistant) entries are locked. but i opened my test entry to public so you can see it.-> here

Reply

fiddlingfrog February 27 2014, 14:42:56 UTC
Please paste your CSS here into a textarea. I want to make sure that what you're putting into the customization area is what is making it to the rendered page in the browser.

Reply

portisheart February 27 2014, 19:16:26 UTC
i can't. -->

***
Sorry, but your comment of 14445 characters exceeds the maximum character length of 4300. Please go back, shorten it, and try posting it again.
***

but i looked again at the page source - and this div.faqGreen css block is the first thing i see in the /* Cleaned CSS: */ ... it is there!

i haven't controlled if everything else is in the source 1:1 with my panel, but the rest works absolutely fine.

Reply

(The comment has been removed)

portisheart February 28 2014, 08:33:24 UTC
you're right! i didn't see it. ofc i controlled in my entry editing interface (and it still IS THERE, untouched).. but why didn't i notice it on the page..?? i tried checking the box to disable automattic formatting - the entry test is a mess now, but with the inspector i saw yeah, it's still stripped. :/

Reply


Leave a comment

Up