Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS css sizing percentages pixels

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #44542
    pcman2121
    Member

    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?

    #134015

    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)
  • The forum ‘CSS’ is closed to new topics and replies.