Hi everyone-
I’ve applied some custom styles to a form submit button but cannot get those styles to show up on a mobile device. When I preview my style changes with a web inspector, it appears the styles are working correctly on the button.
But when I pull up a link to the same page on my iPhone the button styles are not the same at all.I’m wondering if the styles visible on my phone due to a conflicting CSS class or something else I haven’t spotted?
--------------------------------------------------------
The markup for my button styles is below:
.hs-button.primary, body input[type=“submit”] { position:relative; width:35%; background-color: #eb922d; border-radius:0px; border-style:none; color:#ffffff;
font-family:‘Merriweather Sans’, ‘Helvetica’, sans-serif;
text-transform:uppercase; letter-spacing:2px; margin-left:35%; margin-right:35%; text-align:center; padding:5% 5% 5% 5%; -webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none; }
.hs-button.large.primary {font-size:1.4em; margin:1% 1% 1% 35%; border-style:none; border-radius:0px;
background-color:#eb922d;
color:white;
font-family:‘Merriweather Sans’, ‘Helvetica’, sans-serif; margin-left:35%; margin-right:35%; padding:5% 5% 5% 5%;
font-weight:700;
text-transform:uppercase;
text-align:center; position:relative; -webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;}
@media only screen
and (min-device-width:320px)
and (max-device-width:600px){.hs-button.large.primary{ font-size: .6em; background-color: #eb922d; color: white;
font-family:‘Merriweather Sans’;
font-weight: 700;
text-transform: uppercase;
text-align: center; margin: 1% 35% 1% 35%;
border-radius: 0px;
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
}}
@media only screen
and (min-device-width:320px)
and (max-device-width:600px){.hs-button.primary, body input[type=“submit”] { width:35%; height:10%; font-size: .9em; background-color: #eb922d; color: white;
font-family:‘Merriweather Sans’;
font-weight: 700;
text-transform: uppercase;
text-align: center; margin: 1% 25% 1% 25%;
border-radius: 0px;
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
}}