Link to home
Start Free TrialLog in
Avatar of Brad Bansner
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;width:326px;text-align:center;margin-top:18px;margin-bottom:18px;}

Here is the mobile CSS:

#cemeterylogo{float:none;width:100%;height:auto;margin-top:0.5em;}
#cemeterylogoimg{width:80%;height:auto;}

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!
Avatar of COBOLdinosaur
COBOLdinosaur
Flag of Canada image

When I click on the orange names all I get is a fatal server error.

Cd&
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&
Well on my firefox everything is fine. Maybe you tell us what browser you're using, please.
ASKER CERTIFIED SOLUTION
Avatar of Brad Bansner
Brad Bansner

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Brad Bansner
Brad Bansner

ASKER

Found solution on my own by analyzing CSS code.