Featured Tutorials

flash,actionscript,scripting,help,tips,random numbers,loops,key listeners,random number in flash,random number actionscript,random in flash,generate random number,keyboard input flash,flash key press Flash Actionscript Goodies

Flash Actionscript Goodies

Heres a collection of actionscript scripts and codes to use as reference when creating dyn..

photoshop,tutorial,hair colour,hair color,change hair,photo editing,photo touchups,photo colour Brunette to Blonde, How to change Hair Colour in Photoshop

Brunette to Blonde, How to change Hair Colour in Photoshop

Here's a great tutorial for those who want to learn more about selections and colour chann..

flash,drag,draggable,object,tutorial,flash drag,flash draggable,draggable movie,drag movie,drag movieclip,start drag Creating draggable objects in Flash

Creating draggable objects in Flash

This flash tutorial will teach you how to create draggable objects, that you can click and..

photoshop,line art,vector,tutorial,vector art,drawning in photoshop,drawing vector,how to draw line art,how to draw vector,photoshop drawing,drawing tutorial,pen tool,brush tools,drawing brushes Turning Photographs into Vector Line Art

Turning Photographs into Vector Line Art

Learn how to transform a standard portrait facial photograph into stylish vector line art...

shape dynamics,grass text,bush text,tree text,green text,text effects,brush effects,photoshop tutorial,leafy text,leaves text,brush dynamics,grass effect text,grass text,text with brush Text Effects #3 Brush Text with Shape Dynamics

Text Effects #3 Brush Text with Shape Dynamics

Learn how to create dynamic text effects with shape dynamics that allows you to write text..

Featured Videos

This is a very good tutorial for beginners who want to learn how ..

One of the most important stages of search engine optimisation is..

Learn one of the most important tools in Photoshop, the layers fe..

If you've noticed a drop in traffic since your new website went l..

In this video Jeremy of Shoemoney.com explains how he experimente..

Learn CSS: Border Styles & Properties

There are many different types of border from solid one color to double line and even in and out set borders with different shades of color. The examples below show the code that you will need to use in the <style></style> tags of your div tags, images or form buttons.

 

Border Properties

Setting the width of a border is as simple as this:

<div style="border-width: 2px;"></div>

You can also use these next examples to change the color of a border:

<div style="border-color: #334455;"></div>

<div style="border-color: red;"></div>

 

Border Styles

Here are some examples of the various border types available with examples to show you how they appear.

border-width: 2px;border-style: solid; border-color: #f48039;

This is a solid border

 

border-width: 2px;border-style: dashed; border-color: #f48039;

This is a dashed border

 

border-width: 2px;border-style: dotted; border-color: #f48039;

This is a dotted border

 

border-width: 2px;border-style: double; border-color: #f48039;

This is a double border

 

border-width: 4px; border-style: groove; border-color: #f48039;

This is a groove border

 

border-width: 4px; border-style: ridge; border-color: #f48039;

This is a ridge border

 

border-width: 4px; border-style: inset; border-color: #f48039;

This is a inset border

 

border-width: 4px; border-style: outset;

This is a outset border

 

Shorthand CSS (for those who want their code to look a bit more pro)

Short hand in css is a way of writing many of the above examples in one line of property code, or in other words squeezing it all into one simple line, as follows:

<div style="border: 10px solid #f48039;"></div>

This is a outset border

 

More Web Design...

Other Content...

 Subscribe to our feed

Send to a friend