Lakshmi Srinivas has Published 287 Articles

Set a border between two lines with CSS

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 03-Feb-2020 06:31:20

289 Views

Use the border-style property with double value to set a border with two lines. You can try to run the following code to implement border-style property:Example                            This is a border with none width.                      This is a border with two solid lines.          

Set border width with CSS

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 03-Feb-2020 06:21:34

418 Views

The border-width property allows you to set the width of element borders. The value of this property could be either a length in px, pt or cm or it should be set to thin, medium or thick.ExampleYou can try to run the following code to set the border width with ... Read More

Change the color of the bottom border with CSS

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 03-Feb-2020 06:13:49

180 Views

The border-bottom-color changes the color of the bottom border. You can try to run the following code to implement the border-bottom-color property:Example                    p.demo {             border:4px solid;             border-bottom-color:#FF0000;          }                              Example showing border top color property          

Set the width of an image with CSS

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 31-Jan-2020 10:46:55

122 Views

The width property is used to set the width of an image. This property can have a value in length or in %. While giving value in %, it applies it in respect of the box in which an image is available.ExampleYou can try to run the following code to ... Read More

Change the style of the right border with CSS

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 31-Jan-2020 10:21:16

141 Views

The border-right-style property changes the style of right border. You can try to run the following code to implement border-right-style property:Example                            Example showing right border          

Usage of border-color property in CSS

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 31-Jan-2020 10:09:23

118 Views

The border-color property specifies the color of a border. You can try to run the following code to implement the border-color property:Example                    p.demo {             border:2px dashed;             border-color:#800000;          }                              Example showing border color property          

Usage of CSS border-spacing property

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 31-Jan-2020 10:02:56

69 Views

The border-spacing specifies the width between table cells. It can take either one or two values; these should be units of length.ExampleYou can try to run the following code to set the width of table cells:                    table.one {     ... Read More

How to style images with CSS?

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 31-Jan-2020 06:44:40

275 Views

To style images with CSS, you need to use properties such as height, width, - moz-opacity, etc. Let us see how to create a transparent image with - moz-opacity CSS property:The -moz-opacity property of an image is used to set the opacity of an image. This property is used to ... Read More

Indent the first line of a paragraph in CSS

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 31-Jan-2020 06:39:47

3K+ Views

Use the text-indent property to indent the first line of a paragraph. Possible values are % or a number specifying indent space.ExampleYou can try to run the following code to indent the first line:                            This text will ... Read More

Control the flow and formatting of text with CSS

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 31-Jan-2020 06:24:57

357 Views

The white-space property is used to control the flow and formatting of text.ExampleYou can try to run the following code to implement white-space property to control the flow of text:                            This text has a line break and ... Read More

Advertisements