Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head>
  <title>test</title>
  <style type="text/css">
    * {
      margin: 0;
      padding: 0; overflow: auto;
      }
     
    body {
      margin: 10px;
      background-color: pink;
      }
      
    .float  {
      width: 300px;
      height: 300px;
      overflow: hidden;
      background-color: #CCFFFF;
      float: left;
      padding: 10px;
      }
      
    div.float table  {
      position: relative;
      top: -50px;
      width: 100%
      background-color: #FFFF00;
      display: block;
      z-index: 1002;
      }
      
    div.relative {
      position: relative;
      z-index: 1001;
      top: 0;
      width: 100%;
      height: 100px;
      overflow: hidden;
      background-color: #99CCFF;
      text-align: center;
      }
    
/* de aici */
div.banner {
  margin: 0;
  font-size: 80% /*smaller*/;
  font-weight: bold;
  line-height: 1.1;
  text-align: left;
  position: fixed;
  top: 30px;
  left: auto;
  width: 130px;
  right: 50px;
}
div.banner p {
  margin: 0; 
  padding: 0.3em 0.4em;
  font-family: tahoma, sans-serif;
  background: #900;
  border: thin outset #900;
  color: white;
}
div.banner a, div.banner em { display: block; margin: 0 0.5em }
div.banner a, div.banner em { border-top: 2px groove #900 }
div.banner a:first-child { border-top: none }
div.banner em { color: #CFC }
div.banner a:link { text-decoration: none; color: white }
div.banner a:visited { text-decoration: none; color: #CCC }
div.banner a:hover { background: black; color: white }    
    
  </style>
</head>
<body>
<div class="float">
  <div class="relative">
    Loading Template...
  </div>
  <table>
    <tr>
      <td>
        <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nunc gravida quam et mauris. Aliquam laoreet lorem non massa. Praesent sed risus. Aenean viverra. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Aenean tortor. Nam sodales eleifend felis. Cras non elit. Vivamus dictum lobortis lectus. Nam bibendum. Etiam tempor interdum mi. Sed consequat sapien nec dolor. Sed adipiscing. Phasellus ut nisi sit amet magna scelerisque dapibus. Duis in mauris.</p>
      </td>
    </tr>
  </table>
</div>
  
<br><br>
  
  <div style="width: 150px; border: 1px solid ;">Un text oarecare
  <div class="banner">
<p>
<a href="#"><img alt="W3C" src=""></a>
<a href="#">Activities</a>
<a href="#">Tech.&nbsp;reports</a>
<a href="#">Site index</a>
<a href="#">Translations</a>
<a href="#">Software</a>
<a href="#">Search</a>
<em>Nearby:</em>
<a href="#">Style</a>
<a href="#">CSS</a>
<a href="#">tips&nbsp;&amp;&nbsp;tricks</a>
</div>
  </div> 
  <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><br><br><br><br><br><br><br><br><br>
  
</body>
</html>
Output

This bin was created anonymously and its free preview time has expired (learn why). — Get a free unrestricted account

Dismiss x
public
Bin info
anonymouspro
0viewers