css

Borders

Submitted by Yorkiebar on
Introduction: This is the fourth part in my CSS Styling tutorials, in which I will be covering Borders. Order: Borders around elements come between the elements margin and padding. So, if the element has padding, the border will be away from the element whereas if the element only has margin, the border will be next the element but away from other elements. Basic Structure: The basic border attribute takes three arguments; Width, Type, Colour.

Margin and Padding

Submitted by Yorkiebar on
Introduction: This is the fourth part in my CSS Styling tutorials, in which I will be covering Margins and Padding. Difference? Both the margin and padding properties give white space around an object, the main difference is the order of which they occur in. At the same time, margin is mostly used for positioning while padding is used for giving white space around an object. Order: As a good example of which order the properties go in, please see that attached image which is a screen shot of the Inspect Element feature within Google Chrome.

CSS Backgrounds (Images and Colours)

Submitted by Yorkiebar on
Introduction: This is the third part in my CSS Styling tutorials, in which I will be covering backgrounds. Different Types of Backgrounds: In CSS, you can choose to set the background equal to an image, this can either be a url or a local file directory path, or a colour. Image Settings: Here is an example of setting the background of a class named 'myDiv' to background.jpg...

IDs and Classes

Submitted by Yorkiebar on
Introduction: This is the second part in my CSS Styling tutorials, in which I will tell you about IDs and Classes. What Are IDs? The Identification names are one option to link the HTML elements to the relevant CSS styling options.

CSS Tutorial

Submitted by Yorkiebar on
CSS stands for Cascading Style Sheet and is used in conjunction with HTML to create every web page from the most basic design to the most interactive website. While HTML gives the elements to the page, CSS is used to give the styling of it which includes everything from colours to animations. CSS is a very easy language to pick up and is essential to anyone wanting to learn about Web Design. The latest version of CSS is CSS3.

Making Websites Greener

Submitted by bossmark2012 on
Save the world, save the environment use this script on your website.. Standby for a greener web Our standby engine is the first of our products to deliver a fully functional and simple way to help your website run requiring less energy to generate. It hides heavy animations, covers the window in dark colors (as these, in many cases are less energy consuming) and pauses heavily running background

Changing DIV Backgound Color When Another DIV is Hovered Using CSS Only

Submitted by argie on
In this tutorial you will learn how to change div background when another div is hovered. I used this "~" symbol in CSS to perform changing div color when another div is hovered. The "~" symbol means that it will only select the first element that is immediately preceded by the former selector. Copy and apply the code bellow.

Creating Our HTML Display

The code bellow provide the visual display of our demo.