How to style an input?

In a element like the one that follows, that gives an input text with a place holder, I would like to know how to style the field and its placeholder (i.e center the placeholder, change the size of the fields …) using CSS, or html.

<label id="name-label"><strong>Name</strong><input id="name" type="text" placeholder="Enter your name" required></label>

Cheers! :slight_smile:

@gusklt What kind of CSS have you added to the page so far?

Hello @brandon_wallace !
so far regarding the style of this part of my form my CSS looks like that :

#name-label {
display: flex;
flex-direction: column;
height: 5rem;
padding-top: 1rem;

but this actually apply to the label containig my input…

alright amazing :smiley: i found out the first of your two options but the second one is a definitely useful one than you

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.