Hello!
I’m new here, so please forgive me if I’m in the wrong subforum. I’ve searched for previous threads regarding my issues, but I did not find anything.
I’m very grateful for any help you can provide.
Maybe someone can help me understand what I’ve done wrong. I added a line to my CSS to change the page BG color, which it does, but it also changed the page alignment.
Here is a “before and after” image of the page. On the left is the original page with correct alignment and no BG color. On the right is the page after adding a BG color CSS call - the page alignment ignores the CSS alignment call:
This is the CSS without the CSS BG color call:
<style>
body
{
text-align: center;
}
div#container
{
margin-left: auto;
margin-right: auto;
width: 50em;
text-align: left;
}
</style>
This is the CSS with the BG color call:
<style>
body
{
background-color: b2b1b1;
}
{
text-align: center;
}
div#container
{
margin-left: auto;
margin-right: auto;
width: 50em;
text-align: left;
}
</style>
Thank you in advance for any assistance and guidance you can share.
Regards,
RR