homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / WYSIWYG and Text Code Editors
Forum Library, Charter, Moderator: open

WYSIWYG and Text Code Editors Forum

Autowriting image dimensions in Dreamweaver
Is it possible to automatically render image width and height?
Template Torturer

 9:15 am on May 22, 2009 (gmt 0)

Hey all,

I write my HTML in Dreamweavers codeview (CS3). When I need to add an image I use the image insert button. It spits out something like:

<img src="images/bullet.gif" />

but I'd much rather have it write an empty alt tag and the image dimensions altogether, like so:

<img src="images/bullet.gif" alt="" width="12" height="11" />

I've been looking around for an answer to this one for quite a while now. I can't imagine there's no preference setting for autowriting image dimensions.

Anyone knows whether this is possible or not?



 12:57 pm on May 22, 2009 (gmt 0)

Use the image insert button in split or design view in order to achieve that. But you have to place the cursor where you want your image to go in the design view area. Done and Did!

Template Torturer

 1:05 pm on May 22, 2009 (gmt 0)

Thx CSS_kidd,

I was hoping to get it done without having to switch to split/design view, but hey... it works. Guess I have to adapt just a bit.


 1:54 pm on May 22, 2009 (gmt 0)

I usually work in split mode for the most part. It took me a while to realize that different insert buttons will do different things depending on weather you're inserting in the code area or the design area. Glad to be of help.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / WYSIWYG and Text Code Editors
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved