|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
div background colour in IE
hey all,
i've made a page with two divs for layout - one is the navigation and the other is content. the navigation is supposed to be a blue bar that extends down the length of the page. the content area needs to be plain white. the colour extends down to the botttom as required in firefox, but in IE the colour stops when the content text ends. the rest of the div is white. using height: 100%; doesn't help either. does anyone know how to get around this in IE? and on a slightly different note, uis there a way to make the navigation div fixed in position while the content div can be scrolled? all help is appreciated ![]() ~magda~ |
|
#2
|
||||
|
||||
|
hi...
i hope it helps: Code:
<style type='text/css'>
.navigation {
position: absolute;
top: 0px;
left: 0px;
height: 100%;
width: 100px;
background-color: #4400AA;
color: #FFFFFF;
}
.content {
position: absolute;
top: 0px;
left: 110px;
height: 100%;
width: 690px;
background-color: #FFFFFF;
color: #4400AA;
overflow: auto;
}
</style>
goes like this: Code:
<div class='navigation'> link 01<br> link 02<br> link 03<br> ... </div> <div class='content'> this is where goes the content... helps?<br> ...<br>...<br>...<br>...<br>...<br>...<br>...<br>...<br> ...<br>...<br>...<br>...<br>...<br>...<br>...<br>...<br> ...<br>...<br>...<br>...<br>...<br>...<br>...<br>...<br> ...<br>...<br>...<br>...<br>...<br>...<br>...<br>...<br> ...<br>...<br>...<br>...<br>...<br>...<br>...<br>...<br> works? </div> |
![]() |
| Viewing: Dev Articles Community Forums > Web Design > Advanced Web Development > div background colour in IE |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|