C
Clive Quinn
Hi,
I have a CSS style question which I hope someone can assist me with.
Basically I am trying to convert my web page from frames to fixed
positioning in CSS.
Now I am trying to achieve the following in CSS:
#header {
display: block;
position: fixed;
width: 100%;
height: 15%;
top: 0;
right: 0;
bottom: auto;
left: 0;
}
#sidebar {
display: block;
position: fixed;
width: 10em;
height: auto;
top: 15%;
right: auto;
bottom: 100px;
left: 0;
}
#main {
display: block;
position: fixed;
width: auto;
height: auto;
top: 15%;
right: 0;
bottom: 100px;
left: 10em;
}
#footer {
display: block;
position: fixed;
width: 100%;
height: 100px;
top: auto;
right: 0;
bottom: 0;
left: 0;
}
Now within my html code I have the following:
<div class="main">
<img class="MainPics" src="My.jpg" alt="My.jpg">
</div>
<div class="sidebar">
Some links here
</div>
Now whenever I view the page in IE6 I can see the image appear in the center
of the page which is what I want but the sidebar links will appear
underneath the image on the left hand side of the screen.
My problem is that I want to position these links beside the image on the
left hand side of the screen. I seem to be missing something in my style
sheet but when I view the page in Netscape 7 it seems to be fine.
Any body any ideas.
Cheers
Clive
I have a CSS style question which I hope someone can assist me with.
Basically I am trying to convert my web page from frames to fixed
positioning in CSS.
Now I am trying to achieve the following in CSS:
#header {
display: block;
position: fixed;
width: 100%;
height: 15%;
top: 0;
right: 0;
bottom: auto;
left: 0;
}
#sidebar {
display: block;
position: fixed;
width: 10em;
height: auto;
top: 15%;
right: auto;
bottom: 100px;
left: 0;
}
#main {
display: block;
position: fixed;
width: auto;
height: auto;
top: 15%;
right: 0;
bottom: 100px;
left: 10em;
}
#footer {
display: block;
position: fixed;
width: 100%;
height: 100px;
top: auto;
right: 0;
bottom: 0;
left: 0;
}
Now within my html code I have the following:
<div class="main">
<img class="MainPics" src="My.jpg" alt="My.jpg">
</div>
<div class="sidebar">
Some links here
</div>
Now whenever I view the page in IE6 I can see the image appear in the center
of the page which is what I want but the sidebar links will appear
underneath the image on the left hand side of the screen.
My problem is that I want to position these links beside the image on the
left hand side of the screen. I seem to be missing something in my style
sheet but when I view the page in Netscape 7 it seems to be fine.
Any body any ideas.
Cheers
Clive