Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Unordered List Css Layout, two rows of list and sublist
Lozbo
post Dec 7 2005, 12:18 AM
Post #1


Super Member
*********

Group: Members
Posts: 282
Joined: 1-September 05
From: Wanatos
Member No.: 11,382



I have a layout which i want to do fully in CSS.

Im having trouble centering the second list, or sublist which comes from the menu. It doesnt work in IE now, just firefox (Actually the page doesnt even show on IE, nor Opera, i dont know why). I just want it to appear centered, when im hovering the main list, not left aligned...

Here's the link, youll understand when you see it...

http://web.cucea.udg.mx/cucea/graphix/level5/

I also want to fix the background, (i removed the background for now) becouse when i hover the sublist items, the background becomes bigger than the div which serves as background after the main list (the sub list is absolutely positioned, but i saw it in a tutorial i think im giving the right use to it, although the layout kinda breaks a little bit when you make the text bigger).

Thanks.
Go to the top of the page
 
+Quote Post
Tyssen
post Dec 7 2005, 01:12 AM
Post #2



***********

Group: Members
Posts: 1,161
Joined: 9-May 05
From: Brisbane, QLD
Member No.: 6,818



QUOTE(Lozbo @ Dec 7 2005, 10:18 AM)
Actually the page doesnt even show on IE, nor Opera, i dont know why).

It's the HTML comment in your JS (<!--) that's killing it in IE. As for why your 2nd level list isn't working, I'm not sure, but you're referencing the wrong ID in your JS - it should be navlist, not nav (but that doesn't fix it).
Go to the top of the page
 
+Quote Post
jlhaslip
post Dec 7 2005, 01:49 AM
Post #3


A computer once beat me at chess, but it was no match for me at kick boxing.
Group Icon

Group: [MODERATOR]
Posts: 4,071
Joined: 24-July 05
From: Linix, DOS and Windows…the good, the bad and the ugly
Member No.: 9,787
Spam Patrol



Lozbo,

One of the concerns that has been mentioned time and time again about Javascript is that there is a large (and getting larger) number of users who have disabled javascript, but still you insist on using it.
If you insist on using it, take notice of the approach taken by this author. He uses Javascript to HIDE the menu, and then display it on mouse-over. If someone has their javascript un-plugged, they will still see the entire range of menu choices on page load. It is only if they have javascript that the menu dropdowns are taken away.

http://tutorials.alsacreations.com/deroulant/

I think this link originally came from Tyssen. Can't remember for sure.
Go to the top of the page
 
+Quote Post
Tyssen
post Dec 7 2005, 02:02 AM
Post #4



***********

Group: Members
Posts: 1,161
Joined: 9-May 05
From: Brisbane, QLD
Member No.: 6,818



QUOTE(jlhaslip @ Dec 7 2005, 11:49 AM)
One of the concerns that has been mentioned time and time again about Javascript is that there is a large (and getting larger) number of users who have disabled javascript, but still you insist on using it.

Actually Jim, using javascript is the only way to get these type of CSS dropdown menus working for IE browsers as they don't (as yet - IE7 might be different) support hover for any element other than the pseudo classes. (It's still a better option that a DHTML menu which is made up solely of javascript.) The other option is to use something like the whatever:hover, but again, it is affected if JS is turned off.
The solution is to make the links that bring up the dropdown menus go to an actual page as well where the submenu links can be accessed by those who can't see the dropdowns.
And no, I didn't provide that link you've given. wink.gif
Go to the top of the page
 
+Quote Post
Lozbo
post Dec 7 2005, 06:30 AM
Post #5


Super Member
*********

Group: Members
Posts: 282
Joined: 1-September 05
From: Wanatos
Member No.: 11,382



Well in the first place, that javascript is not at use, all i want is to show the layout in firefox as desired, ill deal with the js later, but thanx for that tip tyssen (about the html comment, i must have missed it, becouse it was working fine in firefox).

But yes, i was about to say that, tyssen is right about the css menu, the only way to get it done is with js, the alternative could be flash but im reluctant to use it, there are bigger issues about flash than with js and i dont mind much about the people with javascript disabled, see, the people that use this site 98.57 percent has it enabled so... (statistics from google analytics, from november 19 to date: 109,440 do have it, against 1,588 which is 1.43 %, on a site that has over 8000 visitors a day).

As i said, my main concern is about the css look and layout, how could i achieve that? (center the second row and maybe improve its rollover status)...

Thanks again dudes!
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Free Classified Ads--no Hype(6)
  2. Site Layout For My Friend(9)
  3. Css Layout Generator - *free*(5)
  4. Futuristic Web Layout(11)
  5. Layout Size(10)
  6. Adding Rows & Columns In Html Table Using Javascript(1)
  7. Ie And Firefox Layout Differences(11)
  8. A List Of Great Movies!(162)
  9. Free Sms Site(5)
  10. Data Structures -- Linked List(9)
  11. Data Structures -- Linked List -- Reverse(5)
  12. 157 Of The Best Free Software On The Net(7)
  13. Arrays And List Boxes(2)
  14. Website Layout?(3)
  15. Please Can You Review My Blog(3)
  1. Website/blog Layout (circle Design)(2)
  2. Recommended List Of Money Making Sites(0)
  3. Adjusting Rows/cols Of Frames In Frameset Using Javascript Is Not Working In Firefox 3 Is Not Working(4)
  4. Database Or Pdf(3)
  5. A List Of Animals And Their Meaning(1)
  6. Select All Rows With Same Name(7)
  7. Ameran Portals?(1)
  8. List Of Free Games(10)
  9. Top 10 Geek Ways To Beat Boredom(12)
  10. Good Freeware List(6)
  11. Creating A Shortcut List Near The System Tray(4)
  12. Telemarketing Block List - Canada(1)
  13. Trap17 Flex Layout(0)


 



- Lo-Fi Version Time is now: 10th October 2008 - 06:33 PM