WordPress.org

Ready to get started?Download WordPress

Forums

Div does not expand to content when served via wordpress (4 posts)

  1. tomkoukoulis
    Member
    Posted 2 years ago #

    Hi all,

    A theme we created, looks fine when standalone, but the content div height does not expand with content when served through wordpress. We tried everything we could think of and the problem still persists. We'd appreciate if you could offer us any help.

    The standalone website is here: http://taniasportfolio.com/lina/ with the div correctly expanding (white box on centre of page). css: http://taniasportfolio.com/lina/screenstyle.css

    The one served through wordpress is here: http://linas4treats.co.uk/, you can see the div does not expand to content, css: http://linas4treats.co.uk/wp-content/themes/lina/style.css

    It tends to behave different in different browsers, in firefox and safari, some pages expand a bit, in chrome does not expand at all, in IE it expands fine.

    We'd be grateful for any help.

    Thank you

  2. esmi
    Forum Moderator
    Posted 2 years ago #

    Start by sorting out the markup errors. Then move onto the CSS errors.
    http://codex.wordpress.org/Validating_a_Website

  3. lockettpots
    Member
    Posted 2 years ago #

    Try adding
    overflow:hidden;

    to #MainContent

  4. tomkoukoulis
    Member
    Posted 2 years ago #

    Thank you very much for your answers guys. Both your answers helped us fix it.

    Many thanks,

    Tom

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.