hi everyone, i have some code that resises an image if its bigger than a certain size...
the problem is that although the image is resised, its still pushing the div to the images full size?

heres the code

.dt2 img {
max-width: 300px;
width: expression(document.body.clientWidth > 300? "300px": "auto" );
}

any help appreciated
thanks

Recommended Answers

All 2 Replies

sorry , wrong post.

anyone?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.