triskellian: (cartoon me ibook)
[personal profile] triskellian
I mentioned on [livejournal.com profile] secretrebel's journal earlier today that I'd been playing with a new CSS trick. [livejournal.com profile] chrisvenus and [livejournal.com profile] wimble both asked what it was, and I said I'd post the details here.

It's a nice method of making drop-down menus with CSS... I found the technique at A List Apart, but that only worked with two levels of nested menus. I've now fiddled with the stylesheet to make it work with three levels.

The working version is here, and this is the CSS. The 'leftcol' div needs to appear after the 'content' div in the HTML, to make sure that the expanding menus display over the top of the content div.

(To work with IE, the technique requires a teensy bit of Javascript, which is documented on the ALA page. I didn't include it, because I'm working on pages only I will use, and I never use IE.)

Date: 2004-07-07 11:16 am (UTC)
chrisvenus: (Default)
From: [personal profile] chrisvenus
I was wondering if you really needed the third level classes to be different but I decided I didn't have time to go playing with the CSS.

Though that does remind me, since you seem to be a CSS whizz would you by any chance know off the top of your head how I can get some stuff to stick to the bottom of my browser window? Basically a table like structure which has "footer" information in it and currently it bounces up and down according to page length so I want to stick it to the bottom of the window if possible. I supect this should be possible with the CSS positioning but I've not played iwth it much and I wondered if you had...

Don't worry about it too much if you can't just say "Oh, yeah, do this." but I thought I should ask rather than spending hours and finding that you could have told me in 2 minutes... :)

April 2013

S M T W T F S
 123456
78910111213
141516171819 20
21222324252627
282930    

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Feb. 28th, 2026 04:51 am
Powered by Dreamwidth Studios