background preloader


Facebook Twitter

Hf html cheat sheet. Good and Bad CSS Practices for Beginners. With CSS3, we can manage media queries, utilize better background images and even handle animations that can be loaded faster on your website – depending on the host you use.

Good and Bad CSS Practices for Beginners

These features have made the life of every web designer and developer easier. That being said, not all web designers and developers follow best practices. If you want to be a good web designer/developer, writing clean, manageable CSS is a healthy habit to make your code easier to maintain as your project development progresses. Even if you’ve been building web pages for a quite a while, you may still have a few bad CSS writing habits that you’re better off forgetting.

This post will also introduce you to some techniques that will help you get the most out of CSS and write beautiful, manageable stylesheets. Let’s begin: Bad CSS Practices Using the Same Rule Repetitively. Flexbox Froggy - A game for learning CSS flexbox. Centering in CSS: A Complete Guide. Centering things in CSS is the poster child of CSS complaining.

Centering in CSS: A Complete Guide

Why does it have to be so hard? They jeer. I think the issue isn't that it's difficult to do, but in that there so many different ways of doing it, depending on the situation, it's hard to know which to reach for. So let's make it a decision tree and hopefully make it easier. I need to center... Horizontally Is it inline or inline-* elements (like text or links)? You can center inline elements horizontally, within a block-level parent element, with just: This will work for inline, inline-block, inline-table, inline-flex, etc. Is it a block level element? You can center a block-level element by giving it margin-left and margin-right of auto (and it has a set width, otherwise it would be full width and wouldn't need centering). This will work no matter what the width of the block level element you're centering, or the parent.


AngularJS. ReactJS. Learn modern web application development with JavaScript. The CSS Transitions Cheatsheet. When it comes to CSS Transitions, you don't need a bazillion pages of content or even a book to quickly figure out something.

The CSS Transitions Cheatsheet

If you are in a rush or just want something you can refer to really quickly, I've created this handy cheatsheet that provides snippets for common CSS Transitions situations. If you find something missing that should be here, post here and I'll get to it shortly :P Enjoy! The Topics Click on any of the topics below to jump directly to the relevant section: Simple Example When a user hovers over the #box element, the change in position is animated: More Details The Bare Minimum To define a transition that works, you don't need to be verbose: Longhand Declaration The transition property values can be expanded into their individual properties: There is no "right" or "wrong" preference when choosing between the shorthand version and longhand version.

Vendor Prefixes. 50 Amazing jQuery Plugins That You Should Start Using Right Now. Martin Angelov jQuery has a wonderful community of programmers that create incredible things.

50 Amazing jQuery Plugins That You Should Start Using Right Now

However, it may become difficult to sift through everything that is released and find the gems that are absolute must-haves. Introducing Material Design Lite — Google Developers. -a library of components & templates in vanilla CSS, HTML and JS Back in 2014, Google published the material design specification with a goal to provide guidelines for good design and beautiful UI across all device form factors.

Introducing Material Design Lite — Google Developers

Today we are releasing our effort to bring this to websites using vanilla CSS, HTML and JavaScript. We’re calling it Material Design Lite (MDL). MDL makes it easy to add a material design look and feel to your websites. The “Lite” part of MDL comes from several key design goals: MDL has few dependencies, making it easy to install and use. Get started now and give it a spin or try one of our examples on CodePen. MDL is a complementary implementation to the Paper elements built with Polymer. Out of the box templates MDL optimises for websites heavy on content, such as marketing pages, text articles and blogs. Using Knockout.js Model Validation for ASP.NET MVC Models. Posted by: Mahesh Sabnis , on 6/4/2015, in Category ASP.NET MVC Abstract: Knockout.js provides UI independent Model validation features to help us out with client-side validation in ASP.NET MVC Client-side validation improves performance and gives the users of our application, a better experience.

Using Knockout.js Model Validation for ASP.NET MVC Models

Knockout.js is a lightweight JavaScript library for implementing MVVM based application development. In this article we will use Knockout.js for client-side data binding. We will also define the Knockout model for managing and validating employee information. Note: Make sure to validate data on the server-side before it enters the database.

Step 1: Open Visual Studio 2013 and create an ASP.NET MVC application. Step 2: In the Models folder, add a new ADO.NET Entity Framework of the name ApplicationEDMX. Step 3: In this project, add the jQuery, Bootstrap, Knockout.js and Knockout.validation JavaScript library references using NuGet package manager.