background preloader

Css

Facebook Twitter

Remove unused CSS - CSS Optimizer. CSS-Tricks. FarukAt.eş. The Semantic Grid System: Page Layout For Tomorrow - Smashing Magazine. Advertisement CSS grid frameworks can make your life easier, but they’re not without their faults.

The Semantic Grid System: Page Layout For Tomorrow - Smashing Magazine

Fortunately for us, modern techniques offer a new approach to constructing page layouts. But before getting to the solution, we must first understand the three seemingly insurmountable flaws currently affecting CSS grids. Problems Problem #1: They’re Not Semantic The biggest complaint I’ve heard from purists since I created The 1KB CSS Grid two years ago is that CSS grid systems don’t allow for a proper separation of mark-up and presentation. Floated elements must also be cleared, often requiring unnecessary elements to be added to the page. <div class="grid_3"> 220 </div><div class="grid_9"> 700 </div><div class="clear"></div> Problem #2: They’re Not Fluid While CSS grids work well for fixed-width layouts, dealing with fluid percentages is trickier. But when .grid_3 appears inside of a .grid_6 cell, the percentages must be recalculated.

Problem #3: They’re Not Responsive Blame It On The Tools. ProCSSor.com – An Advanced CSS Prettifier. This week’s Web Tool of the Week is a free CSS prettifer that turns your unorganized CSS into neatly formatted code.

ProCSSor.com – An Advanced CSS Prettifier

ProCSSor.com is a simple to use app that allows you to input your CSS and format is according to your coding preferences. I’m the type of web designer who loves neat code. I would gladly spend an afternoon just formatting my code to make sure it looks neat and organized. In fact, such is extent of my obsession that I have in the past spent ages changing the name of a variable throughout an entire PHP website just because a database field changed (for example, from $sDateAdded to $sDateJoined). For anybody like me, ProCSSor.com is absolutely perfect.

Pseudo-elements

Lists. CSS Lint. 5 Rules To Write More Readable CSS Files – woorkup.com. CSS Specificity. Advertisement Apart from Floats1, the CSS Specificity is one of the most difficult concepts to grasp in Cascading Stylesheets.

CSS Specificity

The different weight of selectors is usually the reason why your CSS-rules don’t apply to some elements, although you think they should have. In order to minimize the time for bug hunting you need to understand, how browsers interpret your code. And to understand that, you need to have a firm understanding on how specificity works. In most cases such problems are caused by the simple fact that somewhere among your CSS-rules you’ve defined a more specific selector.

CSS Specificity isn’t simple. Let’s take a look at some important issues related to CSS Specificity as well as examples, rules, principles, common solutions and resources. You can find the most important things you should know about CSS specificity in a brief overview at the beginning of the article.

Tips

Styles. Automatically Version Your CSS and JavaScript Files. Because we’re always on the look out for ways to speed up our web application, one of my favorite tools for optimization is the YSlow Firefox extension.

Automatically Version Your CSS and JavaScript Files

Based on rules created by research done by Yahoo engineer, Steve Souders (his book High Performance Web Sites is a must read for anyone interested in front end engineering), the tool hooks into Firebug and helps you diagnose issues that can shave seconds off your pages’ load times. While we were able to implement most of the suggestions fairly easily, Rule #3, which specifies adding a far futures Expires header required a bit of elbow grease that some of you might be interested in. Rule #3 recommends that you use set an Expires header on your static files (images, CSS and JavaScript) very far into the future (like 10 years) so that your browser’s cache is used to load those elements rather than making another HTTP request, which is costly when it comes to page load times. Implementing this is pretty easy.

Positioning

Top 10 CSS Snippets. The Demise of CSS: Why Sass And Languages Like It Will Triumph. It is my opinion that these [tools like Sass] are only really of benefit to people who haven’t yet mastered writing CSS properly from the outset…Harry Roberts (CSSwizardry.com) Huh?

The Demise of CSS: Why Sass And Languages Like It Will Triumph

Sass only really benefits people who haven’t mastered writing CSS properly? Excuse me? I am a very experienced CSS developer and I find Sass quite valuable having written CSS for a living for many years now. While I won’t claim the level of mastery that an artist like Michelangelo achieved in painting, I can say that I wasn’t born yesterday either. I can only assume that Mr. Sass – a programming language for designers Sass is essentially a programming language for designers. Right now folks that use Sass primarily use it as a Rails plugin, but the Ruby gem also makes it possible to use it from the command line. To use, you need to install the Haml gem. This will the give you access to the sass command which you can use to generate CSS from Sass source files.

Nesting So let’s talk about what I love about Sass. ! Index DOT Css: Index Page.