Post by Captain Niobe on Oct 18, 2010 19:20:54 GMT -8
I posted here ages back in regard to a particular DHTML navigation menu I'm using on one of my sites. The same menu is used on the website and the ProBoards forum I'm using for that website.
One of the issues that has always bugged me about that menu is, on some pages, it pops out to the left. I had to code very carefully to ensure the thing looked like it was in a table cell, even though it's not (can't figure out why it can't be either... Does all sorts of weird things when it is lol). This, unfortunately, means I have to manually elongate the cell it's sitting over every time I add a new menu item. But that's no biggie, the table is remoted in anyways (for that very reason).
To this day, on some pages, that menu pops out to the left, and I think I've just figured out what's causing it. I seem to remember, oh-so-long ago, needing to adjust the relative positioning on it on order for it to display where I wanted it to. The point at which it is displayed never moves up or down, no matter what (vertical axis?). But the side to side is a problem. On pages in which no scrollbar appears, the entire site, of course, moves slightly to the right, as there's no need for a scrollbar because the page isn't long enough for it. And that's when the issue occurs. The menu pops out of alignment with the box it's over (that I wish I could put it in), shifting left to roughly half the width taken by the scrollbar to the right of the browser window when the page needs a scrollbar to view content currently off the bottom of the page.
To me, with my very limited knowledge of anything but HTML or CSS, it looks like the relative positioning side-to-side is based on the edge of the page. And I more or less just confirmed it - I narrowed a page down so content was forced to push down and bring in that scrollbar - and the navigation menu just popped back to where it's supposed to be.
Now, in order to correct this, I'm assuming I need to set a base point along a part of the body content - in this case, not actual content, but the invisible outer table I used for spacing. There is no difference, scrollbar versus no scrollbar, in the width between the hidden table and the edge of the cell the navigation menu is, therefore the menu will never pop out to the left.
But my problem is... I don't know how the heck to do it... lol... With help, I set the vertical axis (I think it is) ok, like I said, the menu never goes out of place up or down... It's just doing it for the side to side positioning that I can't figure out...
(Well, ok, this coding is something I can't yet figure out period, but I am, for the most part, making it do what I want within its limits... Unless you're talking about the navigation menu opening behind YouTube videos, but I might already have a solution to that, too... lol...)
This is the site in question:
slowdownstupid.niobe132004.net
This is the forum associated with the site (which will need the same adjustment):
slowdownstupid.proboards.com
Any help with this will be greatly appreciated. Let me know if you need the coding for the DHTML menu (it's in via remote and I think it's marked in the source).
Thank you very much in advance. Here's hoping this bugging bug (pun intended) can be fixed quickly.
- Niobe.
;D
One of the issues that has always bugged me about that menu is, on some pages, it pops out to the left. I had to code very carefully to ensure the thing looked like it was in a table cell, even though it's not (can't figure out why it can't be either... Does all sorts of weird things when it is lol). This, unfortunately, means I have to manually elongate the cell it's sitting over every time I add a new menu item. But that's no biggie, the table is remoted in anyways (for that very reason).
To this day, on some pages, that menu pops out to the left, and I think I've just figured out what's causing it. I seem to remember, oh-so-long ago, needing to adjust the relative positioning on it on order for it to display where I wanted it to. The point at which it is displayed never moves up or down, no matter what (vertical axis?). But the side to side is a problem. On pages in which no scrollbar appears, the entire site, of course, moves slightly to the right, as there's no need for a scrollbar because the page isn't long enough for it. And that's when the issue occurs. The menu pops out of alignment with the box it's over (that I wish I could put it in), shifting left to roughly half the width taken by the scrollbar to the right of the browser window when the page needs a scrollbar to view content currently off the bottom of the page.
To me, with my very limited knowledge of anything but HTML or CSS, it looks like the relative positioning side-to-side is based on the edge of the page. And I more or less just confirmed it - I narrowed a page down so content was forced to push down and bring in that scrollbar - and the navigation menu just popped back to where it's supposed to be.
Now, in order to correct this, I'm assuming I need to set a base point along a part of the body content - in this case, not actual content, but the invisible outer table I used for spacing. There is no difference, scrollbar versus no scrollbar, in the width between the hidden table and the edge of the cell the navigation menu is, therefore the menu will never pop out to the left.
But my problem is... I don't know how the heck to do it... lol... With help, I set the vertical axis (I think it is) ok, like I said, the menu never goes out of place up or down... It's just doing it for the side to side positioning that I can't figure out...
(Well, ok, this coding is something I can't yet figure out period, but I am, for the most part, making it do what I want within its limits... Unless you're talking about the navigation menu opening behind YouTube videos, but I might already have a solution to that, too... lol...)
This is the site in question:
slowdownstupid.niobe132004.net
This is the forum associated with the site (which will need the same adjustment):
slowdownstupid.proboards.com
Any help with this will be greatly appreciated. Let me know if you need the coding for the DHTML menu (it's in via remote and I think it's marked in the source).
Thank you very much in advance. Here's hoping this bugging bug (pun intended) can be fixed quickly.
- Niobe.
;D