/    Sign up×
Community /Pin to ProfileBookmark

min-width problem in Firefox

This works in Opera but not properly in Firefox. [I]<div id=”holder”>[/I] has a max-width of 600px but is supposed to shrink down to 200px (min-width) as the window is resized. At the moment something is stopping it shinking down to 200px; it seems to stop shinking at about 400px. Here is [URL=http://bokehman.com/png/]a link to the page in question[/URL].

[code=html]<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01//EN”
“http://www.w3.org/TR/html4/strict.dtd”>

<html lang=”en”>
<head>
<meta http-equiv=”content-type” content=”text/html; charset=iso-8859-1″>
<style type=”text/css”>
html,body{
margin:30px;
padding:0;
}
#holder{
position:relative;
width:90%;
min-width:200px;
max-width:600px;
margin:0 auto;
padding:0;
background:#d96;
}
#color{
width:200px;
height:200px;
display:block;
margin:0 auto;
padding:0;
}
#saturation{
position:absolute;
width:200px;
height:200px;
display:block;
top:0;
left:0;
}
#luminance{
position:absolute;
width:200px;
height:200px;
display:block;
top:0;
right:0;
}
</style>
<title>PNG Fun</title>
</head>

<body>
<div id=”holder”>
<img id=”color” src=”color.png” alt=”color”>
<img id=”saturation” src=”saturation.png” alt=”saturation”>
<img id=”luminance” src=”luminance.png” alt=”luminance”>
</div>
</body>

</html>[/code]

to post a comment
CSS

11 Comments(s)

Copy linkTweet thisAlerts:
@pcthugMar 04.2006 — Firefox 1.5.1 seems fine to me, personally I think IE is where you have the problems as IE dosent support the min-* property
Copy linkTweet thisAlerts:
@bokehauthorMar 04.2006 — I don't care about I.E. These images don't work in I.E. anyway, but if you say there is no problem with the way this displays in Firefox you obviously didn't try the page I linked to.
Copy linkTweet thisAlerts:
@johnevaMar 04.2006 — I dont see a problem with the div resizing either (Using Firefox).

When you resize it though do you want the images to stay seperate and jump to the next line when resizing?

Or just merge together?

If the later is the effect your affter then it works fine for me too.
Copy linkTweet thisAlerts:
@drhowarddrfineMar 04.2006 — Works for me, too.
Copy linkTweet thisAlerts:
@bokehauthorMar 04.2006 — The images should completely colapse (stack) to form one image. For me it gets half way closed and won't close any more... stops about 400px wide in Firefox 1.5.0.1 and this was confirmed by others also using Firefox.

If it works for you can you post a sceenshot to show me?
Copy linkTweet thisAlerts:
@JayMMar 04.2006 — Worked for me. I had to resize the image so it's less than 100kb.

[upl-file uuid=24793445-b370-4c2c-909b-863de4553b31 size=94kB]scrn.jpg[/upl-file]
Copy linkTweet thisAlerts:
@johnevaMar 04.2006 — Here you go dude.

[upl-file uuid=37530e75-187c-4120-9600-f7c6ee11274e size=77kB]example.jpg[/upl-file]
Copy linkTweet thisAlerts:
@bokehauthorMar 04.2006 — Ok, I just tested it on another machine that is set to 1024 width and it works perfectly. Both the machines that showed the problem are running 1280 width. What resolution are you all running? Any other causes?

Just so you don't all think I'm crazy I have posted a screenshot.

[upl-file uuid=21939b4d-b7fb-489a-adbc-2a7855d195ee size=36kB]min-width.jpg[/upl-file]
Copy linkTweet thisAlerts:
@johnevaMar 04.2006 — Mine is a 1024 width too. Sounds like that could be the reason.

Though I dont know why.
Copy linkTweet thisAlerts:
@pcthugMar 05.2006 — I am using 1280 screen res and no faults apparent to me

[upl-file uuid=67ef717d-9e85-4a21-8e82-d8eabcab687e size=100kB]min-width0.jpg[/upl-file]
Copy linkTweet thisAlerts:
@bokehauthorMar 05.2006 — So why is it not closing down for me? (See my image post above). Anyone got any ideas?
×

Success!

Help @bokeh spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...