Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-15-2005, 07:29 AM   PM User | #1
pinkshiro
New Coder

 
Join Date: Mar 2005
Posts: 85
Thanks: 3
Thanked 0 Times in 0 Posts
pinkshiro is an unknown quantity at this point
Menu Bars & CSS

Hey,

I'm building a vertical menu in CSS. All the links are in an unordered list. The top slice of the menu bar directly above the links is an image.

Should I:

A) Set it up so the first <li> of the unordered list contains the img?

or

B) Place a div directly above the unordered list with the img in it?

What'd you do??
pinkshiro is offline   Reply With Quote
Old 08-15-2005, 11:51 AM   PM User | #2
mark87
Senior Coder

 
Join Date: Dec 2004
Location: Essex, UK
Posts: 2,636
Thanks: 0
Thanked 0 Times in 0 Posts
mark87 is on a distinguished road
Um, I'd probably put the menu in a div, set the background image of the div to the one you want, and add a top margin to the menu to bring the menu items below it.

eg.

<div id="menudiv">
<ul class="menulist">
<li>First Item</li>
<li>Second Item</li>
<li>Third Item</li>
</ul>
</div>

#menudiv { background: url(image.jpg) top center no-repeat; }
ul.menulist { margin-top: 30px; }
__________________
markaylward.co.uk
mark87 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:55 AM.


Advertisement
Log in to turn off these ads.