One way to do it is the create an inner triangle which is smaller.
.triangle-left { width: 0; height: 0; border-top: 23px solid transparent; border-bottom: 23px solid transparent; border-right: 23px solid red; } .inner-triangle { position: relative; top: -20px; left: 2px; width: 0; height: 0; border-top: 20px solid transparent; border-bottom: 20px solid transparent; border-right: 20px solid blue; }
<div class="triangle-left"> <div class="inner-triangle"></div> </div>
Related Posts:
- draw diagonal lines in div background with CSS
- Slanted border using CSS
- Hexagon shape with CSS3
- Adding border to SVG image
- multiple classes on single element html
- Gradient borders
- How do I rotate text in css?
- how to offset a CSS border up and left
- What does “*” mean in CSS?
- SVG Fill Color Not Working
- How to change an input button image using CSS
- Is it possible to center an inline-block element and if so, how?
- How do you add a scroll bar to a div?
- Delete white space between divs
- Reset/remove CSS styles for element only
- Add a link to an image in a css style sheet
- Need to make a clickable button
- CSS: background image on background color
- Set line height in Html
to make the html looks like a office word when
has different font sizes
- What is the correct way to enqueue multiple CSS files?
- Remove wp_add_inline_style
- @font-face doesn’t work
- WordPress Register Style Called Incorrectly
- Duplicate and alter sidebar for Twenty Eleven
- Set Image width=’x%’ (percentage width not pixel width) when inserted via the media manager?
- How to dequeue styles coming from plugins?
- Enable specific CSS Code for Visitors and specific Roles
- How to exclude certain code from style.css? [closed]
- Need Help Figuring Out Admin Menu Hover Styling Class
- How to decrease picture size
- Can’t remove WordPress post image height/width attributes?
- whats happening with my index page?
- How do I add an indicator to my .menu-item if it contains a .sub-menu?
- Change via CSS the color of social menu icons
- style.css doesn’t load on the home page when front-page.php activated (using stock theme)
- Header’s CSS doesn’t work in Chrome and Opera – any ideas how to fix it?
- @media in bluehost is being commented out [closed]
- Twenty Fifteen : Wider right column for the content
- Moving button on Online Consulting theme
- css file status 403
- How can I get the search form to be selected automatically?
- Adding Custom css file
- Using transient for dynamic css , how to name it?
- Change CSS on a wordpress post
- Unstable handling of CSS under WordPress/Elementor
- Trying to hide a button on a specific WordPress Page ID
- How to add animation the featured image?
- get_template_directory_uri() generates wrong path
- How to change the settings of a video? [closed]
- Change text color dynamically in WordPress [closed]
- why has this element moved despite css being the same as other pages?
- First element/selector of enqueued CSS file breaks
- Test wrapping cutting words in half on my WP site [closed]
- Different background for different page
- calling an additional css and js links for a custom page template
- Styling last item in ul [closed]
- How to change color of some items through css [closed]
- Remove custom css made by the custom theme
- Font styling in embedded Twitter feed
- Is there any way we can restore the “Additional CSS” after being erased?
- sidebar with hovering mouse effect
- Default paragraph block styles just for pages NOT for posts?
- Custom Gutenberg color classes naming convention
- Loading a stylesheet conditionally & verifying CSS
- Dequeue styles with query doesn’t work
- Dynamically populated scss values or how to change styles by user choice
- child-theme style not changing on localhost
- WordPress login using a completely custom page and no plugins?
- Gutenberg CSS Issue
- When changing theme’s font, why does font-size attribute not work? [duplicate]
- Hide BBPress create topic on one page
- Dropdown contents hidden behind content [closed]
- About copy and paste content and formatting
- How to display a background image in a page body area? [closed]
- Menu reduce space between words
- Vertical aligning CSS pushes column to left [closed]
- Specific text not affected by CSS style [closed]
- Import HTML code that loads css and javascript into specific page
- checkbox function not working for dropdown menu
- How to change hover color on bulk-action-selector-top and bottom on wordpress admin?
- Bootsrtap.css overlap style.css in custom wordpress theme
- Exclude parts of default css import
- Replacing parent theme’s IE-specific CSS
- modify stylesheet of a particular page inside wp-admin
- Having Trouble Styling a Table in a WordPress Post
- Bootstrap 4 Optimization
- Woocommerce align prices and texts [closed]
- how to include other jquery file and css file in wordpress plugins
- Hide certain div/ class only at front page
- How to remove post view count
- WordPress toolset css struggle
- site-description css is overriden [closed]
- How can I use Advanced Custom Field Option page in CSS WordPress
- Best practice for custom primary color of pages
- Custom theme – Bootstrap CSS not loading via wp_enqueue_style or otherwise
- Insert a group block inside a list item
- Layout totally broken
- Block content rendered with inline CSS. How do I reuse it in a headless setup?
- Gutenberg: where to find style settings
- A website built using wordpress, but the articles on the sidebar of this webpage cannot be displayed