The Lodge is members-only design/dev videos and Office Hours.

Next Office Hours Session: "Implementing an SVG Icon System" Nov 30 - 6:00 PM Eastern

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

    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:


    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.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed