/    Sign up×
Community /Pin to ProfileBookmark

Creating a 3×3 Home Page

Hey,

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

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 [url]http://small.fm/[/url] to see what I am referring to.

Thanks so much.

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@WestWebAug 26.2012 — You could add a class to all of the divs like this:

[CODE]<div id="top-center-module" class="floatbox">...</div>[/CODE]

Then use that class in your stylesheet to float the boxes all left like this:

[CODE]
.floatbox {
float: left;
}
[/CODE]


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;
}
[/CODE]
Copy linkTweet thisAlerts:
@MLGSmallauthorAug 26.2012 — You could add a class to all of the divs like this:

[CODE]<div id="top-center-module" class="floatbox">...</div>[/CODE]

Then use that class in your stylesheet to float the boxes all left like this:

[CODE]
.floatbox {
float: left;
}
[/CODE]


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;
}
[/CODE]
[/QUOTE]



Thank you so much! Works very well.
×

Success!

Help @MLGSmall spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...