AmitDiwan has Published 11367 Articles

Turning off Float using Clear Property of CSS

AmitDiwan

AmitDiwan

Updated on 02-Jan-2024 16:41:59

2K+ Views

We can use CSS clear property to specify the side of the floated element which is to be cleared of flowing content. If you want to control the element next to a floating element, then use the clear property. Syntax The following is the syntax of the float property − ... Read More

The width and height properties in CSS

AmitDiwan

AmitDiwan

Updated on 02-Jan-2024 16:40:47

146 Views

We can define the height and width exclusively for the element’s content, though these properties do not include margins, paddings or borders. Syntax The syntax of CSS height property is as follows − Selector { height: /*value*/ } The syntax of CSS width property is ... Read More

The padding shorthand Property in CSS

AmitDiwan

AmitDiwan

Updated on 02-Jan-2024 16:37:50

139 Views

The padding property in CSS allows you to set the padding for padding-top, padding-right, padding-bottom, padding-left. It is a shorthand property. For example padding:10px 5px 7px 10px; Here, top padding is 10px right padding is 5px bottom padding is 7px left padding is 10px Syntax The ... Read More

The outline-width Property in CSS

AmitDiwan

AmitDiwan

Updated on 02-Jan-2024 16:27:17

58 Views

The outline-width property can be defined to draw a line of specific thickness around the borders of the element, but the outline is not a part of an element’s dimensions, unlike border property. Syntax The syntax of CSS outline-width property is as follows − Selector { ... Read More

The outline-style Property in CSS

AmitDiwan

AmitDiwan

Updated on 02-Jan-2024 16:25:53

100 Views

The outline-style property can be defined to draw a line around the borders of the element, but the outline is not a part of element’s dimensions unlike border property. Syntax The syntax of CSS outline-style property is as follows − Selector { outline-style: /*value*/ } ... Read More

The outline-color Property in CSS

AmitDiwan

AmitDiwan

Updated on 02-Jan-2024 16:23:53

85 Views

The outline-color property can be defined to draw a line of a specific color around the borders of the element, but the outline is not a part of element’s dimensions unlike border property. Syntax The syntax of CSS outline-color property is as follows − Selector { ... Read More

The outline Shorthand Property in CSS

AmitDiwan

AmitDiwan

Updated on 29-Dec-2023 15:45:25

357 Views

The outline shorthand property can be defined to draw a line of specific style (required), thickness, and color around the borders of the element, but the outline is not a part of element’s dimensions unlike border property. Syntax The syntax of CSS outline Shorthand property is as follows − ... Read More

The min-width Property in CSS

AmitDiwan

AmitDiwan

Updated on 29-Dec-2023 15:43:28

61 Views

We can define a fixed min-width for an element’s content box using CSS min-width property which does not allow the element’s content box to be narrower even if width is lesser than min-width. Syntax The syntax of CSS min-width property is as follows − Selector { min-width: /*value*/ } The value can ... Read More

The min-height Property in CSS

AmitDiwan

AmitDiwan

Updated on 29-Dec-2023 15:39:44

68 Views

We can define a fixed min-height for an element’s content box using CSS min-height property which does not allows the element’s content box to be smaller even if height is lesser than min-height. Syntax The syntax of CSS min-height property is as follows − Selector { min-height: /*value*/ } The value can ... Read More

The max-width Property in CSS

AmitDiwan

AmitDiwan

Updated on 29-Dec-2023 15:36:25

165 Views

We can define a fixed max-width for an element’s content box using the CSS max-width property which does not allows the element’s content box to be wider even if width is greater than max-width. Syntax The syntax of CSS max-width property is as follows − Selector { max-width: /*value*/ } The value ... Read More

Advertisements