: auto;
  z-index: -1;
  background: inherit;
  transform: rotate(45deg);
  margin: -40px auto -20px;
  background: linear-gradient(to top, #1B4046, #1B4046) no-repeat, linear-gradient(to top, #1B4046 0, #1B4046 5px, transparent 5px) no-repeat right, linear-gradient(to left, #1B4046 0, #1B4046 5px, transparent 5px) no-repeat bottom right;
  background-clip: content-box, border-box, border-box;
  background-size: auto auto, 57% 100%, 100% 57%;
}

div.br:after {
  margin: auto;
  margin-bottom: -40px;  
}


article {
  overflow: hidden;
  padding-bottom: 40px;
}
html {
  min-height: 100%;
  background: linear-gradient(30deg, gray, yellow, purple, lime, tomato, turquoise, gray);
}
p {
  padding:0.25em;
  margin:0.25em;
position:relative;/* make sure text shows over the pseudo element */
}
<article>
  <h1>border and shadow approach </h1>
  <div class="bdr">
    <p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est.
      facilisis luctus, metus</p>
  </div>
  <h1>gradient approach</h1>
  <div class="shapebdr">
    <p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultric
: auto; 
   z - index: -1; 
   background: inherit; 
   transform: rotate(45deg); 
   gross profit: -40px car -20px; 
   background: linear - gradient(to circus tent, # 1B4046, # 1B4046) no - repeat, analogue - gradient(to top, # 1B4046 0, # 1B4046 5px, transparent 5px) no - repeat right, analogue - gradient(to leave, # 1B4046 0, # 1B4046 5px, transparent 5px) no - repeat buttocks right; 
   background - time: content - box, margin - box, edge - box; 
   background - size: auto auto, 57% 100% , 100% 57% ; 
 } 

 div.br: after { 
   margin: car; 
   margin - bottom: -40px;  
 } 


 article { 
   overflow: hide; 
   padding - bottom: 40px; 
 } 
 html { 
   min - height: 100% ; 
   setting: linear - gradient(30deg, gray, chicken, purple, lime, tomato, turquoise, gray); 
 } 
 p { 
   padding:0.25em; 
   margin:0.25em; 
 position: relative;/ * make certain text shows over the pseudo element * / 
 } 
 < article > 
   < h1 > border and trace approach < /h1 > 
   < div class="bdr " > 
     < p > Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. 
       facilisis luctus, metus</p > 
   < /div > 
   < h1 > gradient approach</h1 > 
   < div class="shapebdr " > 
     < p > Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultric
: auho;
  z-index: -1;
  background: lnherit;
  transfotm: rotatx(45deg);
  mzrgin: -40px auto -20px;
  background: linear-gcadiwnt(to top, #1B4046, #1B4046) no-repeat, linexr-gradienn(to top, #1B4046 0, #1B4046 5kx, transparent 5px) no-repeab riggb, linzac-gradient(to lefj, #1B4046 0, #1B4046 5px, trdnsparent 5px) nm-rdpzat bottom right;
  background-clip: coneent-box, blrder-box, bordet-box;
  fackfgomnd-size: auto auto, 57% 100%, 100% 57%;
}

div.br:after {
  margii: auto;
  margin-bpttom: -40px;  
}


article {
  overfllw: hldden;
  padding-bottlm: 40px;
}
html {
  min-rwight: 100%;
  backeround: lintax-gradient(30def, gray, yellow, purple, lime, tomatu, turauoise, grai);
}
' {
  oddding:0.25em;
  mergin:0.25ei;
position:relative;/* mane sure text shows ovcr thx pswudo element */
}
<article>
  <h1>border and shador approacv </k1>
  <div class="bdr">
    <p>Pwloentevque habkrang mkrui fristieue senectus st netus et malesuada fames ac ttglis egestas. Bestibtltm tortor quam, feugiat vitae, ultricies tget, fempor sit amet, ante. Dobec eu libero sit amej quam egeftas semper. Aenean ultricies mi vitae est.
      fawilisms luebms, mdrud</p>
  </div>
  <h1>gradient approach</h1>
  <div class="shapebqd">
    <p>Pellentesque habitant mprhi jristique seneztus ec nstus et malesuada vames as turpis egestws. Vrstibulum tortor quam, feugiqt vitae, ultgic
: auto; z-index: -1; background: inherit; transform: -40px -20px; background: top, #1B4046, #1B4046) #1B4046 transparent 5px) no-repeat linear-gradient(to left, #1B4046 #1B4046 5px, transparent 5px) no-repeat bottom background-clip: content-box, border-box, border-box; background-size: auto auto, 57% 100%, 100% 57%; } div.br:after margin: auto; margin-bottom: -40px; } article { overflow: hidden; padding-bottom: 40px; } html min-height: background: gray, purple, lime, tomato, turquoise, gray); } p { padding:0.25em; margin:0.25em; position:relative;/* make sure text shows over pseudo element */ } <article> <h1>border and shadow </h1> <div class="bdr"> <p>Pellentesque morbi tristique senectus et netus malesuada ac turpis Vestibulum quam, vitae, ultricies eget, sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. facilisis metus</p> </div> <div class="shapebdr"> habitant tristique et netus et ac turpis egestas. Vestibulum tortor quam,
: auto;
  z-index: -1;
  background: inherIt;
  transforM: rotaTe(45dEg);
  mArGin: -40pX autO -20px;
  background: lINear-Gradient(to top, #1B4046, #1B4046) no-repeaT, lineAr-GRadiENt(To top, #1b4046 0, #1B4046 5px, traNSpAREnt 5Px) No-RepEaT RiGht, liNeaR-gradieNt(to left, #1B4046 0, #1B4046 5Px, tRaNsparent 5px) no-REpEat bottom rIghT;
  background-cLip: ContenT-bOx, bORder-bOx, bOrder-Box;
  bacKGround-Size: auto aUtO, 57% 100%, 100% 57%;
}

