Pictures in CSS

I have a webpage where I want a header, 4 pictures under the header, with 3 pics also on the left and right sides, yet under the first 4, with Information in the middle between the pictures on each site.

I may be the stress I've had as of late, but I can't figure it out...
StarThunderAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

TheAvengerCommented:
Use divs to put the elements one under the other (so first div is the header, second are the 4 pictures, third the next pics, etc.). In the div with the pics itself, use float:left and float:right to make the pictures take the left or right side as needed. Note that you may need to reorder them (e.g. first put the pic which is the rightmost on the left side) but it should work. If you have a problem, paste the code you already have, so that we can try to give you more detailed tips.
0
Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
I think this is what you want.

Sample http://jsbin.com/UriwAvA/2/

<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>Padas</title>
</head>
<body>
  <div id="container">
  <div id="header">Header</div>
    <div id="left">
      <img src="http://www.sogoodblog.com/wp-content/uploads/2008/01/anheuser_busch_beer.jpg" width="90">
      <img src="http://www.sogoodblog.com/wp-content/uploads/2008/01/anheuser_busch_beer.jpg" width="90">
      <img src="http://www.sogoodblog.com/wp-content/uploads/2008/01/anheuser_busch_beer.jpg" width="90">
    
    </div>
    <div id="main">
       <img src="http://www.sogoodblog.com/wp-content/uploads/2008/01/anheuser_busch_beer.jpg" width="580">
       <img src="http://www.sogoodblog.com/wp-content/uploads/2008/01/anheuser_busch_beer.jpg" width="580">
       <img src="http://www.sogoodblog.com/wp-content/uploads/2008/01/anheuser_busch_beer.jpg" width="580">
       <img src="http://www.sogoodblog.com/wp-content/uploads/2008/01/anheuser_busch_beer.jpg" width="580">
      
      
    </div>
    <div id="right">
      <img src="http://www.sogoodblog.com/wp-content/uploads/2008/01/anheuser_busch_beer.jpg" width="90">
      <img src="http://www.sogoodblog.com/wp-content/uploads/2008/01/anheuser_busch_beer.jpg" width="90">
      <img src="http://www.sogoodblog.com/wp-content/uploads/2008/01/anheuser_busch_beer.jpg" width="90">
    </div>
    
    
  </div>  
</body>
</html>

Open in new window

css
#container{width:800px;text-align:center;}
#header{background-color:green;}
#left,#main,#right{float:left;height;500px;}
#left,#right{width:100px;background-color:blue;}
#main{width:600px;background-color:red;}

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Images and Photos

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.