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
    Join Date
    Oct 2004
    Posts
    117
    Thanks
    0
    Thanked 0 Times in 0 Posts

    background image uneven with regular image

    Code:
    div.top {
    border: 10px solid #CCCCCC;
    border-bottom-width: 0px;
    padding: 0px;
    background-image: url(menutile.jpg);
    }
    The code above yields this .

    It is uneven with the normal image, though both are the same size. I simply want to tile the bg image to the border even with the normal menu images. What am I doing wrong?

  • #2
    Regular Coder Pepe, the bull's Avatar
    Join Date
    Feb 2005
    Location
    Vancouver, WA
    Posts
    163
    Thanks
    1
    Thanked 16 Times in 16 Posts
    I'm not exact sure how "correct" this code is, but it does the job. Just add this to your css. I only tested it in FF, and it worked there.
    Code:
    div.top img{
    vertical-align: bottom;
    }
    Pepe, the bull


  •  

    Posting Permissions

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