Forum Moderators: not2easy
<body ontouchstart="">
<div class="gridContainer clearfix">
<div id="LayoutDiv1"><img src="images/xxx.jpg" alt="xxx" longdesc="xxx">
<div id="LogoImage"><img class="Logo" src="images/yyy.jpg" alt="yyy."></div>
<div id="HeaderText">Header Text</div>
<div id="SubHeaderText">SubHeader Text</div>
</div>
#LayoutDiv1 {
position: relative;
clear: both;
float: left;
margin-top: 60px;
margin-left: 0px;
width: 100%;
display: block;
}
#HeaderText {
position: absolute;
top: 2%;
left: 5%;
color: #FFF;
font-family: Century Gothic, sans-serif;
text-shadow: 2px 2px 2px #333;
font-weight: bold;
font-size: 15px;
font-size: 7vw;
}
#SubHeaderText {
position: absolute;
bottom: 2%;
left: 5%;
color: #FFF;
font-family: Century Gothic, sans-serif;
text-shadow: 5px 5px 5px #333;
font-weight: bold;
font-size: 12px;
font-size: 4vw;
}
#LogoImage {
position: absolute;
top: 5%;
right: 5%;
}
.Logo {
padding:6px;
border:1px solid #021a40;
background-color:#FFF;
border-radius: 50%;
}
max-height: 50%;, but this image resolutely refuses to become responsive!
<body ontouchstart="">
<div class="gridContainer clearfix">
<div id="LayoutDiv1">
<img src="images/images/xxx.jpg" alt="xxx" longdesc="xxx">
<div id="LogoImage">
<img class="Logo" src="images/yyy.jpg" alt="yyy.">
</div> <!-- close LogoImage -->
<div id="HeaderText">
Header Text
</div> <!-- close HeaderText -->
<div id="SubHeaderText">
SubHeader Text
</div> <!-- close SubHeaderText -->
</div> <!-- close LayoutDiv1 -->
</div> <!-- close gridContainer --> #LayoutDiv1 {
position: relative;
clear: both;
float: left;
margin-top: 60px;
margin-left: 0px;
width: 100%;
display: block;
}
#HeaderText {
position: absolute;
top: 2%;
left: 5%;
color: #FFF;
font-family: Century Gothic, sans-serif;
text-shadow: 2px 2px 2px #333;
font-weight: bold;
font-size: 15px;
font-size: 7vw;
}
#SubHeaderText {
position: absolute;
bottom: 2%;
left: 5%;
color: #FFF;
font-family: Century Gothic, sans-serif;
text-shadow: 5px 5px 5px #333;
font-weight: bold;
font-size: 12px;
font-size: 4vw;
}
#LogoImage {
position: absolute;
top: 5%;
right: 5%;
}
.Logo {
padding:6px;
border:1px solid #021a40;
background-color:#FFF;
border-radius: 50%;
}
.logo img {width:auto; height: 100%; width: 100%;} with this:img {
max-width: 100%;
height: auto;
} it can't work unless you remove .logo img {width:auto; height: 100%; width: 100%;}