css sizing percentages pixels

  • # May 3, 2013 at 8:39 pm

    if i have width property for an element and it uses percentage also the element has a min-width in pixels

    body {

    does the min-width override that percentage width?

    # May 3, 2013 at 9:51 pm

    They both work together. The element will be 80% of its parent’s width to a minimum width of 500px.

Viewing 2 posts - 1 through 2 (of 2 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