#mydiv { position: fixed; height: 30px; top: 0; left: 0; width: 100%; }
youb