Forums

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

Home Forums CSS min-width problem

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #153485
    javascriptnewbie
    Participant

    Okay, someone please explain why’s the div occupying the whole with on page?
    I used min-width to prevent it from doing it, but still..

    I also changed the width of h1 as it’s block and would force div to stretch…

    http://jsfiddle.net/ZadWv/

    #153490
    Alen
    Participant

    min-width: 200px; – element will occupy space from 200px and up.
    max-width: 200px – element will occupy space from 0px to 200px.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.