http://londonlabs.co.uk/test/
I have a DIV that I would like to be 20px from the top, right and bottom edges of the page. It is the DIV on the right of this page:
http://londonlabs.co.uk/test/
At the moment it is cutting off any content that is off the page so to speak (do ctrl + a to highlight missing text).
This is my body CSS code:
Code:
body {
background-image: url(images/bg-new.JPG);
background-repeat: repeat;
background-color: #00CCFF;
background-attachment: fixed;
margin: 0px;
padding: 0px;
height:100%;
}
This is the code for the DIV:
Code:
#websites {
border: 1px solid #7F7F7F;
width: 300px;
padding: 1px 5px;
font-family: Tahoma, Arial, sans-serif;
font-size: 12px;
font-weight: normal;
color: #7F7F7F;
line-height: 140%;
letter-spacing: normal;
text-align: left;
vertical-align: top;
position:absolute;
right:20px;
top:20px;
bottom:20px;
background-color: #FFFFFF;
}
Different things are happening in IE6 & FF1.5 but neither are displaying it as I would like.
If you resize your browser window and refresh the page the DIV changes size. Is there anyway to keep it 20px from the top, bottom and right even if the screen is resized and still keep the content in it visible?
Any ideas?
Thanks.
Last edited by Joe3000; 04-11-2007 at 08:31 AM..
Reason: added addtional content
|