lrsachs
04-27-2005, 06:04 AM
I'm working with some code that I found and modified, learning along the way. This example uses display: table-cell and presents borders on all sides, expandable. The code includes an "inner" div and I'm trying to give it a background color, it doesn't display the way I expect.
http://www.coolpillows.com/test/test_withcontent.htm
I've tried variations on the margin and created a separate class called 'innerbody' that's:
#innerbody{
background:#C6E3B5;
font-color: #CCCCCC;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 75%;
margin-left: -15px;
margin-top: -17px;
padding-left: 30px;
padding-top: 30px;
}
but inner, I suspect is causing the problems.
http://www.coolpillows.com/test/test_withinnerbody.htm
The other thing, which I don't fully understand is the display: table-cell; selector.
#centrecontent {
display:table-cell;
}
This is what happens when you try to take someone else's code and use it for your own purposes. :-(
One last thing, ignore the image on the top of the left nav; that's going to link back home & will make more sense
when I change the image. BTW, you can probably see where I'm headed with the left nav colors & the body matching so it's sort of a tabbed look for each level.
Thanks in advance!
-lee
http://www.coolpillows.com/test/test_withcontent.htm
I've tried variations on the margin and created a separate class called 'innerbody' that's:
#innerbody{
background:#C6E3B5;
font-color: #CCCCCC;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 75%;
margin-left: -15px;
margin-top: -17px;
padding-left: 30px;
padding-top: 30px;
}
but inner, I suspect is causing the problems.
http://www.coolpillows.com/test/test_withinnerbody.htm
The other thing, which I don't fully understand is the display: table-cell; selector.
#centrecontent {
display:table-cell;
}
This is what happens when you try to take someone else's code and use it for your own purposes. :-(
One last thing, ignore the image on the top of the left nav; that's going to link back home & will make more sense
when I change the image. BTW, you can probably see where I'm headed with the left nav colors & the body matching so it's sort of a tabbed look for each level.
Thanks in advance!
-lee