Redirecting non-www to www with .htaccess

Redirect all non-www requests to your site to the www version, all you need to do is add the following code to your .htaccess file.

Keep Flash Behind Other Elements

Dropdown menu going "behind" a flash movie, or staying on top of a lightbox layover. You have a CSS based drop-down menu in your navigation and a flash element near it the menus may get “hidden” behind the flash object.

HTML Comment

Comments are piece of code which is ignored by any web browser. It is good practice to comment your code, especially in complex documents, to indicate sections of a document, and any other notes to anyone looking at the code.

Adding body class for IE

Conditional comments allow special syntax constructions for checking the IE version and are proprietary to Internet Explorer for Windows.

HTML <!DOCTYPE> Declaration

The DOCTYPE declaration, which should be the first item to appear in the source mark-up of any web page, is an instruction to the web browser that identifies the version of the mark-up language in which the page is written.

SASS Installation

SASS is an extension of CSS3, adding nested rules, variables, mixins, selector inheritance, and more. It's translated to well-formatted, standard CSS using the command line tool or a web-framework plugin

CSS Triangle

Making a triangle with CSS is a great skill to have available to you, as it gives you one more way to call attention to an element on the screen. And let's face it, So let's take a look at how to get it done.

HTML5 Page Structure

The HTML5 specification has added quite a few interesting and useful tags for structuring your markup. For a majority of everyday uses, these tags will replace many of our typical div entries from our code.

HTML5 Advantages

HTML5 has many new syntactical features, which include the <video>, <audio>, and <canvas> elements, as well as the integration of SVG content.

Clearfix Method

When a floated element is within a container box, that element does not automatically force the container’s height adjust to the floated element. When an element is floated, its parent no longer contains it because the float is removed from the flow.


Subscribe to RSS - HTML