CSS left middle right block in a row

hi,

what i /really/ want is:

------------------------------------------------------------------------------------------
|            |             unlimited size (and a long bg image)                   |            |
| left       ---------------------------------------------------------------------  right    |
|            |                                 navbar (text inline)                        |            |
-------------------------------------------------------------------------------------------

just copy this into notepad to get the idea


but i thought id start off small first, so i try to get a:


<table><tr><td>left</td><td>bla</td><td>right</td></table> using divs

not text only, it will contain images etc so i want div blocks, inline wont do


anyway, i wanted to start off with this: but it aint working, any ideas why?


<style type="text/css" media="screen">

            body
            {
                  margin: 0;
                  padding: 0;
                  font-size: 95%;
                  font-family: georgia, times, "times new roman", serif;
                  color: #000;
                  background-color: #fff;
            }

            a:link { color: #036; }
            a:visited { color: #066; }

            a:hover, a:active
            {
                  color: #fff;
                  background-color: #036;
            }

            div#banner
            {
                  color: #fff;
                  background-color: #333;
                  border-bottom: 1px solid #000;
            }

            div#banleft
            {
                  width: 150px;
                  padding-top: 2em;
            }

            div#banmiddle
            {
                  margin-left: 150px;
                  margin-right: 150px;
            }

            div#banright
            {
                  width: 150px;
                  float: right;
                  color: #f00;
            }

</style>
</head>
<body>
<div id="banner">
      <div id="banleft">
            hello
      </div>
      <div id="banmiddle">
            hello1
      </div>
      <div id="banright">
            yo jo
      </div>
</div>
</body>
LVL 7
maUruAsked:
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.

maUruAuthor Commented:
nevermind i found it

<div style="clear:both;"></div>
just before closing banner div
0
GranModCommented:
PAQed with points refunded (50)

GranMod
Community Support Moderator
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
CSS

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.