Can you improve on my CSS?

Forums Forums Menus Can you improve on my CSS?

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #958
    Anonymous
    Member

    So I’ve been designing a drop down style over the last few days, but I’ve only got about 1 years worth of experience with CSS. You can check what I’ve created here:

    http://www.raglan.dreamhosters.com/

    I quite like it, but what would be great is if instead of having a fixed height dropdown, it was fluid. At the moment it uses a 250px high png background image which I’ve applied to the element like so:

    #suckerfishnav li ul {height:250px; padding: 20px 10px 10px 10px; background:url(images/dropdown-bg.png) no-repeat;}

    I know the plugin by default has fluid height, but my CSS skills simply aren’t good enough to get the look I want as well as having a fluid height, especially as I’m having to use images to create that look. Incase there are any CSS pros reading this I’ve attached my uncompressed background image here.

    Otherwise, a great plugin Ryan!

    #6782

    This is not an easy problem to fix.

    What you need to do, is to add a background image which shows the top of the dropdown via the top level list item, then you need to display the graphic for the midle and bottom of the dropdown by using a background image on the unordered list of the dropdown.

    Nice to see another Kiwi developer <img decoding=” title=”Smiley” /> Are you going to WordCamp NZ next week?

    #6783
    Anonymous
    Member

    Ha yeah, funny you suggest this method as I was thinking that it could possibly be done that way, but in the end I settled for the easy fix. I’ll see if I can style it as you suggest when I get some time, thanks thou.

    Didn’t know about WorldCamp NZ. Do you have a link?

    #6784

    http://wordcamp.org.nz/

    Myself, Dan Milward and some other NZ developers are presenting talks as are Matt Mullenweg (WordPress founder), Jane Wells (Automattic usability expert) and Sam Bauers (lead bbPress developer).

    #6785
    Anonymous
    Member

    Wow, i had no idea… Raglan tends to be a little sheltered from the world and you can easily miss an event such as that without even knowing. Unfortunately I’ve a flight booked to Queenstown that weekend ; )

    Will consider WorldCamp for another year thou for sure. I’ve only been using WordPress for probably 4-5 months, previously had been working with Joomla!

    Hope your talk goes well Ryan. Its great that your putting time into that and things like this site to help people for little return.

    #6786

    Well hopefully you can make it for the 2010 WordCamp NZ (presuming there is one).

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.