Background Image Re-Size Depending on Window Size
Hey guys, so i am working on a site right now for mobile.
And all of the comments are wrapped in a Div like so
Is there a way to make these Background Images re-size with the size of the window ( phone screen ). And not have a specific width.
If you have a smart phone you can go to www.stage.1cp.ca/discover/sort/recent
And view the comment area, right now because the width is specific, the right side is always cut off.
If you use the following, putting your image inside a div, size your images for the desktop screen, but when viewed in a mobile phone, the images will resize to fit:
<img src="xxxx.jpg" width="900px" style="max-width:100%">
The max-width will make sure the image never goes outside its container element -- in this case, the div.
|All times are GMT +1. The time now is 06:56 PM.|
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.