views:

269

answers:

4

I have a weird problem with images in visual web developer,

I cant change my images properties from properties panel (my changes don't take effect) and all images in my website have gotten the same size

when I resize one image (by dragging the border), all images get that new size?

any idea?

A: 

I solved the problem in some way visual web developer read the image class in the css file instead of the properties of the control because there are something like this in my css file img { width:260px; }

ahmed
Thank you for sharing the solution :)
labilbe
A: 

Yes, basically the width and height properties of the HTML img have been depricated for some time, you are recommended to use styles instead.

VS then takes this to the extreme, and instead of using inline styles, will create a new style in the default style sheet location for img, as you've discovered.

However, unless you are using the image full size somewhere you are beteer of resizing the image before you upload it to the server, saving on everyones bandwidth.

Also, IE does pretty poor things with it's default scaling routine, but you can turn on cubic sampling through css

Zhaph - Ben Duguid
A: 

right ,but you can use css to solve your problem.

A: 

Wow this fixed my problem.

Herb Misc Zydney