Welcome to WebmasterWorld Guest from 54.196.232.162

Forum Moderators: open

Message Too Old, No Replies

Autowriting image dimensions in Dreamweaver

Is it possible to automatically render image width and height?

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

New User

5+ Year Member

joined:May 22, 2009
posts: 2
votes: 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)

Full Member

5+ Year Member

joined:Mar 3, 2009
posts: 227
votes: 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!
1:05 pm on May 22, 2009 (gmt 0)

New User

5+ Year Member

joined:May 22, 2009
posts: 2
votes: 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)

Full Member

5+ Year Member

joined:Mar 3, 2009
posts: 227
votes: 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.