Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter amiddayinmay

    (@amiddayinmay)

    further to the above, the site I am working on is:
    Jo Daly Interiors

    Also further to this, how do I align the email input and the submit button. Thanks!

    mother.of.code

    (@imazed)

    The Mother of Code

    Hi amiddayinmay,

    The website you mentioned is still under construction so there’s not much I see from there. Have you checked the source code in your browser to see what’s being outputted? Could you show me a live page where this is happening?

    Thread Starter amiddayinmay

    (@amiddayinmay)

    Hi iMazed,

    I have just taken the site off maintenance mode. So you should be able to see it at the bottom of the front page! Thanks so much for taking the time to have a look.

    mother.of.code

    (@imazed)

    The Mother of Code

    Hi amiddayinmay,

    First thing I notice is that you forgot a semicolon in the CSS code you mentioned, right behind max-width: 30%;. This should fix your max-width issue.

    Second is that I cannot seem to find that particular piece of code in your live site. How are you inserting this custom code? Make sure you’re targetting the right elements, and that the stylesheet you’re using (I’m guessing you’re using a child theme CSS document?) is being read.

    Third: to center the input field, add margin: auto; to the same element you set to max-width: 30%;.

    That should do it!

    Thread Starter amiddayinmay

    (@amiddayinmay)

    Hi iMazed,

    Thanks so much for that! It fixed the width, but didn’t fix the alignment, would you mind having another look! the code should be in there now, as I took it out previously (hence why you could not see it)

    Thanks so much!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Issues with styling the input email’ is closed to new replies.