0
Welcome Guest! Login
0 items Join Now

splitmenu alignment question

  • splitmenu alignment question

    Posted 18 years 3 months ago
    • Hello. Let's see if I can explain this situation right. Ok..I am trying to setup a horizontal menu, I am using a solid image for the area that the menu items will be sitting in. A bar across the screen. What I am trying to figure out is if there is a way to center justify the links in that bar. I am trying to make it so the bar will look the same for all screen resolutions, as it is now, if your resoution is larger than what the page is made for, then you just have a large part of the menu bar with no text in it. Any hints on how I can center the menu text links on the bar?

      Thanks,
      David Henderson
  • Re: splitmenu alignment question

    Posted 18 years 3 months ago
    • Ok, does nobody know how to do this? OR does nobody understand what I am asking? Let me know so I can clarify if I need to please:)
      Basically what I am trying to do is sort of like text-align: center; However since the menu is not a block element, that won't work..so is there some other command that does that for these types of elements?It has a beige bar for a background , but the text is left aligned, I need it centered.

      Thanks,
      David Henderson

      p.s. well, after googling for an answer, I found a way to center the menu like I want, by adding display: table; and margin:0 auto; to the #nav element. However, this had the unwanted side effect of making the background image hug the menu and no longer stretch across the whole area like I wanted it to. Any advice yet?:)
    • Last Edit: 18 years 1 month ago by William E Dooley.
  • Re: splitmenu alignment question

    Posted 18 years 3 months ago
    • Ok I figured it out, i added the display: table; and margin o auto; to the #nav ul instead of the nav:)

Time to create page: 0.057 seconds