Does anyone know why this code isn't displaying correctly on mobile devices - @media only screen
Help with code
5
Does anyone know why this code isn't displaying correctly on mobile devices -
@media only screen
and (min-device-width : 320px)
and (max-device-width : 480px) {
.fild input[type="submit"]
{width:110px; height:113px; color:transparent; cursor:pointer; background:none;
background:transparent;
border:0; background-image:url(http://XXX.png); background-repeat:no-repeat;
position:relative; }
}
Here is what is the HTML:
<div class="green_bg">
<h3 style="color:white;">XXXXX</h5>
<form class="fild" accept-charset="utf-8" action="https://app.getresponse.com/add_contact_webform.html" method="post" onsubmit="return subscribe_praise('name_third', 'email_third')">
<input name="name" style="padding: 3px" id="name_third" type="text" value="Your First Name" onfocus="if (this.value=="Your First Name" {this.value=""}" onblur="if (this.value=="" { this.value= "Your First Name" }"> <input name="email" style="padding: 3px" id="email_third" type="text" value="Your Email Address" onfocus="if (this.value=="Your Email Address" {this.value=""}" onblur="if (this.value=="" { this.value= "Your Email Address" }">
<input type="hidden" name="webform_id" value="664966" />
<input name="" type="submit" value="">
</form>
<div class="clear"></div>
</div>
@media only screen
and (min-device-width : 320px)
and (max-device-width : 480px) {
.fild input[type="submit"]
{width:110px; height:113px; color:transparent; cursor:pointer; background:none;
background:transparent;
border:0; background-image:url(http://XXX.png); background-repeat:no-repeat;
position:relative; }
}
Here is what is the HTML:
<div class="green_bg">
<h3 style="color:white;">XXXXX</h5>
<form class="fild" accept-charset="utf-8" action="https://app.getresponse.com/add_contact_webform.html" method="post" onsubmit="return subscribe_praise('name_third', 'email_third')">
<input name="name" style="padding: 3px" id="name_third" type="text" value="Your First Name" onfocus="if (this.value=="Your First Name"
<input type="hidden" name="webform_id" value="664966" />
<input name="" type="submit" value="">
</form>
<div class="clear"></div>
</div>
- WPcrew
- clickbump
- MillionDollarBucks
- jpweb
Next Topics on Trending Feed
-
5