I'm working on a responsive design. I've hit a bit of a wall with there not being enough space for an input
box and it's label
. So I have decided to hide the label on smaller screen sizes.
At present it has the placeholder text your email
inside it, but I want only on screens less than 400 (so up to 399px wide) a different place holder of Join our newsletter
.
I reckon there will need to be some JS to perform this, rather than anything with CSS.
Essentially: if screen size less than 400: placeholder text = Join our newsletter
else: placeholder text = Your email.
Here is the HTML I have:
<div id="mc_embed_signup">
<input type="email" value="" name="EMAIL" class="required email" id="mce-EMAIL" placeholder="Your Email">
</div>
input
with different placeholders, and manage theirdisplay
property by CSS3@media
. – Arabele