Hi there,
Coming from a photoshop/illustrator background, I am not very experienced with css at this point. I am having a little difficulty properly aligning my divs so that my layout all displays properly.
This is what I want it to look like:
Where my html looks something like:
<div id="wrapper">
<div id="welcome"></div>
<div id="header"></div>
<div class="section">
<div class="left_image">
</div>
<div class="right_images_container">
<div class="right_image"></div>
<div class="right_image"></div>
<div class="right_image"></div>
<div class="right_image"></div>
……………
……………
<div class="right_image"></div>
<div class="right_image"></div>
</div>
</div>
<div class="section">
<div class="left">Lorem ipsum dolor sit amet…………</div>
<div class="middle"></div>
<div class="right">Lorem ipsum dolor sit amet…………</div>
</div>
</div>
and my css looks like:
#wrapper{
width: 940px;
margin-top: none;
margin-left: auto;
margin-right: auto;
border-style: solid;
border-color: #D1D1D1;
border-width:2px;
background-color: #FFF;
}
#wrapper #welcome{
height: 45px;
background-color: #FFF;
margin-left: 247px;
margin-top: 11px;
}
#wrapper #header{
height: 23px;
background-color: #D1D1D1;
width:940px;
margin-top: 2px;
}
.section{
border-style:solid;
border-width: 1px;
border-color: #D1D1D1;
width: 820px;
padding: 4px;
margin-left:auto;
margin-right:auto;
margin-bottom:26px;
background-color:#FCFCFC;
display:inline;
}
.left_image{
width: 200px;
min-height: 50px;
display:inline;
}
.right_images_container {
float: left;
width: 440px;
margin-top: 20px;
}
.right_image {
opacity: 0.8;
position: relative;
float: left;
background: #ffffff;
-webkit-border-radius: 0px;
-moz-border-radius: 2px;
border-radius: 2px;
-webkit-box-shadow: 0px 0px 3px 1px #989898;
-moz-box-shadow: 0px 0px 3px 1px #989898;
box-shadow: 0px 0px 3px 1px #989898;
-webkit-transition: all 200ms ease;
-moz-transition: all 200ms ease;
-o-transition: all 200ms ease;
transition: all 200ms ease;
padding: 5px;
width:50px;
height: 50px;
margin-left: 5px;
margin-right: 5px;
margin-top: 5px;
margin-bottom: 1px;
}
Currently, a lot of it is displaying properly, but I cannot get the divs inside of the “section” headings to line up side by side. Any advice as to how to properly format my css to accomplish this task. General comments are also welcome.
Thank you very much.