Grow your CSS skills. Land your dream job.

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
    example

    body {
    width:80%;
    min-width:500px;
    }

    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.

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