Menu layout in asp

  You are currently not logged in. You can view the forums, but cannot post messages. Log In | Register

19-Jan-08 19:04
I'm trying to layout my website with a menu bar across the top and have rest of the page that remains visible at all times.

Currently, my menu bar dissapears when you scroll down so what i'm looking to do is create something the replicate a frame. My understanding is that frames should be avoided so i'm trying to do this without using them.

What i would like to do is create a table/row/panel/div etc. with height=(100%-100px)

Is there a way of doing this, or of detecting what display the www user is viewing my page with.

Thanks,

Wingers
26-Jan-08 20:24
Hi Wingers,

I think what you're looking for is maybe something like this?

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

However, I personally find these things a little annoying. I don't think it's such a bad thing for the menu to scroll off the page, since users are used to this behaviour on the vast majority of sites, and if you use these things, you have to be careful about what the menu might cover when re-situated..

I may be wrong =)




--
ELATED : )
http://www.PageKits.com
Professional Website Templates
28-Jan-08 21:54
Thanks Simon but it's not quite what i'm after.

What I want to do is set up a menu across the top of the page that remains visible and then display my web page in the remaining space. Instead of the menu "covering up" anything, it will just be like a border, with a smaller "frame" that displays the main content.

After much internet searching and trial&error testing, I've come across a work around by specifying an older spec in my site.master.

<!DOCTYPE html PUBLIC -//W3C//DTD HTML 3.2 Final//EN "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Now I don't think this is the best, or neatest solution but it does the job. To be honest, I'm not sure what I'm missing out on by using DTD HTML 3.2 but I'm questioning whether it's worth bothering to find a better solution or just run with this?

Are there any significant downsides to programming with an older version of HTML?

Cheers,

Wingers
28-Jan-08 23:18
You don't have a doctype at all by using half a HTML3.2 coupled with half of a xhtml one.


Why not just go to Stu Nicholls site, www.cssplay.co.uk and take a look at the menus there, like The Holy Grill at http://www.cssplay.co.uk/layouts/frame.html for example.

Using what passes for an "older" doctype will cause problems with strict browsers sooner or later.




--
Chris.
So long, and thanks for all the fish.
http://webmaster-talk.eu/
29-Jan-08 08:49
Good find, Mr H!


--
ELATED : )
http://www.PageKits.com
Professional Website Templates

 
New posts
Old posts

Follow Elated