creating a vertical css menu with images

Get help on web editors (Frontpage, Dreamweaver) and web languages (HTML, ASP, PHP).
Post Reply
CesarePlay
Registered User
Posts: 10628
Joined: 26 Mar 2007, 02:00
Location: In the river of thoughts
Contact:

creating a vertical css menu with images

Post by CesarePlay »

I need help to create a vertical css menu using images and an unordered list. I have tried google but nothing on vertical menus only for horizontal which I can do.

This menu has to be vertical as there are many links (12 in fact) and it must be images because the font does not render the same in Firefox and IE. Can anyone help with this? I create websites without using tables and using li properties seems the best bet to do this menu. I can place and image for the menu in the li in the code but then I can't use rollovers so I am hoping for an alternative way to get this menu working.
Image
maxxis
Moderator Emeritus
Posts: 8307
Joined: 30 Jun 2004, 02:00
Location: ( . Y . )
Contact:

Re: creating a vertical css menu with images

Post by maxxis »

How much different is the font that gets rendered?

What font is used?
CesarePlay
Registered User
Posts: 10628
Joined: 26 Mar 2007, 02:00
Location: In the river of thoughts
Contact:

Re: creating a vertical css menu with images

Post by CesarePlay »

maxxis wrote:How much different is the font that gets rendered?

What font is used?
The difference is very bad. In IE the menu is near the tmiddle bottom and in Firefox the font is right at the bottom. I used Helvertica, Arial and sans-serif at font size 12pt. I tried pixels and that did not work and neither did em . I also tried line-height
Image
maxxis
Moderator Emeritus
Posts: 8307
Joined: 30 Jun 2004, 02:00
Location: ( . Y . )
Contact:

Re: creating a vertical css menu with images

Post by maxxis »

Use 12px and set the line height using !important for FF.

Code: Select all

/* Root Menu */
ul#navmenu a {
  border: 0px solid #FFF; 
  padding: 0 7px;
  display: block;

  font: bold 10px/22px Verdana, Arial, Helvetica, sans-serif;
  text-decoration: none;
  height: auto !important;
  height: 1%; /*For IE*/
  background-image:url(img/bg.gif);
  
  width: 158px !important; /*For KHTML*/
  width: 100%; /*For IE*/
}
Something like that
CesarePlay
Registered User
Posts: 10628
Joined: 26 Mar 2007, 02:00
Location: In the river of thoughts
Contact:

Re: creating a vertical css menu with images

Post by CesarePlay »

Ok. Thanks. I will try that.
Image
Post Reply