10 Unique CSS Properties

10 Unique CSS Properties

ยท

3 min read

CSS has 100s of properties to style. Remembering all of them is not an easy task and also it is not feasible to learn everything. But there are some unfamiliar properties using them in your Style Sheet can give your project different look.

1. border-image

The border-image property allows you to specify an image to be used as the border around an element.

The border-image property is a shorthand property for:

  • border-image-source: The path to the image to be used as a border

    border-image-source : url()

  • border-image-slice: The border-image-slice property specifies how to slice the image specified by border-image-source. The image is always sliced into nine sections: four corners, four edges, and the middle. The "middle" part is treated as fully transparent unless the fill keyword is set.

    border-image-slice: number|%|fill|

  • border-image-width: The border-image-width property specifies the width of the border-image.

    border-image-width: number|%|

  • border-image-outset: The border-image-outset property specifies the amount by which the border image area extends beyond the border box.

    border-image-outset: length|number|

  • border-image-repeat: The border-image-repeat property specifies whether the border image should be repeated, rounded or stretched.

    border-image-repeat: stretch|repeat|round|

Screenshot (722).png

2. box-decoration-break:

The box-decoration-break property specifies how the background, padding, border, border-image, box-shadow, margin, and clip-path of an element is applied when the box for the element is fragmented.

box-decoration-break: slice|clone|

Screenshot (723).png

3. box-shadow:

The box-shadow property attaches one or more shadows to an element.

box-shadow: none|h-offset v-offset blur spread color |

Screenshot (724).png

4. caption-side

The caption-side property specifies the placement of a table caption.

caption-side: top|bottom|

Screenshot (725).png

5. clear

The clear property controls the flow next to floated elements. The clear property specifies what should happen with the element that is next to a floating element.

clear: none|left|right|both

Screenshot (726).png

6. filter

The filter property defines visual effects (like blur and saturation) to an element often

 filter: none | blur() | brightness() | contrast() | drop-shadow() | grayscale() | hue-rotate() | invert() | 
opacity() | saturate() | sepia() | url()

Screenshot (727).png

7. hyphens

The hyphens property defines whether hyphenation is allowed to create more soft wrap opportunities within a line of text.

hyphens: none|manual|auto|

Screenshot (728).png

8. isolation

The isolation property defines whether an element must create a new stacking content. isolation: auto|isolate|

Screenshot (729).png

9. quotes

The quotes property sets the type of quotation marks for quotations.

quotes: none|string|

Screenshot (730).png

10. user-select

The user-select property specifies whether the text of an element can be selected.

user-select: auto|none|text|

Screenshot (731).png


That's all for this Blog. If you liked and learned from this blog. Do give it a LIKE and share your valuable FEEDBACK.

We will meet in the next blog. Till then Keep Learning, Keep Growing.

Connect with me ๐Ÿ‘‡

Reference: W3Schools

Did you find this article valuable?

Support webtalks by becoming a sponsor. Any amount is appreciated!

ย