Grow your CSS skills. Land your dream job.

Img Box Shadow (Exception Help)

  • # February 5, 2013 at 10:18 pm

    Hey everyone, alright so not the best at CSS so need some help.
    I have some images on my site which i need box shadow on, which all works.

    i used

    img
    {
    box-shadow: 0.9px 0.9px 8px #000;
    }

    But, how would i go by making an exception

    I need my Logo to be an image but without a box-shadow.

    # February 5, 2013 at 10:23 pm

    If you give your logo an id/class in css and add the following to it it should do the trick for you.

    box-shadow: none;

    For example, if your logo’s class name is logo:

    img.logo{box-shadow:none;}

    If you plan to be using the exception multiple times name the class something like “no-shadow” and then you can just add that class to anything that needs the box-shadow removed.

    # February 5, 2013 at 10:29 pm

    @Cyanoxide you’re awesome man, that did it thank you !

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".