www.webdeveloper.com
Results 1 to 3 of 3

Thread: Creating a 3x3 Home Page

  1. #1
    Join Date
    Aug 2012
    Posts
    2

    Angry Creating a 3x3 Home Page

    Hey,

    I am working on the home page of my website and I am trying to create a 3x3 grid layout where each module is the same dimensions just like the home page of http://fnatic.com/

    I have created all of the different modules as you can see. Each of them is labeled according to what position they are supposed to be in. I can't manage to figure out how to have these modules positioned correctly. Instead, they are just vertically listed on the home page. Go to http://small.fm/ to see what I am referring to.

    Thanks so much.

  2. #2
    Join Date
    Jul 2009
    Posts
    184
    You could add a class to all of the divs like this:

    Code:
    <div id="top-center-module" class="floatbox">...</div>
    Then use that class in your stylesheet to float the boxes all left like this:

    Code:
    .floatbox {
         float: left;
    }
    Then you'll notice the content below covers the boxes up. One way to deal with that is add an element below the boxes with a class, and apply clear: both; to the class. Something like this:

    Code:
    <br class="clear">
    
    .clear {
         clear: both;
    }

  3. #3
    Join Date
    Aug 2012
    Posts
    2
    Quote Originally Posted by WestWeb View Post
    You could add a class to all of the divs like this:

    Code:
    <div id="top-center-module" class="floatbox">...</div>
    Then use that class in your stylesheet to float the boxes all left like this:

    Code:
    .floatbox {
         float: left;
    }
    Then you'll notice the content below covers the boxes up. One way to deal with that is add an element below the boxes with a class, and apply clear: both; to the class. Something like this:

    Code:
    <br class="clear">
    
    .clear {
         clear: both;
    }

    Thank you so much! Works very well.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles