aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Jsp's overlapping Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Jsp Watch "Jsp New topic
Author

Jsp's overlapping

Chehak Talib
Greenhorn

Joined: Mar 21, 2013
Posts: 1
I have a jsp page say home.jsp and home.css, it has a table and various jsp's are added in the <td> fields.
The problem is the 'top hover menu.jsp' gets hidden behind the <div> element having sliderframe.
the same is the problem with the othe <td> elements having drop down menus and lists..please assist.
the code is

home.jsp
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<title>Home</title>
<link href="home.css" rel="stylesheet" type="text/css" />
<script src="home.js" type="text/javascript"></script>
<link href="generic.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table border="1px black" width="1355px" height="655px" >
<tr height="50px" >
<td align="center"><a href="home.jsp" title="Home"><img src="images/vardhman_logo21.jpg"/></a></td>

<td style="vertical-align: bottom; overflow: no-display">

<jsp:include page="top hover menu.jsp"/></td>

<td style="padding-left: 20px"><a href="thought.jsp" title="Thought Of The Day"><img src="images/thoughts/your-thoughts-create-your-future.png"/></a></td>
<!-- <td><a href="#"><img src="images/thoughts/think-happy-thoughts-blog.jpg"/></a></td>-->
</tr>
<tr>
<td style="vertical-align: top" width="200px" ><jsp:include page="left hover menu2.jsp"/></td>
<td>
<div id="sliderFrame">
<div id="slider">
<a href="http://localhost:8080/vardhman-war/products.jsp#Thread" title="Thread" > <img src="images/thread.jpg" alt="Thread" /></a>
<a href="http://localhost:8080/vardhman-war/products.jsp#Yarn" title="Yarn" ><img src="images/yarn3.jpg" alt="Yarn" /></a>
<a href="http://localhost:8080/vardhman-war/products.jsp#Garment" title="Garments"> <img src="images/garment.jpg" alt="Garments" /></a>
<a href="http://localhost:8080/vardhman-war/products.jsp#Steel" title="Steel"> <img src="images/steel4.jpg" alt="Steel" /></a>
<a href="http://localhost:8080/vardhman-war/products.jsp#Fabric" title="Fabric"> <img src="images/s3.jpg" alt="Fabric"/> </a>

</div>
</div>

</td>
<td style="vertical-align: top; height: 100px;"><jsp:include page="todolist.jsp"/></td>
</tr>
<tr >

<td style="padding-left: 20px"><a href="products.jsp" title="Vardhman Products">  <img src="images/products.jpg"></a></td>
<td ><jsp:include page="right menu.jsp"/></td>
<td><a href="fav.jsp" title="Favourites"><img src="images/my_favourites.jpg"></a></td>


</tr></table>
</body>
</html>

home.css
/*
Document : js-image-slider
Created on : Mar 8, 2013, 2:36:17 PM
Author : hp
Description:
Purpose of the stylesheet follows.
*/

root {
display: block;
}
td{
font-family: arial;
color: red;
}

/* http://www.menucool.com */

#sliderFrame {position:relative;width:850px;margin: 30px;} /*remove the "margin:0 auto;" if you want to align the whole slider to the left side*/

#ribbon {width:111px;height:111px;position:absolute;top:-4px;left:-4px;background:url(ribbon.png) no-repeat;z-index:7;}

#slider {
width:900px;height:306px;/* Make it the same size as your images */
background:#fff url(loading.gif) no-repeat 50% 50%;
position:relative;
margin:-20px ;/*make the image slider center-aligned */
box-shadow: 0px 1px 5px #999999;
}
#slider img {
position:absolute;
border:none;
display:none;

}

/* the link style (if an image is wrapped in a link) */
#slider a.imgLink {
z-index:2;
display:none;position:absolute;
top:0px;left:0px;border:0;padding:0;margin:0;
width:100%;height:100%;
}

/* Caption styles */
div.mc-caption-bg, div.mc-caption-bg2 {
position:absolute;

width:100%;
height:auto;
padding:0;
right:0px; /*if the caption needs to be aligned from right, specify by right instead of left. i.e. right:20px;*/
bottom:0px;/*if the caption needs to be aligned from top, specify by top instead of bottom. i.e. top:150px;*/
z-index:3;
overflow:hidden;
font-size: 0;
}
div.mc-caption-bg {
background-color:green;
}
div.mc-caption {
font: bold 14px/20px arial;


color:#EEE;
z-index:4;
padding:10px 10px;/*Adding a padding-left or padding-right here will make the caption area wider than its background. Sometimes you may need to define its width again here to keep it the same width as its background area (div.mc-caption-bg).*/
text-align:left;
}
div.mc-caption a {
color:#FB0;
}
div.mc-caption a:hover {
color:#DA0;
}


/* ------ built-in navigation bullets wrapper ------*/
div.navBulletsWrapper {
top:310px; left:380px; /* Its position is relative to the #slider */
width:150px;
background:none;
padding-left:20px;
position:relative;
z-index:5;
cursor:pointer;
}

/* each bullet */
div.navBulletsWrapper div
{
width:11px; height:11px;
background:transparent url(images/bullet.png) no-repeat 0 0;
float:left;overflow:hidden;vertical-align:middle;cursor:pointer;
margin-right:11px;/* distance between each bullet*/
_position:relative;/*IE6 hack*/
}

div.navBulletsWrapper div.active {background-position:0 -11px;}


/* --------- Others ------- */
#slider
{
transform: translate3d(0,0,0);
-ms-transform:translate3d(0,0,0);
-moz-transform:translate3d(0,0,0);
-o-transform:translate3d(0,0,0);
}



 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Jsp's overlapping