It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming CSS Forum

Trouble with margin list

Trouble with margin list

Postby sator75 on Mon Jun 30, 2008 6:28 pm

Hi everybody,

i'm experiencing a prb with a margin list. This is the html:

<div id="menu-btn">
<ul id="ul-menu-nav">
<li><a href="http://www.google.com"
target="_blank">ciccio</a>
</li>
<li><a href="http://www.google.com"
target="_blank">ciccio</a>
</li>
</ul>
</div>

this is the css code:

#menu-btn {
float:left;
background-image:url(immagini/sfondo-menu-nav.jpg);
background-repeat:repeat-y;
width: 211px;
height:auto;
}

#ul-menu-nav {
list-style-type:none;
width:180px;
margin:0;
padding:0;
}

#ul-menu-nav a {
text-decoration:none;
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:14px;
width:211px;
margin-left:40px;
/*text-indent:20px;*/
}

The prb is that the visualization in the browser is different infact the margin from the left is different as you can see from the following image
(the first firefox3, IE6 the second):

Image

Image

I need the list items to be placed right after the blu raw (created repeating y the file "sfondo-menu-nav.jpg"on the left because there'll be submenus.
Someone knows how to solve this problem?
Can you also tell me if the code is clear and correct.
Thx.
sator75
 
Posts: 9
Joined: Sun Jun 08, 2008 5:12 pm

Postby rangana on Tue Jul 01, 2008 12:14 am

First, you should provide us at least a complete reference of your code, and that includes a proper DTD on your page.

Secondly, could you provide a link since you're dealing with image.
User avatar
rangana
500+ Club
 
Posts: 935
Joined: Wed Feb 27, 2008 5:14 am
Location: Cebu City Philippines


Who is online

Users browsing this forum: No registered users and 0 guests