Someone put a nice effect on our pages where there is shading on all four sides of the jsp page.
However, if there is a button or link is in the outter areas of the pages, then they don't work. It's like the CSS is sitting on top. How can I fix that?? thank you
Code:
/*
Document : master
Created on : Oct 19, 2010, 9:13:30 PM
Author : hamzeh
Description:
Purpose of the stylesheet follows.
*/
/*
TODO customize this sample style
Syntax recommendation http://www.w3.org/TR/REC-CSS2/
*/
* {
margin: 0;
padding: 0;
}
body
{
padding: 50px;
}
p
{
font-size: 1.5em;
margin-top: 0.4em;
}
pre
{
font-family: "Times New Roman";
font-size:16px;
}
img
{
padding-bottom:20px;
}
table.center
{
margin-left:auto;
margin-right:auto;
}
#top, #bottom, #left, #right
{
background: black;
}
#left, #right
{
position: fixed;
top: 0; bottom: 0;
width: 88px;
}
#left
{
left: 0;
background: url(images/left.png)
left center repeat-y;
}
#right
{
right: 0;
background: url(images/right.png) right center repeat-y;
}
#top, #bottom
{
position: fixed;
left: 0; right: 0;
height: 88px;
}
#top
{
top: 0px;
background: url(images/top.png) top center repeat-x;
}
#bottom
{
bottom: 0px;
background: url(images/bottom.png) bottom center repeat-x;
}
#wrap /*broken - do not use*/
{
margin: 0 0 0 0;
width: auto;
float: left;
text-align: justify;
}
With fixed positioning, you can't specify 'left' and 'right'... only ONE of the two. You can specify top and left, left and bottom, top and right, or right and bottom. Those combinations are fine but 'left' and 'right' are opposites and will not be understood by any browser. Same goes for defining 'top' and 'bottom' in the same style - it will never work.
Bookmarks