Andreas De Rudder Posted May 25, 2016 Share Posted May 25, 2016 Hello, I learn at school about fluid and flexibel design. I want make now a slideshow on my website fluid, so it has the same width as the text and titles on each screen. I have given the pictures a div with width 100% in css, but it doesn't work. What have I done wrong? My website is: http://msngent.be/information.html Thanks for helping me, Andreas Link to comment Share on other sites More sharing options...
dsonesuk Posted May 25, 2016 Share Posted May 25, 2016 (edited) The div element will automatically be the width of its parent, so making it width 100% make it a bit redundant. The idea is to make the IMG tag be the total width available to it width: 100%; while keeping height proportionately correct by using height: auto; Edited May 25, 2016 by dsonesuk Link to comment Share on other sites More sharing options...
Andreas De Rudder Posted May 25, 2016 Author Share Posted May 25, 2016 Thank you! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now