Get a free trial // Grow your CSS skills // Land your dream job

Background-size and DIV height/width both needed?

  • # March 5, 2013 at 1:57 am

    Hello…I am using css background images for UI elements…is it necessary to define both a background-size of the image and a width/height of the div if they are identical?

    Thank you

    # March 5, 2013 at 2:05 am

    If image/div are same div width/height would be enough.

    # March 5, 2013 at 7:58 am

    ok…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