Search
 
SCRIPT & CODE EXAMPLE
 

CSS

css clip path alternative

/* 
one way of doing it by changing the border(left,right,top) width and color
in the ::after pseudo-element
demo:https://codepen.io/abdelghanymh/pen/mdqyaoR?editors=1100
*/

.indexBanner:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  
  /*this is where the magic happens*/
  border-left: 50vw solid white;
  border-right: 50vw solid white;
  border-top: 15vw solid transparent;
}
.indexBanner {
  background-image: url('http://nauci.se/Flipo/assets/images/study.jpg');
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  background-color: #404040;
  height: 500px;
  position: relative;
  overflow-x: hidden;
}
<div class="indexBanner"> 
</div> 

@https://stackoverflow.com/users/6263942/gleb-kemarsky
Comment

PREVIOUS NEXT
Code Example
Css :: css locks 
Css :: codebuddysurej 
Css :: step 54 freecodecamp rwd 
Css :: background affter layer css 
Css :: top 0 bottom 0 left 0 right 0 alternate css 
Css :: how to make 3 photos display inline-blocks 
Css :: cant change button higeht in @media 
Css :: Réglage de constantes PHP 
Css :: hoe maak je alleen het opsommingsteken wit in css 
Css :: Use @use to load module scss - @forward in _index.scss 
Css :: uikit theme 
Css :: ubuntu tor browser verification failed 
Css :: overriding fullpage js anchor style 
Css :: change svg color in pseudo element 
Css :: The edit queue is full at the moment - try again in a few minutes! 
Css :: step progress bar css 
Css :: move left and right text css 
Css :: empty rulesets css 
Css :: css psedou content data 
Css :: sass preprocessor visual studio code 
Css :: css safari webkit input search icon hide 
Css :: saas mixin 
Css :: overiade main style only for specific page sass 
Css :: helooo 
Css :: SPECIFIC CHILD ELEMENTS 
Css :: tailwind simle navbar" 
Css :: sass dummy folder site download 
Css :: what is css selector 
Css :: repeating-conic-gradient css 
Css :: ERROR in ./src/styles.scss 
ADD CONTENT
Topic
Content
Source link
Name
4+1 =