{ LearnWebSiteDesign.com }
HTML, XHTML CSS Tutorials and Free Website Templates
CSS Outline Properties Tutorials
CSS outline properties allow you to specify the style, color and width of an outline.
An outline is a line that is placed around HTML elements, outside of the border, and does not take up any space.
The major difference between an outline and a border, besides the placement of the 2, is that an outline does not take up any space. It does not change the size or position of the HTML element which it surrounds.
For example, if an outline is placed around an HTML element, the width, height and positioning of the HTML element does not change. If a border with a width of 4 pixels is placed around an HTML element with a given width of 50 pixels and a height of 50 pixels, the width of the HTML element would be 58 pixels and height of the HTML element would also be 58 pixels.
NOTE: Internet Explorer 8 (and higher) supports the outline property if a !DOCTYPE is specified.
CSS Outline Properties
The CSS outline properties are listed below.
| Property | Description | Values | CSS level |
|---|---|---|---|
| outline | Sets all of the outline properties in one declaration |
outline-color
outline-style outline-width inherit |
CSS level 2 |
| outline-color | Sets the color of an outline |
color name
hex number RGB number invert inherit |
CSS level 2 |
| outline-style | Sets the style of an outline |
none
hidden dotted dashed solid double groove ridge inset outset inherit |
CSS level 2 |
| outline-width | Sets the width of an outline |
thin
medium thick length inherit |
CSS level 2 |
How To Set the Style of an Outline
The code example below shows you how to set the style of an outline.
The web page that the code example creates is here: CSS outline Properties Example.
How To Set the Color of an Outline
The code example below shows you how to set the color of an outline.
The web page that the code example creates is here: CSS outline Properties Example.
How To Set the Width of an Outline
The code example below shows you how to set the width of an outline.
The web page that the code example creates is here: CSS outline Properties Example.
How To Set all of the Outline Properties in One Declaration
The code example below shows you how to set all of the outline properties in one declaration.
The web page that the code example creates is here: CSS outline Properties Example.
Tutorials
Templates
References
Sponsors
You can get your website online using Velnet, a leading UK web hosting provider. They provide free template and installation for WordPress blogs. Discuss webmaster related topics at Webmaster Serve, a Webmaster SEO forum
SouthernWebGroup.com provides high quality website design in Atlanta, GA as well as around the world.
Find low cost cheap website hosting and domain registration.
Browser our free no ads web hosting directory and find the free web hosting that's right for you and your budget.
Advertise your web design and web development related products and services here.
- Web Hosting UK
- Web Design Manchester
- Cheap Web Hosting
- free website hosting reviews
- ecommerce design
- Advertise
Recommended
Download free css web hosting templates that are easy to edit at FreeWebHostingTemplates.com.
Friends
- free web hosting templates
- free web hosting templates
- free web hosting reviews
- Web Development
- HD Wallpapers
- best web hosting providers
- Web Hosting Blog
- domain names
- iPage Host Reviews
- Reliable Bluehost Reviews
- Programming Forum
- Alojamento Web
- criar sites
- Free Facebook Banners
- Free No Ads Web Hosting Reviews
- Cheap Web Hosting Reviews
- Free Web Hosting Templates
- Free Premium Wordpress Themes
- Free Premium Wordpress Themes
- Free Joomla Template
- Free Wordpress Themes
- Best Android Apps
- Wordpress Themes Gallery
- Information technology courses
- Free PSD Files