---------- Forwarded message ----------
From: Gabriele Romanato <[email protected]>
Date: 2009/7/30
Subject: Re: [css-d] adding css to js, or the miserable 9 pixels
To: [email protected]


The JS code provided is really ugly. Using write() is the worst approach,
because the img is injected while the page is still loading and the DOM is
not complete and ready to be used.
Beside this, you should consider that an img is an inline element by
default, so it's affected by line boxes height calculation. try to set in
your css all the images in the banner to 'block'. and please, use a better
approach in your js coding.

HTH

Gabriele ^.^/


-- 
http://www.css-zibaldone.com/
http://www.css-zibaldone.com/test/ (English)
http://www.css-zibaldone.com/articles/ (English)
http://dev.css-zibaldone.com/  (English)




-- 
http://www.css-zibaldone.com/
http://www.css-zibaldone.com/test/ (English)
http://www.css-zibaldone.com/articles/ (English)
http://dev.css-zibaldone.com/  (English)
______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to