# When should I make use of a CSS framework?

What are the most effective technique circumstances for making use of a CSS framework? When is it far better to "roll your very own" CSS from square one as opposed to making use of structures?

0
2019-05-04 07:01:51
Source Share

I make use of plan, for CSS.
CSS is, as every person over claims, actually uncomplicated.

Nonetheless, in truth, you need to take into consideration the system.

With CSS the providing engine includes in the intricacy.

Gecko vs WebKit vs Presto vs Trident ... that intends to do all that things?

What a 'structure' offers you below, is the capacity to write formats that will certainly more than likely work with all internet browsers, so you wont need to go googling for the 'WTF - am - I - doing = - this - crap' IE 7 quirksmode solution, or something in a similar way crazy.

Structures will certainly do 90% of the format you desire, and afterwards you can constantly include your very own designs later on.

So, to address the inquiry, I would certainly claim select any kind of structure and also see if it benefits you. It simply might. After that you are gold, and also can return to whatever you in fact intended to do. Otherwise, after that expand it, making use of css and also transform what did not function. In this way you keep the cross internet browser advantage, yet still can tailor.

As a tiny advantage, if you select one and also utilize all of it the moment, and afterwards are taken ill, or get advertised and also need to educate your follower, you can claim:

" Yes, I made use of structure ABC. Docs are below. Code exists. Training over. All the best."

0
2019-05-09 10:32:17
Source

CSS structures are a little bit complicated because are not actually structures to me. They are merely predefined courses. Yet, this is not your inquiry.

CSS structures are wonderful for mock-ups and also wire-frames. I would certainly not advise utilizing them on a real-time website due to the fact that they add useless courses to your markup. ". span3" doen't inform me anything concerning the web content, just the layout.

Nonetheless, plan does have some trendy devices that aid your incorporate its structure courses and also your semantic ones as soon as your done.

I constantly roll my very own CSS.

0
2019-05-08 02:21:44
Source

It is my point of view that the only solution a CSS Framework gives is a beginning factor for those that are not really accustomed to CSS.

0
2019-05-08 02:20:46
Source

Just prevent them, they are just aggravating.

Specifically this set.

* { margin:0; padding:0; }


My largest issue is that if you inherit/maintain a website that makes use of a reset and/or a structure you have to find out that structure prior to having the ability to change the website.

When I add a h1 tag I anticipate particular points. The majority of resets eliminate all the extra padding, margin, block, and so on to make sure that a h1 tag no more works as it needs to by default. So I need to go back and also add every little thing that existed to begin with.

Usually (in my experience) its individuals that do not recognize css that make use of the resets and also structures, and also it creates even more benefit individuals that do.

0
2019-05-08 02:14:28
Source

I additionally advise making use of a reset.css from Eric Meyer, yet I assume that CSS "structures" can be valuable for format. Plan, YUI grid, and also 960-grid can aid you attain some very made complex formats without creating the css on your own.

While there are downsides that have actually been stated, the very same can be claimed concerning constructing an internet site off a CMS as opposed to rolling personalized code as an example, yet they can still serve and also for several websites the advantages obtained surpass any kind of peripheral css or efficiency concerns.

0
2019-05-08 01:59:25
Source

If you're in fact applying a layout of your very own, you're mosting likely to write several of your very own CSS (unless somebody else takes place to have actually created the specific layout you desire).

Thinking you are creating several of your very own CSS, "structures" can be valuable when you've obtained designs that are :

1. made use of in greater than one area ; and also
2. made complex sufficient to break short right into their very own courses

For actually straightforward designs, it's far better to make use of courses to show what something is (as an example class="navigation"), and afterwards specify its appearance by using design regulations to that class in your stylesheet.

But also for even more facility designs that aren't always linked to any kind of one component (as an example layout-related designs, the kind that frameworks offers names like .span3 to), there's absolutely nothing incorrect with placing them in a class, and also using that class in the CSS. You can make use of both strategies with each other.

In larger, extra intricate websites where components are most likely to be incorporated in uncertain means, a framework-like strategy can actually aid maintain your code convenient.

I would certainly claim that you could too write your very own "structure" though. I place "structure" in quotes due to the fact that CSS actually isn't that large a language. You can read CSS : The Definitive Guide (Eric Meyer) in a day, after that read all the code in as an example Blueprint (a CSS "structure") and also virtually recognize what's taking place. You could require to look into the IE workarounds a little bit, yet we're chatting at the very least an order of size much less intricacy than as an example jQuery below.

0
2019-05-08 01:48:17
Source