.index_a{ 600px; height:200px; margin:10px;; background-color:#C33; position:fixed; } .index_a{ 600px; height:900px; margin:10px; background-color:#CFF; position:fixed; z-index:2; } </style> </head> <body> <div class="index_a"> <marquee direction="right"> <img src="img/a4.jpg" width="600px" height="200px"/> </marquee> </div> <div class="index_b"> <img src="img/c2.jpg" width="600px" height="900px"/> </div> </body>