LuKreme wrote: > There’s an expert pref for this in 10.0.2 (preview), as I recall....
That sounds useful. What I was describing would go even further, but that sounds like an excellent step in that direction. Robert A. Rosenberg wrote: > Why do you not want it in the img tag?... > Is the image going to appear on more than one page?.... Sometimes the image *will* appear on more than one page, like a logo or some other standard element. In that case I like as much of the information as possible in a central stylesheet, "putting its dimensions AND URL in the CSS entry" as you say, for ease of swapping or manipulation, either manually or under script control. If the image is for the current page only, I'm unlikely to reference it from a central stylesheet. But I still usually prefer its dimensions to be in the CSS section in the document's head, not as inline HTML, and not even as inline CSS. The reason is that even closely related page elements will often appear in widely separated parts of the HTML code (especially true if you use CSS positioning). By organizing information and attributes (including dimensions) about related elements... images, divs, and so forth... into logically related groups in one place, it's easier for me to analyze and tweak the layout, rather than having to hunt through a large mass of HTML body code searching for the related elements and constructing a mental picture of their relationship even though their code is widely dispersed. An additional reason is that I sometimes JavaScript the images and the related CSS. I find this a little easier to do if the attributes are "clumped up" in predictable places, especially since I use a getComputedStyle kind of utility function to overcome the inherent "preference" of JavaScript for inline styles. -- You received this message because you are subscribed to the "BBEdit Talk" discussion group on Google Groups. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at <http://groups.google.com/group/bbedit?hl=en> If you have a feature request or would like to report a problem, please email "[email protected]" rather than posting to the group. Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
