html - Adding Image as a background in JSP -
i have jsp in trying add background image. getting nav bar header body. trying add background image body , when add it, overlapping on navigation bar. below code of jsp:
<jsp:include page="index_header.jsp"></jsp:include> <div class="container"> <div style='position:absolute;zindex:0;left:0;top:0;width:100%;height:100%'> <img src='images/im3.jpg' style='width:100%;height:100%' alt='[]' /> </div> </div>
how keep nav bar on page , add image rest of body. kindly me fixing this.
you can add background image navbar url points blank image.
<html> <head> <style> body { background-image: url("images/im3.jpg"); } .no-background { background-image: url("images/blank.jpg"); } </style> </head> <body> <h1 class="no-background">hello world!</h1> </body> </html>
i created blank.jpg default image when open ms paint. in example, i've added no-background class h1
element. instead add class nav-bar.
Comments
Post a Comment