|
Prev: z_index, iCab just works, use current version before posting
Next: Make HTML code show up on the web
From: salmobytes on 13 Apr 2008 12:04 I just stumbled across the following (I followed a link from positioniseverything.net) http://www.positioniseverything.net/articles/jello-expo.html This looks interesting. Anybody try it? Have opinions?
From: Bergamot on 13 Apr 2008 13:41 salmobytes wrote: > > http://www.positioniseverything.net/articles/jello-expo.html > > This looks interesting. Anybody try it? Have opinions? I didn't looked at the code so won't comment on their mechanics, but I use % widths combined with max-width and negative margins all the time. -- Berg
From: VK on 13 Apr 2008 17:13 On Apr 13, 8:04 pm, salmobytes <Sandy.Pittendr...(a)gmail.com> wrote: > I just stumbled across the following (I followed a link > from positioniseverything.net) > > http://www.positioniseverything.net/articles/jello-expo.html > > This looks interesting. Anybody try it? Have opinions? <q>In other words, if the parent element is 0px wide and its child is always 700px wider than its parent, that child element cannot ever be narrower than 700px. When negative margins are applied to both sides of the widthless nested child, the effect is to widen that child element in both directions, causing it to appear wider than its parent!.</q> Holly sh**... Some people are just having way too much free time in their hands - and no clue how to spare it productively. The problem of min-width / min-height is solved a thousand of so years ago: use 1x1 transparent gif with wspace and hspace set to what you need.
From: Jeff on 14 Apr 2008 10:52
VK wrote: > On Apr 13, 8:04 pm, salmobytes <Sandy.Pittendr...(a)gmail.com> wrote: >> I just stumbled across the following (I followed a link >> from positioniseverything.net) >> >> http://www.positioniseverything.net/articles/jello-expo.html >> >> This looks interesting. Anybody try it? Have opinions? > > <q>In other words, if the parent element is 0px wide and its child is > always 700px wider than its parent, that child element cannot ever be > narrower than 700px. When negative margins are applied to both sides > of the widthless nested child, the effect is to widen that child > element in both directions, causing it to appear wider than its > parent!.</q> > > Holly sh**... Some people are just having way too much free time in > their hands - and no clue how to spare it productively. > > The problem of min-width / min-height is solved a thousand of so years > ago: use 1x1 transparent gif with wspace and hspace set to what you > need. selector { min-height:500px; height:auto !important; height:500px; } Same for min-width... http://www.dustindiaz.com/min-height-fast-hack/ That doesn't address max-width though. Jeff |