html, css, jQuery, PHP, mySQL

Posts Tagged ‘shorthand’

CSS From Scratch. 8:2 Background images.

Wednesday, August 10th, 2011

Many experts agree that it is best to include images in your web page using CSS. This makes it easier to edit them later, and maintains the separation of concerns (CSS used only for appearance, HTML used only for semantic markup). Others disagree, and say that it is better for accessibility to use HTML <img> […]

Tags: , , , , , , , , , , , , , , , , , ,
Posted in Tutorials | No Comments »

CSS From Scratch. 5:4 The Box Model Introduced

Saturday, August 6th, 2011

The important thing to be aware of is that all of the elements on your page are boxes. When we used the star selector, we put a red border around all of the elements. You can use the same CSS to put a border around any element on your page. Practice putting a border around […]

Tags: , , , , , , , , , , , , , , ,
Posted in Tutorials | No Comments »

CSS From Scratch. 5:2 CSS Properties

Saturday, August 6th, 2011

Before looking further at CSS here are some useful examples of CSS properties. Notice how when we set a border before we used a shorthand which combined declarations for the border width, style and colour into one line: * {border: 1px solid red;} If we wrote these out as separate declarations the CSS would look […]

Tags: , , , , , , , , , , , , , , , , , , ,
Posted in Tutorials | No Comments »

CSS From Scratch. 4:4 Hexadecimal Colours

Friday, August 5th, 2011

Hexadecimal is a special language which uses base 16. Usually we count in base 10. Remember that four bits give 16 values: this is one character in hexadecimal. Four bits are known as one nibble, whereas eight are known as one byte. In hexadecimal we count like this: 0 1 2 3 4 5 6 […]

Tags: , , , , , , , , , , , ,
Posted in Tutorials | No Comments »