World TechniqueWorld Technique
  • Home
  • Earning Methods
  • Tizen
    • TPK
    • TIZEN TPK
  • Reviews
    • Software Reviews(Coming Soon)
    • APPS REVIEWS
    • Reviews
  • My Videos
Search
© 2023 World Technique
Reading: CSS: Border
Share
Sign In
Notification Show More
Latest News
EarnKaro - Making Money Online with Affiliate Marketing
EarnKaro: Make Money Online with Affiliate Marketing
Earn Online Earning Methods
Hostinger Shared Hosting Plans: A Review about offers and Performace
Web Hosting
What is Ysense? How to earn online by Ysense?
Earning Methods
Download Aptoide TPK for Androzen Pro – Samsung Tizen Devices
Tizen Tizen Apps
Whatsapp Tizen TPK for Samsung Z1, Z2, Z3, Z4, October 2020 of Tizen Store
Tizen Tizen Apps
Aa
World TechniqueWorld Technique
Aa
  • Home
  • Earning Methods
  • Tizen
  • Reviews
  • Videos
  • My Bookmarks
Search
  • Home
  • Earning Methods
  • Tizen
    • TPK
    • TIZEN TPK
  • Reviews
    • Software Reviews(Coming Soon)
    • APPS REVIEWS
    • Reviews
  • My Videos
Have an existing account? Sign In
Follow US
© 2023 World Technique
CSS

CSS: Border

World Technique
Last updated: 2018/10/18 at 10:40 AM
World Technique
Share
SHARE

BORDER:

The CSS border properties allow you to specify the style, width, and color of an element’s border.

Contents
BORDER:Border Style:Border Width:Border Color:Example:Border – Individual SidesExampleBorder – Shorthand Property

Border Style:

The border-style property specifies what kind of border to display.

The following values are allowed:

  • dotted – Defines a dotted border
  • dashed – Defines a dashed border
  • solid – Defines a solid border
  • double – Defines a double border
  • groove – Defines a 3D grooved border. The effect depends on the border-color value
  • ridge – Defines a 3D ridged border. The effect depends on the border-color value
  • inset – Defines a 3D inset border. The effect depends on the border-color value
  • outset – Defines a 3D outset border. The effect depends on the border-color value
  • none – Defines no border
  • hidden – Defines a hidden border

The border-style property can have from one to four values (for the top border, right border, bottom border, and the left border).

Example:

p.dotted {border-style: dotted;}
p.dashed {border-style: dashed;}
p.solid {border-style: solid;}
p.double {border-style: double;}
p.groove {border-style: groove;}
p.ridge {border-style: ridge;}
p.inset {border-style: inset;}
p.outset {border-style: outset;}
p.none {border-style: none;}
p.hidden {border-style: hidden;}
p.mix {border-style: dotted dashed solid double;}

 

Border Width:

The width can be set as a specific size (in px, pt, cm, em, etc) or by using one of the three pre-defined values: thin, medium, or thick.

The border-width property can have from one to four values (for the top border, right border, bottom border, and the left border).

The border-width property specifies the width of the four borders.

Border Color:

The border-color property is used to set the color of the four borders.

The color can be set by:

  • name – specify a color name, like “red”
  • Hex – specify a hex value, like “#ff0000”
  • RGB – specify a RGB value, like “rgb(255,0,0)”
  • transparent

The border-color property can have from one to four values (for the top border, right border, bottom border, and the left border).

If border-color is not set, it inherits the color of the element.

Example:

p.one {
border-style: solid;
border-color: red;
}

p.two {
border-style: solid;
border-color: green;
}

p.three {
border-style: solid;
border-color: red green blue yellow;
}

Border – Individual Sides

From the examples above you have seen that it is possible to specify a different border for each side.

In CSS, there are also properties for specifying each of the borders (top, right, bottom, and left):

Example

p {
border-top-style: dotted;
border-right-style: solid;
border-bottom-style: dotted;
border-left-style: solid;
}

Border – Shorthand Property

As you can see from the examples above, there are many properties to consider when dealing with borders.

To shorten the code, it is also possible to specify all the individual border properties in one property.

The border property is a shorthand property for the following individual border properties:

  • border-width
  • border-style (required)
  • border-color

You Might Also Like

Download Aptoide TPK for Androzen Pro – Samsung Tizen Devices

Vidmate Tizen TPK For Samsung Z1, Z2, Z3, Z4

FileMaster Tizen TPK for Samsung Z1,Z2,Z3,Z4

Download Andro-zen Pro tpk for Samsung Z1,Convert Android APK to Tizen TPK,worldtechnique.in

HTML:Including Picture-Inline Images

TAGGED: worldtechnique, worldtechnique tutorials

Sign Up For Daily Newsletter

Be keep up! Get the latest breaking news delivered straight to your inbox.
[mc4wp_form]
By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
World Technique October 16, 2018
Share this Article
Facebook Twitter Copy Link Print
Share
By World Technique
Follow:
Discover the latest in technology with World Technique. Our team of web developer experts bring you the latest trends, insights and tips to enhance your skills. Follow me for valuable information and inspiration in the world of technology.
Previous Article HTML: Table
Next Article “Black Survival” Android Games Review
Leave a comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

2.6k Like
250 Follow
29.6k Subscribe
2k Follow

Latest News

EarnKaro - Making Money Online with Affiliate Marketing
EarnKaro: Make Money Online with Affiliate Marketing
Earn Online Earning Methods
Hostinger Shared Hosting Plans: A Review about offers and Performace
Web Hosting
What is Ysense? How to earn online by Ysense?
Earning Methods
Download Aptoide TPK for Androzen Pro – Samsung Tizen Devices
Tizen Tizen Apps
//

Discover the latest in technology with World Technique.

Sign Up for Our Newsletter

Subscribe to our newsletter to get our newest articles instantly!

[mc4wp_form id=”1616″]

Follow US

© 2023 World Technique. All Rights Reserved.

  • Home
  • Earning Methods
  • Tizen
  • Reviews
  • My Videos

Removed from reading list

Undo
Welcome Back!

Sign in to your account

Register Lost your password?