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 2 of 2
  1. #1
    Member EdMarks's Avatar
    Join Date
    Nov 2011
    Location
    181 lat 91 long
    Posts
    51
    Member #
    29986
    Liked
    3 times
    Hello,
    I am building a site and want a simple wrapper to go down the center of the page
    with the content. I am using a fluid layout and wanted ti entirely fluid so if people go to it on their phone
    or tab or desktop it will simply fit.
    The only problem i am having is getting the right height on the wrapper.

    I would like something like
    Code:
    wrapper
    {
    height:100%;
    }
    But that doesnt seem to fill 100% of the height.
    I can put a height like min-height but then on some devices the wrapper ends up way to long.

    How do I make it so the wrapper just fits perfectly height wise?

    My Site

  2.  

  3. #2
    Senior Member Ronald Roe's Avatar
    Join Date
    Mar 2011
    Location
    Oklahoma City
    Posts
    3,141
    Member #
    27197
    Liked
    959 times
    You need to clear your floats. Add this to your CSS:
    Code:
    .wrapper::after{
    clear:both;
    content:"";
    display:block;
    height:0;
    width:0;
    }
    EdMarks likes this.
    Ron Roe
    Web Developer
    "If every app were designed using the same design template, oh wait...Bootstrap."


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:16 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com