Jump to content
christina_g

Styling a form with CSS

Recommended Posts

Hello everybody,

 

I would like to add a simple form to a webpage that will allow internet users to suscribe to a newsletter by indicating their email address.I do have the HTML code for the form and it works out fine, but I do not know how to style the form with CSS (font, font size, text align, etc.).Currently, adding the HTML form code to the page overrides nearly all CSS styling defined for the section of the page concerned :-(

 

Thank you very much in advance for your help !

Share this post


Link to post
Share on other sites

Then do the w3schools CSS tutorials

Share this post


Link to post
Share on other sites

Instead given the paragraph a maybe unnecessary class, you could just target it using

 

form p {}

 

it will adopt the default styling you have set, but you can change specific styling to your needs.

Edited by dsonesuk

Share this post


Link to post
Share on other sites

Can you be more specific? Is this a global question about forms or? You can always add into CSS tags like input.class_name{color:#FFFFFF; etc.} Does this solves the problem?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...