CSS issue

Here's my page: http://parkhillvet.com/about-phvmc/

Here's my issue: div#content (the one with background-color:pink) is getting cut off. I need it to display all of its content, obviously, but still push div#footer to appear after it. I have some overflows hidden and some heights left unassigned but I can't figure out how to avoid that.

Any help?
PitaMariaAsked:
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.

Paul MacDonaldDirector, Information SystemsCommented:
What is the DIV's "overflow" value set to?
0
PitaMariaAuthor Commented:
It's set to visible, but one its containing divs -- #main -- is set to 'hidden'. If I change that div#main to overflow:visible it shows all content BUT it breaks some page styling and doesn't push div#footer down the page.
0
Paul MacDonaldDirector, Information SystemsCommented:
Then it sounds like the footer (and perhaps some of the other content) isn't flowing properly.  Check their display property is correct.
0
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

PitaMariaAuthor Commented:
I think it might have something to do with div#primary -- that div seems to be dictating the height of div#main. Any chance you could take a look at my code and offer some suggestions?
0
jonahzonaCommented:
It definitely is a problem with your markup.

I am trying to work a way out to make it work by only adjusting your CSS.

The issue is that your #main is not realizing that there is a div inside of it that is taller than #primary. This is the #container div.

You can see this is the problem if you apply a height to the #main at line 284 of your css. If you give it a height of 1000px, you will see your content appear.

I will keep working on it to see if there is a way to avoid reworking your markup.
0
jonahzonaCommented:
I don't think you will be able to do this without changing the markup.

Right now it is funky - the primary and secondary are outside the container div. I would recommend moving these INSIDE the container div.

You will need to adjust your margins and floats. It should end up something like this:

<div id="main">
  <div id="container">
     <div id="primary">
          PRIMARY DATA
     </div>
     <div id="content">
         CONTENT DATA
     </div>
      <div id="secondary">
         SECONDARY DATA
      </div>
   </div>
</div>

Open in new window


Does that make sense?

Let me know if you need some further assistance on this.
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.