On 6/16/06, Ben Liu <[EMAIL PROTECTED]> wrote: > Hi Christian, > > Thanks for the help. I think I can do away with the containment div > around the bar graph img since I have another containment div already > performing some other functions. Any ideas on what is more correct: > > <img src="bargraph.gif" height="<? some variable script here ?>" /> > > -OR- > > <img src="bargraph.gif" style="height: <? some variable script here ?>" /> > > or in other words, does the image height declaration belong in the html or > css?
You are much better off doing it in the HTML. Images should, if possible, always have height and width settings, if they are meant to be a pixel size. They render faster when they have the dimensions in the HTML too. -- -- Christian Montoya christianmontoya.com ... portfolio.christianmontoya.com ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7 List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
