I am so fed up with CSS right now. :-(
I'm trying to avoid frames so I can get w3 to validate the webpage. Here's what I've been trying to do:
---------------------------------------------------
| top_1 |
---------------------------------------------------
| top_2 |
---------------------------------------------------
| | |
| | |
| | |
| | |
| left- | |
| middle | right-middle |
| | |
| | |
| | |
| | |
| | |
| | |
|---------|----------------------------------------
| bottom |
---------------------------------------------------
I want to force top_1 top_2 to be 25 & 32px.. bottom 20px.. and have the left-middle & right-middle expand the rest of the frame. I can get it to work if i use % for top_1 & top_2 and bottom with % but can't seem to get it to work if i specify a pixel # for them. Can anyone tell me how to do it? Here's what I have for my css:
#top_1 {
width: 100%;
height: 25px;
background: white;
color: black;
overflow: hidden;
position: fixed;
top: 0;
right: 0;
bottom: auto;
left: 0;
}
#top_2 {
width: 100%;
height: 32px;
background: white;
color: black;
overflow: hidden;
position: fixed;
top: 25px;
right: 0;
bottom: 0;
left: 0;
}
#left-middle {
width: 180px;
height: auto;
float: left;
background: black;
color: black;
overflow: hidden;
position: fixed;
top: 57px;
right: auto;
bottom: 20px;
left: 0;
}
#right-middle {
width: auto;
height: auto;
float: right;
background: #333366;
color: black;
overflow: hidden;
position: fixed;
top: 57px;
right: 0;
bottom: 20px;
left: 0;
}
#bottom {
width: 100%;
height: 20px;
position: fixed;
background: red;
color: #FF0000;
overflow: hidden;
top: auto;
right: 0;
bottom: 0;
left: 0;
}
I'm trying to avoid frames so I can get w3 to validate the webpage. Here's what I've been trying to do:
---------------------------------------------------
| top_1 |
---------------------------------------------------
| top_2 |
---------------------------------------------------
| | |
| | |
| | |
| | |
| left- | |
| middle | right-middle |
| | |
| | |
| | |
| | |
| | |
| | |
|---------|----------------------------------------
| bottom |
---------------------------------------------------
I want to force top_1 top_2 to be 25 & 32px.. bottom 20px.. and have the left-middle & right-middle expand the rest of the frame. I can get it to work if i use % for top_1 & top_2 and bottom with % but can't seem to get it to work if i specify a pixel # for them. Can anyone tell me how to do it? Here's what I have for my css:
#top_1 {
width: 100%;
height: 25px;
background: white;
color: black;
overflow: hidden;
position: fixed;
top: 0;
right: 0;
bottom: auto;
left: 0;
}
#top_2 {
width: 100%;
height: 32px;
background: white;
color: black;
overflow: hidden;
position: fixed;
top: 25px;
right: 0;
bottom: 0;
left: 0;
}
#left-middle {
width: 180px;
height: auto;
float: left;
background: black;
color: black;
overflow: hidden;
position: fixed;
top: 57px;
right: auto;
bottom: 20px;
left: 0;
}
#right-middle {
width: auto;
height: auto;
float: right;
background: #333366;
color: black;
overflow: hidden;
position: fixed;
top: 57px;
right: 0;
bottom: 20px;
left: 0;
}
#bottom {
width: 100%;
height: 20px;
position: fixed;
background: red;
color: #FF0000;
overflow: hidden;
top: auto;
right: 0;
bottom: 0;
left: 0;
}