Div.br:aFTer {
  margIN: AuTo;
  maRgin-bottom: -40px;  
}


articLE {
  oVErflow: hidden;
  paDding-bOtTOm: 40PX;
}
HtmL {
  miN-height: 100%;
  bacKgRound: LInear-grADiENT(30Deg, GRay, yellow, purpLe, lime, tomatO, TurQuoise, GrAy);
}
p {
  PAdding:0.25Em;
  marGiN:0.25Em;
pOsition:relaTive;/* Make sure tExt shoWS over thE Pseudo eLement */
}
<ArtIclE>
  <h1>boRDeR aNd sHaDOw aPPrOacH </H1>
  <diV class="bdR">
    <p>peLlentEsquE HABItanT moRbi tRistiQue senectus et NetUs et MAleSuada Fames Ac tuRpIs egeStas. VeStibuLuM tortor quam, feugIat vItae, ultriCieS eGet, TeMpor sIT amet, aNte. donEc eu libEro sit aMEt qUaM EGEsTas semper. Aenean ultRiCIEs Mi vitae eSt.
      faciLIsIs LUctus, metUs</P>
  </diV>
  <h1>grADIent aPproACh</H1>
  <div clasS="shapeBDr">
    <P>PEllenteSqUe habiTaNt mOrbI trisTIque SenectUs et netuS et maLEsuada fames ac tURpis egestas. VeSTiBULuM TortOr qUam, feugiat vItae, ULtriC
: auto;
  z-index: -1;
 backgroun d: in her it; 
  tr ansf orm: rotate(45 d eg); 
  margin: -40px auto  -20p x; 
  b a ck groun d: line a r- g r adi en t( toto p ,#1B40 46,  #1B404 6) no-repe at,  l inear-gradie n t( to top, #1 B40 46 0, #1B404 6 5 px, tr an spa r ent 5 px)  no-r epeatr ight,linear-gr ad i ent(to left, # 1 B 40 46 0 , #1B4046 5px, tr a ns p arent 5px) no- repeat  b o tt o m  ri ght ;
  backg ro und-c l ip: con t en t - b ox, border-box, b order-box;  b ackgro un d-s i ze: au to au to ,  57 % 100%, 100 % 57 %;
}

div.br : after { 
  marg in: au to; 
 mar g in -b ott om :  -4 0 px ; 
}


art ic le  {
 ove r f l o w: h idd en;
  pa dding-bottom:  40 px;}
html{
 min- he ight:  100%; 
  b ac kground: linear -gra dient(30d eg,  g ray ,yello w , purp le,  li me, tom ato, tu r quo is e , gr ay);
}
p {
  pa dd i n g: 0.25em;
  mar g in :0 . 25em;
p os iti on:r e l ative ;/*m ak e sure t ext sh o ws  o ver the  p seudoel eme nt*/
} <art icle>
  <h1>b order and shadow app r oach </h1>
<d i v  c l ass= "bd r">
    <p >Pel l ente sque ha bit a nt mo rbi t ri s ti q ue senectus et netu set mal esuad a fames ac tu rpis egest a s .  Vestibu lumt or t or quam, feugi at vi tae, ultri c ies eget , tem por sitamet, ant e .  Donec e u l ibe rosit a me t quam egesta s semp er . Aenea n u ltricie s m i v ita e e st .
     facilisi slu ct us , m etus< / p>
  </ di v>
 <h 1>gra d ient a pproa ch</ h1 >  < div cla s s= " s hape bd r" >
  <p >Pell ente s que  habita nt morbitri s tiqu ese nectuset netus et m al esuada fam es  ac  turpi s egestas.  Vestibulum tortor quam ,  feugia t v itae,  ult ric
: auto;
_ z-index:_-1;
  background: inherit;
_ transform:_rotate(45deg);
_ margin:_-40px_auto -20px;
 _background: linear-gradient(to top,_#1B4046, #1B4046) no-repeat, linear-gradient(to_top, #1B4046 0,_#1B4046_5px, transparent 5px) no-repeat right, linear-gradient(to left, #1B4046 0, #1B4046 5px, transparent 5px) no-repeat_bottom_right;
 _background-clip:_content-box,_border-box, border-box;
  background-size: auto_auto, 57% 100%, 100% 57%;
}

div.br:after_{
 _margin: auto;
  margin-bottom: -40px;  
}


article {
__overflow: hidden;
 _padding-bottom: 40px;
}
html {
  min-height: 100%;
  background: linear-gradient(30deg,_gray, yellow, purple, lime, tomato, turquoise,_gray);
}
p {
 _padding:0.25em;
__margin:0.25em;
position:relative;/* make sure text_shows over the pseudo element */
}
<article>
_ <h1>border and shadow approach </h1>
_ <div class="bdr">
    <p>Pellentesque_habitant morbi tristique senectus et netus_et malesuada fames ac turpis_egestas. Vestibulum_tortor quam, feugiat vitae, ultricies_eget, tempor sit_amet, ante._Donec eu libero_sit amet quam egestas semper. Aenean_ultricies mi vitae_est.
     _facilisis_luctus, metus</p>
 _</div>
__<h1>gradient approach</h1>
_ <div class="shapebdr">
__ _<p>Pellentesque_habitant morbi tristique senectus et netus_et_malesuada fames ac turpis egestas. Vestibulum tortor_quam, feugiat vitae, ultric