Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder UrbanTwitch's Avatar
    Join Date
    Apr 2006
    Posts
    485
    Thanks
    44
    Thanked 1 Time in 1 Post

    LI OL Style not working

    http://sodadome.com/

    Go there in the green menu there should be: after every word.

    So I go to style css and here is the css:

    Code:
    #greenmenu ol li {
    		background: url(sep.png) no-repeat 100% 100%;
    		padding-bottom: 7px;
    		padding-right: -1px;
    		padding-left: 0px;
    		margin-left: 10px;
    		}
    and here is HTML

    Code:
    <div id="greenmenu">
    <ol><img src="gsep.png" border="0" height="4px" width="10px" style="float:left;"><li><a href="http://sodadome.com">Home</a></li>
    	 <li><a href="http://sodadome.com/gallery">Gallery</a></li>
    	 	 <li><a href="http://sodadome.com/aboutme">About Me</a></li>
    	 <li><a href="http://sodadome.com/aboutsite">About Site</a></li>
    	      <li><a href="http://sodadome.com/contact">Contact Me</a></li>
    	 </ol>
    	 
    
    	 
    	<?php
    if($logged[id]) {
    //welcomes the member
    echo "<font color=white ><b>Welcome <a href=http://sodadome.com/members.php?user=$logged[username]>$logged[username]</a> (<a href=http://sodadome.com/logout.php?logout>Logout</a>)</b></font>";
    }
    else {
    echo "<a href=http://sodadome.com/login.php>Login</a> or <a href=http://sodadome.com/register.php>Register</a>"; } ?>  
    
    
    </div>
    What's wrong?
    Formerly MysticScript

    6+ years club

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Its because the stylesheet looks for the image in the temp2 folder but its in the root of the site so try
    Code:
    background: url(/sep.png) no-repeat 100&#37; 100%;
    And you can't have negative padding.
    Last edited by _Aerospace_Eng_; 07-14-2008 at 05:01 AM.
    ||||If you are getting paid to do a job, don't ask for help on it!||||


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •