![]() |
|
||||||||||
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
|||||
|
|
#1 |
|
WLC Member
Join Date: Jun 2011
Posts: 1
|
<style>
#Picture {position:fixed; bottom:0; z-index:100;} </style> <div id="Picture"> <img src="picture.png"> </div> On smaller screens it will be too wide and make a scroll bar at the bottom, whereas on large/wide screens the image wont be wide enough. So, my question is: how do you make it compatible with all screen resolutions(without having a scroll bar on the bottom or a gap)? To have it resize properly for everyone who uses it? Sorry if I sound dumb.
|
|
|
|
|
|
#2 |
|
WLC Mod
Join Date: Jul 2009
Location: Milky Way Galaxy
Posts: 3,134
|
First, your top line should be <i><style type="text/css"></i>
The answer to your question should be width:100% on your image tag.
__________________
Praise be to the Lord God for the ability to learn, the capability to analyze, and the time to help users on this forum. |
|
|
|
|
|
#3 |
|
Banned
Join Date: Jun 2006
Location: Blackp ool U.K.
Posts: 3,197
|
|
|
|
|
|
|
#4 |
|
WLC Lover
Join Date: Oct 2010
Location: Newcastle, NSW, Australia
Posts: 703
|
so can anyone explain to me then what is wrong with this solution?
Code:
#div-that-image-sits-in img {
width:100%;
height:auto;
}
surely that script within that link is just a bit of overkill yeah? Last edited by Phreaddee; 22nd June 11 at 01:51 AM. |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
Linear Mode |
|
|