html - cant figure out how jquerymobile.com makes their section headers -


jquerymoble.com has section headers wrap around edge of page. wrapping effect achieved having little triangle above div containing text. cannot life of figure out css creates triangle.

if have firebug, go this page , replace (in html edit mode) entire body tag html:

<header id="header">          <section id="page">   <p class="flag"><em><a style="color: rgb(0, 0, 0);" href="http://jquerymobile.com/2010/11/jquery-mobile-alpha-2-released/">jquery mobile 1.0 alpha 2 released!</a></em></p>   </section> </header> 

how wrapping effect on left? alt text

in css:

#page .flag:after {   content: "";   display: block;   width: 0;   height: 0;   border: solid 3px #fff;   border-color: transparent #ffc32c #ffc32c transparent;   position: absolute;   top: -7px;   left: -7px;   -webkit-transform: skew(10deg,0deg) translate(-1px,0);   transform: skew(10deg,0deg); }
it looks if using css border method create shape.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -