Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-04-2005, 06:59 PM   PM User | #1
MadDog88
New to the CF scene

 
Join Date: Nov 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
MadDog88 is an unknown quantity at this point
Switching from Frames - recommendations?

Hi all,

After reading through the majority of the posts, I've decided to eliminate using frames for my site. But now I'm confused on which method to use.

My site is going to be set up with a static left nav bar (150 pixels wide) and a top static banner (100 pixels high).

I read a pretty decent article about SSI include, (saving all of the pages as shtml docs) which seemed to work but I couldn't keep the left bar static if I had a page with content that extended down a ways. And then of course now I can't find where I put the article.

It seems like this would be the easiest method (as opposed to a CSS style) because I already have the html for the nav bar and top banner completed.

Any recommendations or recommended articles? thanks a ton!
MadDog88 is offline   Reply With Quote
Old 03-04-2005, 08:32 PM   PM User | #2
miggsy007
New Coder

 
Join Date: Oct 2004
Posts: 77
Thanks: 0
Thanked 0 Times in 0 Posts
miggsy007 is an unknown quantity at this point
Apply some CSS to it.

Code:
#menu {
position: fixed;
top: 0;
left: 0;
}
This will fix your menu in the top left, no matter how far down you scroll. It doesn't work in IE though, so if you want 95% of the web community to be able to see your site, it's probably not a good idea. I do stuff like this because I hate IE and I always recommend visitors to my site get Firefox.

Other than this, I'm sure there will be a JavaScript technique that will help. STW for 'position fixed javascript ie' and 210,000 pages come up. http://www.howtocreate.co.uk/fixedPosition.html looks to be a good bet.

Miggsy007
__________________
Please visit My Site - Especially if you play CS or DoW.

'Don't worry men, they couldn't hit a bull at this distance.' - Last words of General Patton
miggsy007 is offline   Reply With Quote
Old 03-04-2005, 10:15 PM   PM User | #3
rmedek
Senior Coder

 
Join Date: Nov 2003
Location: Minneapolis, MN
Posts: 2,879
Thanks: 2
Thanked 65 Times in 56 Posts
rmedek is on a distinguished road
Two words: "overflow: auto".

I'm going to assume that it's the scrolling and not the separate files you really want to keep; you can put your content in a div with a set height, and have the excess scroll.

miggsy007's idea is great too, if you're more concerned about the static menu.

Personally, I'd say don't worry about the static menu/frame emulation look.
__________________
drums | web
rmedek is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 02:10 AM.


Advertisement
Log in to turn off these ads.