html - Css Diagonal Div -


i trying achieve desired effect div holds sections background slanted 1 direction. able make div diagonally on top portion of div using this solution, realized there background needs seen , adding div on top of main content line instead of div slanting on top.

is there way pull effect off through css ?

enter image description here

<html> <head> <style> div.background {     background: url(klematis.jpg) repeat;     border: 2px solid black; }  div.transbox {     margin: 30px;     background-color: #ffffff;     border: 1px solid black;     opacity: 0.6;     filter: alpha(opacity=60); /* ie8 , earlier */ }  div.transbox p {     margin: 5%;     font-weight: bold;     color: #000000; } </style> </head> <body>  <div class="background">   <div class="transbox">     <p>this text placed in transparent box.</p>   </div> </div>  </body> </html> 

try example

or go http://www.w3schools.com/css/tryit.asp?filename=trycss_transparency

hope helps


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -