Brad Bansner
asked on
Problem styling image to fit in DIV for mobile devices
This URL:
http://gethcem.com/recent.asp
Click any of the orange names on that screen. Then close the width of your browser to less than 35em to flip it into "mobile mode". The logo is too tall. Here is the non-mobile CSS:
#cemeterylogo{float:left;w idth:326px ;text-alig n:center;m argin-top: 18px;margi n-bottom:1 8px;}
Here is the mobile CSS:
#cemeterylogo{float:none;w idth:100%; height:aut o;margin-t op:0.5em;}
#cemeterylogoimg{width:80% ;height:au to;}
I don't understand why the container DIV is not expanded along with the logo. Here is the HTML:
<div id="cemeterylogo">
<a href="default.asp"><img id="cemeterylogoimg" src="15/cemetery-logo.jpg" border="0" /></a>
</div>
Would appreciate any advice. Thank you!
http://gethcem.com/recent.asp
Click any of the orange names on that screen. Then close the width of your browser to less than 35em to flip it into "mobile mode". The logo is too tall. Here is the non-mobile CSS:
#cemeterylogo{float:left;w
Here is the mobile CSS:
#cemeterylogo{float:none;w
#cemeterylogoimg{width:80%
I don't understand why the container DIV is not expanded along with the logo. Here is the HTML:
<div id="cemeterylogo">
<a href="default.asp"><img id="cemeterylogoimg" src="15/cemetery-logo.jpg"
</div>
Would appreciate any advice. Thank you!
The other thing is, if you are going to use modern mobile technology, you might want to upgrade the 20th century code to something a little closer to current standards.
Cd&
Cd&
Well on my firefox everything is fine. Maybe you tell us what browser you're using, please.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Found solution on my own by analyzing CSS code.
Cd&