1 reply [Last post]
ricardocarvalho
ricardocarvalho's picture
Offline
newbie
Last seen: 7 years 11 weeks ago
Timezone: GMT-3
Joined: 2013-05-21
Posts: 1
Points: 2

I am wanting to put a form 100% on screen, but with restrictions for a minimum and maximum width, ie, I want you 100% of the width of the screen, but at most 1250 and at least 950.

Code works in chrome and ff:

<html>
<head>
</head>
<body style="padding:0px;margin:0px;">
<div style="max-width:1250;min-width:950;width:100%;background-color:#F00;">
teste
<div style="width:50%;background-color:#0F0;">
teste
<input style="width:50%;">
</div>
</div>
</body>
</html>

Thanks and sorry for my poor english.

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 5 years 30 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

That is not a valid test

That is not a valid test case! if that is what you are basing your assertion on. IE9 does work with min max widths so look for your error in implementation.

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me