You can use half triangle with the pseudo element.
.container { padding: 20px; background-color: #F8F8F8; max-width: 200px; } .rectangle { width: 200px; height: 100px; background-color: #003781; position: relative; } .rectangle:after { content: ''; position: absolute; bottom: 0; right: 0; width: 0; height: 0; border-style: solid; border-width: 0 0 25px 25px; border-color: transparent transparent #F8F8F8 transparent; }
<div class="container"> <div class="rectangle"></div> </div>
Related Posts:
- draw diagonal lines in div background with CSS
- Hexagon shape with CSS3
- Adding border to CSS triangle [duplicate]
- Half circle with CSS (border, outline only)
- CSS to make HTML page footer stay at bottom of the page with a minimum height, but not overlap the page
- How to get these two divs side-by-side?
- What is the difference between the selectors “.class.class” and “.class .class”?
- How to implement max-font-size?
- @Media min-width & max-width
- How do I center this form in css?
- Is background-color:none valid CSS?
- Float a div above page content
- What does an asterisk (*) do in a CSS selector?
- height style property doesn’t work in div elements
- How can I horizontally align my divs?
- background-size: cover not working?
- combined multiple classes into one css rule
- How to position a table at the center of div horizontally & vertically
- CSS Classes & SubClasses
- In a bootstrap responsive page how to center a div
- CSS “and” and “or”
- Create a slanted edge to a div [duplicate]
- Removing whitespace between HTML elements when using line breaks
- Cache busting CSS files other than style.css
- How to work with custom styles saved in theme option?
- Modernizr and WordPress – How can I add a CSS class to the html element?
- front-page.php stylesheet
- How to Add Admin Bar and Admin Menu or Submenu Notification Bubbles?
- Check and dequeue if multiple stylesheets exists using wp_style_is?
- WordPress Displaying Thumbnails Vertically
- plugin css is not being applied to the page?
- Why do WordPress default themes specify fonts in so many places?
- How do I make Div Container 100% width only on homepage of site?
- TwentyTwelve versioning
- Remove Genericons Helper CSS from twentyfourteen theme
- How do I style WordPress pages differently based on the tag used?
- How/where to add additional stylesheet to WP
- How the Css File is Linked without calling it in header.php?
- Use stylesheet from a different location
- Different ways to load child theme css
- Importing changes to Child Theme
- Style internal links based on the tags of the linked post
- How to override Bootstrap css with my child theme css in wordpress?
- How to stop Gutenberg from outputting inline CSS for specific blocks?
- Save changes in CSS after removing Menu from specific page
- Move the position of menu item [closed]
- Title has word broken when viewed in mobile [closed]
- Change background color of subpages
- How to fix this error? [closed]
- Advanced: understanding wp_add_inline_style function
- How to make WordPress using local CSS/Fonts/Scripts only
- WordPress code editor messed up my code!
- How to know which order WordPress places CSS files?
- Placing background image over section divider
- WordPress CSS problems with controls
- Remove CSS & JS from
- enqueing Javascript and CSS
- Acessing HTML element with no specific tag on it [closed]
- Aligning line made with CSS [closed]
- Earlier stylesheet not overriding later one
- Order of WP page load (including widgets, php, plugins, media, templates, and CSS) [duplicate]
- Overwriting forced wordpress CSS styles [closed]
- Fixed height of the_content()
- How can I add inline CSS for each image?
- Creating a second menu on Twenty Eleven aligned right from the first
- CSS not being applied
- Help with a little CSS logo/header modification?
- WordPress sidebar content moving to bottom of page
- custom template display 3 columns
- underscores theme – sass folder structure vs smacss
- Inclution place of CSS file
- Img load while refreshing
- How to Compress Css/js code in wordpress and increase loading speed?
- Twenty Fourteen: Unsticky header after making header bigger
- How to display javascript banner in website header?
- Loading css files conditionally useful?
- WordPress site using unknown overriding css
- Is there any way to turn off a particular scrolling behaviour?
- Sidebar at bottom however I have completely replaced theme folder back to original code
- Site not 100% responsive
- Dropdown menu’s fighting with each other [closed]
- Header formatting works for safari but not chrome @media screen size technique on iphone
- Scale An Image Thumbnail
- Adding a css style to the main nav menu in child pages
- Adding custom css to a theme depending on whether the admin user is logged in or not
- Adjusting post width according to the image size
- single.php doesn’t getting style
- Converting Static HTML pages to WordPress
- Background tiles not working in iPad2 but ok everywhere else
- How to make widgetized footer styles be inherited from body?
- To override CSS of parent theme
- How to customize a theme’s navigation menu with css
- [class*=”content”]:before css styles in TwentyThirteen [closed]
- How to change the CSS in one file?
- Custom css code in wordpress [closed]
- Using Easy Google Fonts correctly and Droid Sans on Max OS X [closed]
- Enqueue MCE Editor CSS in admin page
- can i custom rendered content from API?
- How to include Elementor CSS in custom php file [closed]
- What is unsafe about this CSS?