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
    Junior Member
    Join Date
    Apr 2015
    Posts
    1
    Member #
    49279

    column w/o floats

    Hello, I have just began learning to code HTML and CSS, and I have run into a problem. After reading a book on html/css, I tried to use the webkit/moz column count and just regular column count to make two different columns. I have tried many different things trying to put my sidebar and main content into two columns but nothing seems to work. The second columns ends up getting cut off, is in the wrong place, etc. etc. It might be that my code is completely wrong. If there is a better way to do it I would be happy to know, or if there is a solution that's just as well.
    Here is a sample of my code:

    #content {
    column-fill: balance;
    overflow: hidden;
    -webkit-column-count: 2;
    -webkit-column-width: 20em;
    -moz-column-count: 2;
    -moz-column-width: 20em;
    column-count: 2;
    column-width: 20em;
    -webkit-column-break-after: always;
    -webkit-column-break-before: auto;
    -webkit-column-break-inside: never;
    }

    #submenu {
    margin-top: 20px;
    margin-right: 25px;
    height: 425px;
    width: 160px;
    background-color: rgb(63, 205, 236);
    border-radius: 10px;
    padding: 10px 20px 5px 10px;
    }

    for the HTML, the columns are set for both the main content and "submenu"(#content). Again, this can be completely wrong, but was the best I could do. I inlcuded the submenu in case that could have anything to do with it. THANKS!

  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
    It probably isn't your code. column-count isn't fully supported by most browsers yet, along with most multi-column stuff. Oddly enough, IE leads the way in terms of support.

    Can I use... Support tables for HTML5, CSS3, etc
    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
  •  

Tags for this Thread

All times are GMT -6. The time now is 11:10 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com