views:

229

answers:

4

I am working on a site laid out with divs. I am having trouble with one in particular: the training photo div.

If you go to http://php.wmsgroup.com/eofd6.org/education.html you'll see a photo underneath the left nav that has dropped down. I want it to snap right under that nav box. I have tried several different things with its positioning as well as the main content divs positioning and I can't get it right.

Any help would be appreciated. The link to the style sheet is http://php.wmsgroup.com/eofd6.org/in.css

Thanks!

+1  A: 

Float #content right, not left.

Steve Paulo
A: 

That was it! Thanks Steve. Could you look at one more for me?

godleuf
Ask a new question
John Sheehan
And hey, if "that was it," it wouldn't hurt to vote up my answer and accept it :)Glad I could help.
Steve Paulo
A: 

Can't you change the markup to include the #training_photo div in the #nav div?

jakber
I would ask about another site but their server is down!
godleuf
+1  A: 

In order to get more predictable results, I would create an over-all wrapper, then 2 column wrappers. You're close to this layout now, so it would be a simple fix.

<html>
<head>
    <style type="text/css">
        #leftColumn {
            width: 30%;
            margin: 0px;
            float: left;
            display: inline;
            clear: left;
        }

         #rightColumn{
            width: 60%; /* allow 10% for flex/margins */
            margin: 0px auto;
            float: left;
            display: inline; 
            clear: right;
        }

    </style>
</head>
<body>
    <div id="pageWrapper">
        <div id="header"></div>
        <div id="leftColumn">
            <div id="nav"> </div>
            <div id="training_photo"> </div>
        </div>
        <div id="rightColumn">
             <div id="content"> </content>
        </div>
    </div>
    <div id="footer"> </footer>
</body>

Rob Allen
I appreciate the help, thanks.
godleuf