HTML/CSS

Pseudo Classes/States

Submitted by Yorkiebar on
Introduction: This is the ninth part in my CSS Styling tutorials, in which I will be covering Pseudo states/classes. What Is a Pseudo State? A pseudo state or class is an event which has been triggered by the user, such as moving the mouse to hover over the elements in question, for example. Why States? States are important for a professional looking website.

Float and Clear

Submitted by Yorkiebar on
Introduction: This is the eighth part in my CSS Styling tutorials, in which I will be covering floating. What is Float? Float is used to make an element act as a lightweight object which can fit in white space and therefore removes its aligning to center and such like. The use of float is to essentially make an element inline display with other elements which are already inline displayed or also have a float.

Overflow

Submitted by Yorkiebar on
Introduction: This is the seventh part in my CSS Styling tutorials, in which I will be covering overflow. What is Overflow? Overflow is used in CSS to decide what to do with any content that is slightly to big or wide to fit in the dedicated space (overflowing...). Structure: overflow: {type}; Example:

Font Properties (and Color)

Submitted by Yorkiebar on
Introduction: This is the fifth part in my CSS Styling tutorials, in which I will be covering font properties. Weight: The first of the font properties I will be covering is the weight property, this lets you set the weight of the font (how bold it is). You can either use the values 'normal', 'bold', 'light', etc.

Display

Submitted by Yorkiebar on
Introduction: This is the seventh part in my CSS Styling tutorials, in which I will be covering display. What is Display? Display is a property which sets the type of behaviour that will be given in relation to the position of the given elements. Structure: display: {type}; Example:

Border Radius

Submitted by Yorkiebar on
Introduction: This is the sixth part in my CSS Styling tutorials, in which I will be covering border radius. What is Border Radius: Border radius is a property within the border settings which allows you to change how curved the borders are.

Position

Submitted by Yorkiebar on
Introduction: This is the seventh part in my CSS Styling tutorials, in which I will be covering position. What is Position? Position is used to set the behaviour of how the elements display on-screen within the web browser. Structure: position: {type}; Example:

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.