Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS [Solved] Browser not listening to auto; auto;

  • This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #167645
    Everton
    Participant

    How might I break out of this CSS #container, please, so that I can centre the error ‘Invalid password’ message here:

    <a href="http://www.bayingwolf.com/Dima_Login/Dimalogin1.asp" title="Invalid pwd">Invalid pwd</a>
    

    I have this in my head tags:

    .center
     {
     margin-left:auto;
     margin-right:auto;
     width:70%;
     color:#BD2CBB;
     }

    but the browser is not listening.

    Thanks for any advice.

    #167648
    Paulie_D
    Member

    Break out of the container?

    Why?

    It’s not clear what you are trying to do.

    #167686
    Everton
    Participant

    Hello Paulie

    Thank you for getting back to me.

    I have a page here that generates an error message ‘Invalid password’ when the incorrect credentials are input:

    http://www.bayingwolf.com/Dima_Login/Dimalogin1.asp

    I thought the margin ‘auto’ attribute centred text but it is not centred, so something is stopping it.

    #167696
    Everton
    Participant

    Hello Doc

    Thanks for getting back to me.

    Do you mean like this: .center
    {
    margin-left:auto;
    margin-right:auto;
    width:70%;
    color:#BD2CBB;
    text-align: center;
    }

    It still doesn’t centre it.

    #167699
    Paulie_D
    Member

    Try

    .center p {
    text-align: center;
    }
    
    #167704
    Everton
    Participant

    That’s it, Pauli, thank you!!!!!!!!!

    I will add the font colour, etc a bit later, but thank you!

    This has to be the best CSS forum I know!

Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘CSS’ is closed to new topics and replies.