Click to See Complete Forum and Search --> : Floating Navbar


aommaster
12-26-2005, 02:10 AM
Hi guys!

I am totally unfamiliar with CSS, so, please, if possible, make your replies a litle simple :)

I have absolutely no knowledge about CSS except that it is extremely simple and neat. I have a Navbar as an HTML page (which I designed in Macromedia Fireworks). I would like to know how to either:

1.Create a frames page with CSS and not with HTML so that it behanves like a normal frames page.

Questions about this:
a)Are more browser's compatible with CSS than HTML frames?
b)When a link is linked on a CSS generated frame, does the whoel window reload? That is, do both frames reload (while the other changes to the page you clicked to)?

2.Create a floating html page using CSS. So, I can use this script to float my Navbar, thus behaving similarly to a frame.

I had tried to use html to generate a frame, but had encountered a problem when doing this because the popup menu went underneath the frame. You can read more about my problem in the Dreamweaver/frontpage forum. In fact, it hasn't been answered yet.

I'd really prefer to do the option 2, if possible.

Thanks a lot guys!

JDM71488
12-26-2005, 02:29 AM
html is to markup your data.
css is to design your markup.

you cannot use css to create a "frames" page. all css does is let you define how your (x)html tags will be presented...

if you want a frames page (i'd advise against it) then you'll have to use the typical <frameset> tags and whatnot...

im not sure what you mean by "floating"... it just hovers in the same spot when you scroll through the page? if so, try dhtml (javascript)... if not let me know so i can help... :)

aommaster
12-26-2005, 02:43 AM
Thanks JDM! I didn't know that about CSS!

I was advised against using HTML frame pages because of the lack of broswer support from that.

I think I will need to attempt the floating navbar then.

Yes, I want to be floating, let's say at the bottom of the page. Do I have to use DHTML for this? Or is there an alternative? Again, the reason I am a bit worried about using it is because of the lack of browser compatibility.

thanks for your time

JDM71488
12-26-2005, 03:03 AM
i googled: "cross browser dhtml floating menu"

and found: http://www.dynamicdrive.com/dynamicindex1/staticmenu.htm

something like that? id suggest learning javascript... i never really messed with it since it is client-side, but with all of the dom and ajax around i may need to start looking into some of it...

aommaster
12-26-2005, 03:11 AM
Thanks for the link. I had spotted that a little while ago on the internet. I see that it uses a bit of javascript. If I use this, and someone has Javascript disabled on his webbrowser, would the script actually work?

If it doesn't, then it may cause a bit of a problem. Especially since my site won't really be that popular in the first place (it's a place where I will be advertising my services as a magician, and selling some of my effects). Therefore, only people that are really interested would take the time to have a look. If they have Javascript disabled, it would further reduce my traffic, and I think I may be better off using no frames, no javascript, and just designing a plain and simple web page.

Any ideas?

Thanks

JDM71488
12-26-2005, 03:23 AM
that's why i never got into any client-side scripting language because they can turn it off... im sure there is a way to make a menu viewable even if JS is off. you could probably let the js code load a seperate stylesheet for the menu (probably a list). if the js code doesn't load it then your regular stylesheet could display it like a regular static menu. seeing is how i've never done it, idk.

i would say to definately not use frames, and find out more about javascript and decide for yourself. im baised in that sense... i don't like it using it, but i know jeremy keith is pretty knowledgable about it ( http://www.adactio.com ).

im sure more people will chime in tomorrow sometime.

aommaster
12-26-2005, 03:36 AM
Thanks a lot for your time JDM!