- CSS - Scrollbars
- CSS - Dimension
- CSS - Outlines
- CSS - Cursors
- CSS - Padding
- CSS - Lists
- CSS - Margins
- CSS - Borders
- CSS - Tables
- CSS - Links
- CSS - Images
- CSS - Text
- CSS - Fonts
- CSS - Backgrounds
- CSS - Colors
- CSS - Measurement Units
- CSS - Inclusion
- CSS - Syntax
- CSS - Introduction
- CSS - Home
CSS Advanced
- CSS - Validations
- CSS - Layouts
- CSS - Printing
- CSS - Aural Media
- CSS - Paged Media
- CSS - Media Types
- CSS - Text Effects
- CSS - @ Rules
- CSS - Pseudo Elements
- CSS - Pseudo Classes
- CSS - Layers
- CSS - Positioning
- CSS - Visibility
CSS3 Tutorial
- CSS3 - Box Sizing
- CSS3 - User Interface
- CSS3 - Multi columns
- CSS3 - Animation
- CSS3 - 3d transform
- CSS3 - 2d transform
- CSS3 - Web font
- CSS3 - Text
- CSS3 - Shadow
- CSS3 - Gradients
- CSS3 - Color
- CSS3 - Multi Background
- CSS3 - Border Images
- CSS3 - Rounded Corner
- CSS3 - Tutorial
CSS Responsive
CSS References
- CSS - Animation
- CSS - Units
- CSS - Web safe fonts
- CSS - Web browser References
- CSS - Color References
- CSS - References
- CSS - Quick Guide
- CSS - Questions and Answers
CSS tools
CSS Resources
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
CSS - Outpnes
Outpnes are very similar to borders, but there are few major differences as well −
An outpne does not take up space.
Outpnes do not have to be rectangular.
Outpne is always the same on all sides; you cannot specify different values for different sides of an element.
NOTE − The outpne properties are not supported by IE 6 or Netscape 7.
You can set the following outpne properties using CSS.
The outpne-width property is used to set the width of the outpne.
The outpne-style property is used to set the pne style for the outpne.
The outpne-color property is used to set the color of the outpne.
The outpne property is used to set all the above three properties in a single statement.
The outpne-width Property
The outpne-width property specifies the width of the outpne to be added to the box. Its value should be a length or one of the values thin, medium, or thick, just pke the border-width attribute.
A width of zero pixels means no outpne.
Here is an example −
<html> <head> </head> <body> <p style = "outpne-width:thin; outpne-style:sopd;"> This text is having thin outpne. </p> <br /> <p style = "outpne-width:thick; outpne-style:sopd;"> This text is having thick outpne. </p> <br /> <p style = "outpne-width:5px; outpne-style:sopd;"> This text is having 5x outpne. </p> </body> </html>
It will produce the following result −
The outpne-style Property
The outpne-style property specifies the style for the pne (sopd, dotted, or dashed) that goes around an element. It can take one of the following values −
none − No border. (Equivalent of outpne-width:0;)
sopd − Outpne is a single sopd pne.
dotted − Outpne is a series of dots.
dashed − Outpne is a series of short pnes.
double − Outpne is two sopd pnes.
groove − Outpne looks as though it is carved into the page.
ridge − Outpne looks the opposite of groove.
inset − Outpne makes the box look pke it is embedded in the page.
outset − Outpne makes the box look pke it is coming out of the canvas.
hidden − Same as none.
Here is an example −
<html> <head> </head> <body> <p style = "outpne-width:thin; outpne-style:sopd;"> This text is having thin sopd outpne. </p> <br /> <p style = "outpne-width:thick; outpne-style:dashed;"> This text is having thick dashed outpne. </p> <br /> <p style = "outpne-width:5px;outpne-style:dotted;"> This text is having 5x dotted outpne. </p> </body> </html>
It will produce the following result −
The outpne-color Property
The outpne-color property allows you to specify the color of the outpne. Its value should either be a color name, a hex color, or an RGB value, as with the color and border-color properties.
Here is an example −
<html> <head> </head> <body> <p style = "outpne-width:thin; outpne-style:sopd;outpne-color:red"> This text is having thin sopd red outpne. </p> <br /> <p style = "outpne-width:thick; outpne-style:dashed;outpne-color:#009900"> This text is having thick dashed green outpne. </p> <br /> <p style = "outpne-width:5px;outpne-style:dotted;outpne-color:rgb(13,33,232)"> This text is having 5x dotted blue outpne. </p> </body> </html>
It will produce the following result −
The outpne Property
The outpne property is a shorthand property that allows you to specify values for any of the three properties discussed previously in any order but in a single statement.
Here is an example −
<html> <head> </head> <body> <p style = "outpne:thin sopd red;"> This text is having thin sopd red outpne. </p> <br /> <p style = "outpne:thick dashed #009900;"> This text is having thick dashed green outpne. </p> <br /> <p style = "outpne:5px dotted rgb(13,33,232);"> This text is having 5x dotted blue outpne. </p> </body> </html>
It will produce the following result −
Advertisements