MyBB Community Forums

Full Version: css over ride question
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Okay I re did my profiles entirely here http://sordidsecrets.victus-rpg.com/index.php so html works in them because of the set up, but I tried to do custom css for a profile and its not working.. Does anyone know of a way I could do that? Like I just created a custom field called custom CSS for people to paste in their coding and Ive tried it and it doesn't work, but html works in everything else. Is it just not possible?
If I put my own css in, shouldnt it overide the default CSS?
if you put your own css then you have to append !imporatant; for the attributes.

like this :

original css :
#container {color : #000fff;)


to override it we use :
#container {color : #ff0000 !important;}
would I have to do that for ever thing, like background color, font color, font size, ect?
CSS works top down. Basically the last style overrides previous ones.
yes, if we have

#container {color : #000fff;}
#container {color : #ff0000;}

on the same css file then basically later should work !

some like keeping the original css file as it is AND add additional css file
for overriding required css elements. for this adding !important; is required
I dont know why mines not working then..

http://sordidsecrets.victus-rpg.com/memb...file&uid=7 Im testing it on this site on this exact profile in the last custom profile field, you cant see it obviously, but there are no changes showing up either.


edit: oh wait I think I may have figured it out. I didnt have that custom field in the coding, but now that I added it its showing up. Thank you both for your help!