You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you add a size attribute to an input element, it isn't responsive and I don't exactly know how you could make it responsive. I'm not sure if it'd be possible to add a class that would make it responsive, but yeah.
The text was updated successfully, but these errors were encountered:
This makes a responsive <div> which contains your input element. Although I'm not sure if creating a CSS class for the input would work but this way you can contain the input in a responsive <div>, creating the same effect.
<!-- The above form looks like this --><form><divclass="row"><divclass="six columns"><labelfor="exampleEmailInput">Your email</label><inputclass="u-full-width" type="email" placeholder="[email protected]" id="exampleEmailInput"></div><divclass="six columns"><labelfor="exampleRecipientInput">Reason for contacting</label><selectclass="u-full-width" id="exampleRecipientInput"><optionvalue="Option 1">Questions</option><optionvalue="Option 2">Admiration</option><optionvalue="Option 3">Can I get your number?</option></select></div></div><labelfor="exampleMessage">Message</label><textareaclass="u-full-width" placeholder="Hi Dave …" id="exampleMessage"></textarea><labelclass="example-send-yourself-copy"><inputtype="checkbox"><spanclass="label-body">Send a copy to yourself</span></label><inputclass="button-primary" type="submit" value="Submit"></form><!-- Always wrap checkbox and radio inputs in a label and use a <span class="label-body"> inside of it --><!-- Note: The class .u-full-width is just a utility class shorthand for width: 100% -->
Hey!
If you add a
size
attribute to aninput
element, it isn't responsive and I don't exactly know how you could make it responsive. I'm not sure if it'd be possible to add a class that would make it responsive, but yeah.The text was updated successfully, but these errors were encountered: