Forums

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

Home Forums JavaScript How to dynamically size a <ul> with jQuery? Re: How to dynamically size a

    with jQuery?

#59537
akeenlabs
Participant
"Eraser35" wrote:
Yes, basically I am looking for my web application to scale well in different browsers.. for example take a look at this link:

http://jx.myofiz.com/jxviewport.html

as you can see, when you resize your browser by dragging it in the lower right-hand corner, everything expands and contracts very well and retains their specified proportions… this is why i was thinking jquery might be necessary. I believe GMail also has a similar "scaling" functionality as the above link…

You don’t need JavaScript at all to achieve the layout like that link, you only need CSS and some absolute positioning. If you set all four offsets (top, right, bottom, left) of an absolutely positioned box the width and height will be adjusted automatically.