Forum Moderators: open

Message Too Old, No Replies

IMG Tags in Dreamweaver MX?

Missing width & height attributes

         

j2studio

8:42 pm on Jul 12, 2004 (gmt 0)

10+ Year Member



Hi,

Just downloaded MX - I've been using version 3, believe it or not, prior to this.

I LOVE the new code. Very clean. Too clean as a matter of fact. On all my images, the width and height attributes are missing from the IMG tag. All have border=0, but no automatically generated w,h.

Did I accidentally toggle something on or off that caused this?

J

designmaster

8:48 pm on Jul 12, 2004 (gmt 0)

10+ Year Member



This may sound simple... but you should see your IMG tag specs on the properties bar.
windown> properties (on a mac).

My sugestion is always to have show design and code view on.

I hope this is what your needing help with.

T

j2studio

9:02 pm on Jul 12, 2004 (gmt 0)

10+ Year Member



Hi,

Yes, the specs are there, but the specs aren't present in the code.

The code reads IMG SRC="x.gif" BORDER=0, but doesn't list x.gif width & height.

This would not be a problem except for the fact that I'm uploading my portfolio (600 images+) and I don't want to go thru and hand code the values.

designmaster

9:26 pm on Jul 12, 2004 (gmt 0)

10+ Year Member



That does seem strange. I just had a look and tried all the importing ways, and found that all of them added the values. I understand that you dont want to hand code it... not at 600 images!

Hopefully, someone else will know.

As a work around. I would set up your actions in photoshop to save them as whatever pixel width you need. Then create a table with the exact pixel width. I assume your portfolio will be relatively uniform.

Just as a problem solving step, I would .. open up another . HTML file that you know has the IMG w/h and see if the image values show up then.

Sorry I can't be of more help.
T

j2studio

11:59 pm on Jul 12, 2004 (gmt 0)

10+ Year Member



Update:

On the Properties panel, the height and width for each image are blank. There is a little "refresh/spinning arrow"-type icon next to them. When I click it, it inserts the width and height into the code.

Isn't there a way to automatically do this without having to go thru and click for each image?

J

j2studio

12:06 am on Jul 13, 2004 (gmt 0)

10+ Year Member



ummm...2nd update:

Under Edit>Preferences>Accessibility

I checked "Show attributes when inserting images" and now when I put in an image, it prompts me for ALT text and adds the height and width to the code automatically.

If anyone knows how to add the height and width automatically WITHOUT the ALT prompt, please let me know! :-)

Thanks,
J

limbo

8:29 am on Jul 14, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



j2studio

My set up is displaying the image attributes without the accessibility setting? I'm new to MX too? So there is a way - but not sure how to change it - I will keep my eyes open for you.

height and width automatically WITHOUT the ALT prompt

As a side note - it is best practice to add alt text to every image regardless of how tedious. See it as an incremental boost to your SERPs and makes life easier for users with accessiblilty software or those with images turned off.

Ta, Limbo