Moving one div to the right of another


I have a development page with a number of divs.  

Please go here to get to that page....Click for link to Development page

I need the div with the id of centertop to be moved to the right of div#content, and aligned with the top of div#content.  It needs to fit inside of the light purplish background (which I temporarily colored to help this question.)

I think once that is handled, the page will work correctly for me.  I may need one more fine tuning, but let's start with this request first.

Thanks again!

Rowby GorenAsked:
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.

You can use float:left and float:right to align the divs the way you want. You will however need to play with it a bit to fix it exactly as needed but generally float will arrange the divs next to each other with the tops on the same level
Rowby GorenAuthor Commented:
Hi TheAvenger,

Thanks.  I will try that now  Stay tuned....

Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
Hi Rowby,
It would help if you can create a reduced test case and let's just work with very basic layout.  There is a lot on the page to work with otherwise.  

In simple terms you are going to have something like below where you have 2 divs inside a container.  The two width's = the width of the container.  Float them left.  From there add fancy css for margin and/or padding.

<div id="container">
   <div id="content">content</div>
    <div id="centertop">stuff</div>

Open in new window


Open in new window


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
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

Rowby GorenAuthor Commented:
Hi TheAdvenger padas

Thanks for your suggestions etc!

It looks like in general the float right is working.

If you look at the page, the fonts etc and padding etc look at bit disheveled.  But I think I can fix that.  

The link to  is also helpful -- thanks for that too.

I will resume working on the padding, style a little later today.

But I think the basic question has been answered and I will split points in some appropriate way...

Stay tuned.  I will come back here in an hour or so, I think (it's very sunny outdoors here in California and I am tempted to take a short break :)

I've requested that this question be closed as follows:

Accepted answer: 250 points for TheAvenger's comment #a39456645
Assisted answer: 250 points for padas's comment #a39456657

for the following reason:

This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
Rowby GorenAuthor Commented:

Thanks for your solutions. Sorry for the delay in awarding the points.

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

From novice to tech pro — start learning today.