- This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
Viewing 6 posts - 1 through 6 (of 6 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
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.
Break out of the container?
Why?
It’s not clear what you are trying to do.
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.
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.
Try
.center p {
text-align: center;
}
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!