Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 4 of 4
Like Tree1Likes
  • 1 Post By modallogic

Thread: Collapsing DIVs

  1. #1
    Junior Member
    Join Date
    Apr 2015
    Posts
    1
    Member #
    49483

    Exclamation Collapsing DIVs

    Hay all can you please help. I'm building my first website and have decided to do this by hand coding. Everything seems to be going well except I'm having trouble with my layout. It seems the "mainContainer" div keep collapsing. I have no elements in my layout that are floating and so the .clearfix method does't solve the problem. If you could please help that would be great as this simple problem has pretty much ground me to a halt. Luke

  2.  

  3. #2
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,483
    Member #
    425
    Liked
    2783 times
    What's the site, dude? Upload it somewhere and post a link.

    With that said, what you're describing is often a side effect of incorrectly used absolute positioning as well as floats. Are you using absolute positioning?
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)

  4. #3
    Junior Member
    Join Date
    May 2015
    Posts
    1
    Member #
    49721
    Liked
    1 times
    May also be that you're not using block elements i.e. Span tags or you've set positioning or display attributes to the elements.

    Like TheGAME has said, whack your code on jsfiddle or something and share the code.


    Sent from my iPhone using Tapatalk
    TheGAME1264 likes this.

  5. #4
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,483
    Member #
    425
    Liked
    2783 times
    Interesting idea. I never thought of that. Good suggestion!
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 07:06 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com