Skip navigation
Currently Being Moderated

2nd row of navigation matrix

Jul 10, 2012 2:20 PM

Tags: #image #adobe #mac #cs5.5 #code #html5 #dw

I need a bit of guidance as to how I make my navigation matrix work on the second row of my test html setup. I want to make it roll over just like the top row. I'm thinking I may need another set of rules for the second row li and li a.

 

Here's the test page:

http://www.lash-it.com/navtop.html

Branched to a new discussion.
 
Replies
  • Currently Being Moderated
    Jul 10, 2012 3:57 PM   in reply to kcfi

    Seems like you still only have to shift the image the same distance up for the second row as for the first row, because the second hover row is the same offset from the second link row as the first hover row is from the first link row.

     

    Yes, you should need to add styles that cover the position of the second row images.

     

    Beth

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 11, 2012 5:20 AM   in reply to kcfi

    kcfi wrote:

     

    Can you see anyway to simplify the code?

    Yes, much simpler. Use real links rather than text embedded in images. I've done a quick mockup here: http://foundationphp.com/test/lashit.html.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 11, 2012 6:25 AM   in reply to kcfi

    Sure, go ahead. You might want to make your background images a bit larger or cut down the amount of text in the links, because there's a danger that the text might spill out.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 11, 2012 6:32 AM   in reply to kcfi

    You can add it to the beginning of a font stack, using the Font Manager, to create a font-family rule like this:

     

    font-family: "CG Omega", Tahoma, Geneva, sans-serif;

     

    People who have the font will see the one you want. Those who don't will see Tahoma, Geneva, or a generic font.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 11, 2012 1:46 PM   in reply to kcfi

    True, you can use smaller font-sizes, but some people have their browsers set to display bigger fonts in order to see better.  This defeats your menu styles.   Another approach is to use CSS to style your "buttons" (no images required).

    http://alt-web.com/DEMOS/CSS-Horiz-menu-2.shtml

     

    The upside to this is that your page loads a bit faster without images.  And when text size is increased (even aggressively) the buttons remain intact.

     

    The downside to this is that CSS rounded borders don't work with gradient filters in IE.   If this is a deal breaker, stick with your images.

     

     

    Nancy O.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 11, 2012 2:56 PM   in reply to kcfi

    Use Zoom, Text Only.  Or manually set your browser's default font-size to 22 and notice what happens.  See screenshot.

     

    Lash-it.jpg

     

    I only mention this because many people MUST use increased font-sizes, especially on larger displays where text that is less than 18 - 22px is too tiny to read.

     

     

    Nancy O.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points