Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Mar 2013
    Posts
    80
    Thanks
    45
    Thanked 0 Times in 0 Posts

    min-width problem

    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/

  • #2
    Senior Coder
    Join Date
    Aug 2006
    Posts
    1,267
    Thanks
    10
    Thanked 277 Times in 276 Posts
    perhaps you wanted "max-width"?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •