zymphonies's blog

Full Screen Background Image

CSS3 introduced a new property background-size that enables you to change the size of background images. That means you can stretch your image horizontally, vertically, or both. You can resize it any way you wish.

HTML5 Character Encoding

Every piece of text you have ever seen on your screen, that actually stored in a particular character encoding.

Introducing $(document).ready()

This is the first thing to learn about jQuery, If you want an event to work on your page, you should call it inside the $(document).ready() function. Everything inside it will load as soon as the DOM is loaded and before the page contents are loaded.

Using CSS3 for Alternate Row Colors

The DIV movement of getting away from table-based design taught us that tables should be used only when you're presenting a table of data on your website, yet no CSS selector/rule was created to allow us to shade alternate rows a different color.

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


Subscribe to RSS - zymphonies's blog