HTML CSS examples for CSS Widget:Nav Bar
Force fixed nav bar on top of iframe
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> nav {<!--from w w w. j ava 2 s . c o m--> position:fixed; background:red; top:0; width:100%; } body { margin:0px; padding:0px; } </style> </head> <body> <nav> Lorem ipsum dolor </nav> <p>Lorem ipsum do</p> <iframe width="420" height="315" src="http://www.youtube.com/" frameborder="0"></iframe> <p>Lorem ipsum d</p> <p>Lorem ipsum d</p> <p>Lorem ipsum d</p> <p>Lorem ipsum d</p> <iframe width="420" height="315" src="http://www.youtube.com/" frameborder="0"></iframe> <p>Lorem ipsum d</p> <p>Lorem ipsum d</p> <p>Lorem ipsum d</p> <p>Lorem ipsum d</p> <p>Lorem ipsum d</p> <p>Lorem ipsum d</p> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> </body> </html>