Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Aligning a nav/menu with an img (or vice versa)

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #44023
    HHispañola
    Member

    more rook q?s.

    Working on a menu that has a 100×100 img on left and a nav/text menu along it’s right.
    I’m trying to have the menu/text align along the center of the img. By default, they’re aligning along the top margin.
    I originally had it all in the nav menu and when I stuck a line height, i got a clickable area on the menu items the size if the img.
    I then split the two, and floated the menu right, img left, and gave the menu a top margin to *solve* the problem. But I feel like I just cheated. hehe.

    There must be a simple and proper way of writing that out to get desired effect. Again, apologies for the likely simple questions. This is new to me.

    as always, many thanks for your time

    #131372
    Paulie_D
    Member

    >I then split the two, and floated the menu right, img left, and gave the menu a top margin to solve the problem. But I feel like I just cheated.

    Nope…works for me…what’s wrong with top-margin? That’s what it’s for.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.