Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

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)

5+ Year Member

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)

5+ Year Member

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)

5+ Year Member

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)

5+ Year Member

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.

Featured Threads

Hot Threads This Week

Hot Threads This Month