SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: menu problem

Hybrid View

  1. #1
    SitePoint Guru
    Join Date
    Mar 2006
    Posts
    701
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    menu problem

    I have a menu at the left sidebar of my page.
    So I want at the top of this menu to set an image.
    So I have tis code
    Code:
    <ul><li id="menutittle">menu </li>	
    <li><a href="#">Home</a></li>
    <li><a href="#">Company</a></li>
    ...</ul>
    and I set the css for menutittle
    Code:
     #sidebar #menutittle
     #sidebar #menutittle
    {
    background:  url(images/menu.png) no-repeat ;
    border: none;
    	color: #FFFFFF;
    	 overflow:hidden;
    }
    But now the id menutittle is some pixels up to the other li elements.
    How can I set this element exactly up to the other elements?

  2. #2
    SitePoint Guru
    Join Date
    Mar 2006
    Posts
    701
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I set this anr it worked
    Code:
     padding-bottom:-8.5px;
     margin-bottom:-8.5px;


Bookmarks

Posting Permissions

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