How do i turn my triangle responsive - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Responsive Layout

Description

How do i turn my triangle responsive

Demo Code

ResultView the demo in separate window

<html lang="en">
 <head> 
  <title>Lorem ipsu</title> 
  <style>
body {<!--from  www .j a va  2 s  .  com-->
   background:linear-gradient(
   to top left,
   black,
   black 51%,
   Chartreuse 51%,
   rgba(0,0,0,0)) top  center no-repeat,linear-gradient(
   to top right,
   black,
   black 51%,
   yellow 51%,
   blue
   )  top center no-repeat;
   background-size:41% 201%;
   background-color:pink;
   padding:0;
   margin:0 auto;
   min-height:100%;
}

html {
   height:100%;
}
</style> 
 </head> 
 <body translate="no"> 
  <div class="triangle-down"></div>  
 </body>
</html>

Related Tutorials