Chevron Shape using SVG in html

1. Using SVG

SVGs offer a flexible way to create shapes without relying on CSS borders. You can use an inline SVG to render a down chevron. This method is scalable and maintains sharpness regardless of size.

<div id="section">
  <svg height="36" width="36">
    <polygon points="18,36 0,0 36,0" fill="red" />
  </svg>
</div>

2. Using CSS Clip Path

The clip-path property allows you to create complex shapes without additional markup. You can create a down chevron using CSS shapes.

Chevron Shape using css with ::after

The ::after pseudo-element allows you to create decorative elements or shapes that can be positioned relative to the element they are applied to. In the case of creating a down chevron shape using borders, it works through the use of CSS borders to create triangles. 

Here’s a breakdown of how your example works:


Explanation of Chevron Shape with ::after

CSS Rules Breakdown

Cookie Policy

Cookies are small text files, which often include a unique identifier that is sent by a web server to your computer, mobile phone or any other internet enabled device (“device”) when you visit a website. Cookies are widely used in order to make websites work efficiently and help provide us with business and marketing information to enable us to make informed decisions on the development of our websites. We may collect information about your computer, including your IP address, operating system and browser type, for system administration and in order to create reports.

Privacy Policy

Zerotouch is committed to protecting and respecting your privacy. 

This Policy explains when and why we collect personal information about people who visit our website, how we use it, the conditions under which we may disclose it to others and how we keep it secure. 

We may change this Policy from time to time so please check this page occasionally to ensure that you’re happy with any changes. By using our website, you’re agreeing to be bound by this Policy. 

Filebrowser

This module provides an interface for administrators to expose directories on the file system to users through a file listing as in a FTP application.

We removed this when migrating to Drupal 10. 

Entity Embed

Entity Embed allows any entity to be embedded within a text area using a WYSIWYG editor.

As of 31st October 2023 Entity Embed wasn't ready for CKEditor 5. As such, if you're using it to embed media entities then you can make the switch to Drupal core's media_embed text format filter (all media entities embedded with Entity Embed will continue to work just fine!).

You can then also enable the Media Library functionality in CKEditor for a far better UX!