/ Forside / Teknologi / Udvikling / Java Scripts / Nyhedsindlæg
Login
Glemt dit kodeord?
Brugernavn

Kodeord


Reklame
Top 10 brugere
Java Scripts
#NavnPoint
molokyle 5410
Klaudi 2799
smorch 2439
kim 1360
Harlekin 1134
bentjuul 984
gibson 800
severino 695
Random 675
10  konsulent.. 626
Lattice: toward a more elastic layout
Fra : federico.maggi@gmail~


Dato : 07-06-06 00:20

(Sorry for posting here in English but this is one of the most active
group I found on The Net)

Elastic CSS layouts are based on em units for both fonts and
widths/heights so that the layout scales as the user changes the font
size. Such a solution is purely based upon CSS.

By means of some cross-browser compatible Javascript, I have sketched a
small solution for adjusting font sizes as the browser window is
resized.

Maybe I did not googled enough to find that someone has implemented the
same script, sorry! In that case, take my solution as my viewpoin

For more details see the my "Lattice script"

http://docs.maggi.cc/lattice.js

or try out a little demo

http://docs.maggi.cc/lattice_demo.html

I'd be pleased to receive your comments/critiques and possible
improvements.

Thanks in advance,

--

Federico www.maggi.cc


 
 
Erik Ginnerskov (07-06-2006)
Kommentar
Fra : Erik Ginnerskov


Dato : 07-06-06 01:49

federico.maggi@gmail.com wrote:
> (Sorry for posting here in English but this is one of the most active
> group I found on The Net)

That's all right. We do manage that too.

> Elastic CSS layouts are based on em units for both fonts and
> widths/heights so that the layout scales as the user changes the font
> size. Such a solution is purely based upon CSS.
>
> By means of some cross-browser compatible Javascript, I have sketched
> a small solution for adjusting font sizes as the browser window is
> resized.

That cross-browser function isn't very cross-browser like. The script works
fine i Firefox but not at all in Internet Explorer - I didn't test it in any
other browsers.

--
Med venlig hilsen - Yours
Erik Ginnerskov
http://hjemmesideskolen.dk/ - http://ginnerskov.dk/
http://html-faq.dk/



Søg
Reklame
Statistik
Spørgsmål : 177558
Tips : 31968
Nyheder : 719565
Indlæg : 6408924
Brugere : 218888

Månedens bedste
Årets bedste
Sidste års bedste