Reputation: 211
i'm looking to resize my images in my image slider automatically to fit the browser window while keeping my image size as low as possible. The images itself have a fixed width of 800px but when the browser window scales to more than that the images don't scale along. They stay a fixed 800px. Is there a way to resolve that.
You can see an example at: http://www.continuous-ltd.be/ctb-site/indextest.html
thx
Upvotes: 0
Views: 118
Reputation: 4046
you can also use this css
.slides, .slides li, .slides li img{
max-width:100%;
}
Upvotes: 0
Reputation: 6499
You could use background-size: 100%;
but keep in mind that it's not implemented on all browsers yet
Upvotes: 1