Is there a way to position a div next to another div that is centered on the page, like this:
.firstDiv {
margin-left: auto;
margin-right: auto;
padding: 0;
}
The above code centers the first div in the middle of the page. But how can I add a second div right next to it? I want to include a menu, quote, or some other content in this additional div. I've tried using position
, but haven't been able to achieve the desired result.
Thank you for any help,
Boris
Edit
To further explain my question, please refer to this image:
In the picture, the large square represents the main centered div. How can I place a smaller div beside it?