Is it correct that blueprint css allows you to formulate your layout as a grid instead of in terms of floats?

StackOverflow https://stackoverflow.com/questions/1053477

Question

One of the arguments I've heard about blueprint css is that it lets you think of your layout in terms of a grid rather than in terms of floats. This seems like a big advantage to me because I always get confused about where my floats are going to end up - sometimes a float will unexpectedly drop down below some other floats and I have a hard time figuring out how to reposition everything. Does this make blueprint css a good choice for me - or should I just put the time in to learn how to use floats properly and do all of my layouts manually?

Was it helpful?

Solution

Yes, absolutely it lets you use a grid - see this example page, which makes the grid visible by striping the background according to the grid columns.

(But I have to say, a little time spent learning how CSS layout really works would pay big dividends - better to understand it than to give up and try to work around it. And you'll then have the option of creating flexible layouts that work well on all sorts of different devices.)

OTHER TIPS

One of the biggest issued with anything that is absolutely positioned is that items that are not absolutely positioned do not know that the absolutely positioned items exist.

Of course this is a debate that will go on forever about which is better but you will probably be better off using elements that can be scaled depending on the browser size and resolution.

Under the hood, Blueprint still uses floats.

Here's a novel approach to creating "float-less" layouts that are semantic and accessble, http://www.tjkdesign.com/articles/css-layout/no_div_no_float_no_clear_no_hack_no_joke.asp

As stated, BluePrint is a grid system, but is based on CSS floats. So understanding CSS Floats is somewhat important to really grasp what BluePrint does.

I rarely use floats over absolute positioning for a variety of reasons.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top