Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
two column layout with fixed navigation bar
Old 03-14-2005, 03:47 AM two column layout with fixed navigation bar
Junior Talker

Posts: 2
Trades: 0
Hello all,

i was trying to work out a two column page with a FIXED left navigation bar. We all know that IE doesn't work well with fixed divs. So i surfed around and find a way to work around this issue. However in IE the scrollbar is in the page itself, so a bit to the left of the right side of the page. I was hoping you could help me out on this issue. Here is the code :

CSS:

code:
--------------------------------------------------------------------------------

body
{
height: 100%;
overflow: auto;
}

#navigation
{
position:fixed;
_position:absolute;
_top:expression(eval(document.body.scrollTop ) );
top:0px;
left:0px;
width: 10em;
margin:0px;
padding:0px;
}
#content
{
margin-left: 10em;
height: 100%;
overflow: auto;
}

--------------------------------------------------------------------------------


HTML :


code:
--------------------------------------------------------------------------------

<?xml version="1.0" encoding="ISO-8859-1"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN""http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta name="description" content="Antenne-Tilburg.nl"> <meta name="keywords" content="%keywords searchengines%"> <link rel="stylesheet" type="text/css" href="test_layout.css" /></head>
<body><div id="overDiv" style="position:absolute; visibility:hidden; z-index:1000;"></div><div id="navigation"> <ul> <li><a href="this.html">This</a></li> <li><a href="that.html">That</a></li> <li><a href="theOther.html">The Other</a></li> </ul> </div> <div id="content"> <h1>WELCOME</h1> <p>Hello there visitor welcome to this page.</p><br/><br/>Welcome to this page. <br/><br/>Welcome to this page. <br/><br/>Welcome to this page. <br/><br/>Welcome to this page. <br/><br/>Welcome to this page. <br/><br/>Welcome to this page. <br/><br/>Welcome to this page. <br/><br/>Welcome to this page. <br/><br/>Welcome to this page. <br/><br/>Welcome to this page. <br/><br/>Welcome to this page. <br/><br/>Welcome to this page. <br/><br/>Welcome to this page. <br/><br/>Welcome to this page. <br/><br/>Welcome to this page. <br/><br/>Welcome to this page. <br/><br/>Welcome to this page. <br/><br/>Welcome to this page. <br/><br/>Welcome to this page. <br/><br/>Welcome to this page. <br/><br/>Welcome to this page. <br/><br/>Welcome to this page. <br/><br/>Welcome to this page. <br/><br/>Welcome to this page. <br/><br/>Welcome to this page. <br/><br/>Welcome to this page. <br/><br/>Welcome to this page. <br/><br/>Welcome to this page. <br/><br/>Welcome to this page. <br/><br/>Welcome to this page. <br/><br/>Welcome to this page. <br/><br/>Welcome to this page. <br/><br/>Welcome to this page.<br/><br/>Welcome to this page. <br/><br/>Welcome to this page. <br/><br/>Welcome to this page. <br/><br/>Welcome to this page. <br/><br/>Welcome to this page. <br/><br/>Welcome to this page. <br/><br/>Welcome to this page. <br/><br/>Welcome to this page. <br/><br/>Welcome to this page. <br/><br/>Welcome to this page.</div></body></html>

--------------------------------------------------------------------------------
pelon is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-14-2005, 08:37 AM
praveen's Avatar
Life is a Dream

Posts: 3,591
Name: Praveen
Location: Chennai, India
Trades: 0
Dont specify the height for the content and then you will get what i think you want.

let know if it works.
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
praveen is offline
Reply With Quote
View Public Profile
 
Old 03-15-2005, 10:54 AM
Junior Talker

Posts: 2
Trades: 0
Well i removed the height: 100%; and overflow: auto; in the content div. It works

BUT!!

when i scroll it seems like the elements positioned in my navigation div MOVE. Not very nice... So what can id do?
pelon is offline
Reply With Quote
View Public Profile
 
Old 03-15-2005, 03:53 PM
praveen's Avatar
Life is a Dream

Posts: 3,591
Name: Praveen
Location: Chennai, India
Trades: 0
thats because you have said this
Quote:
_top:expression(eval(document.body.scrollTop ) );
this will make the menu to always scroll to the top of the page.. thats whats happening to ur page as well.

remove this line and the menu will be static positioned.

let know
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
praveen is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to two column layout with fixed navigation bar
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 2.95493 seconds with 12 queries