Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter
Support for Vanilla Forums Cloud product

In this Discussion

Follow Us


Force a { to change in a div & Pofile Photo

edited March 2012 in Questions

Hey guys, can I force the a { to change. So I want to change the color in the User CP box (www.amphicraft.com - usr: testaccount , pass: test) from blue to white like the 'SignOut' button. I know how to change a class in a div.. not sure about a { (if I'm honest, I'm not even 10% sure what means. Just what it does)

Also, if you look when logged in with the test account. It doesn't display a photo in the User CP box but it does for threads. Using the minecraft photo plugin.

Thanks, Amphios

Answers

  • rprrpr
    edited March 2012

    Not sure what you're trying to target with CSS, but CSS is about levels of specification. So if you're wanting to target all 'anchor elements' (a)

    a{
    color: #fff;
    }

    If you want to only target 'anchor elements' inside 'div elements':

    div a{
    color:#fff;
    }

    If you want to target only 'anchor elements' inside 'div elements' that have a specific 'class':

    div.classname a{
    color:#fff;
    }

    etc ...

    Remember you can always create your own rules, not just change those which already exist in Vanilla.

  • @rpr Thanks, I'll give that ago. That actually explained a lot to me. Like I said, I can code, but I only know whats things do not what they are. I never payed enough attention.

    Dont suppose you could answer my photo dilemma?

  • edited March 2012

    Can someone please tell me how to edit this.. It's .discussions .active but I've tried every flipping over class its in .profile .profiletabs .tabs .. none work. I want it normal blue like the others.

    Profile then Discussions

    image

Sign In or Register to comment.