I have three divs that I would like aligned horizontally and also aligned on the center of the page.
What I have is close to what I want, but its not centered on the page and it doesn't resize with the browser window either.
I'm still new to HTML and CSS so any suggestions will be appreciated.
#wrapper {
width: 90%;
min-width: 768px;
max-width: 1280px;
margin-right: auto;
margin-left: auto;
}
.projectlogo {
float: left;
margin: 20px;
width: 122px;
height: 113px;
}
.projectsite {
border-radius: 50%;
border: solid #DFF0D8;
float: left;
margin: 20px;
width: 126px;
height: 126px;
}
.description {
float: left;
margin: 20px;
width: 400px;
}
#gallery {
width: 980px;
height: 240px;
font-size: 1.25em;
}
#gallery h2 {
text-align: center;
}
<div id="wrapper">
<main>
<div id="gallery">
<h2>My Work</h2>
<img class="projectlogo" src="images/rotary_logo.png" width="122" height="113" alt="" />
<div class="description">
<p>Rotary Club of Wilsonville is an ongoing project. They are an active group in their community and plan many events for variuos causes. They needed help keeping the calendar updated and improving some of the content on their site. </p>
</div>
<img class="projectsite" src="images/website2.png" width="126" height="126" alt="" />
</div>
</main>
</div>
The images won't show up for you readers, but I included the html to give you a better idea of what it is I am trying to accomplish.
I also included the wrapper information because that is what I am setting up the pages with to center everything and give it the pages white space on the left and right sides.