SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Addict
    Join Date
    Aug 2008
    Posts
    328
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    float background url behind another

    For some reason a floated background url (twitter) is hiding behind another background url (facebook). It's on the top right of the page. I tried using a margin to fix it, but can't.

    http://dev.newstartlaw.clients.blinkss.com/

    .Facebook {
    background:url(images/facebook_icon.png) no-repeat;
    padding:7px 7px;
    text-indent:-9999px;
    float:left;
    margin-right:2em;



    }

    What am I missing??

  2. #2
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,466
    Mentioned
    182 Post(s)
    Tagged
    6 Thread(s)
    HI,

    Try adding something like this:

    Code:
    #Social ul{
    margin:0 0 0 1em;
    padding:0;
    list-style:none;
    float:right;
    }
    
    #Social li.Facebook,
    #Social li.Twitter {
    width:30px;
    height:30px;
    padding:0;
    margin:0 10px 15px 0;
    clear:none;
    float:left;
    }

  3. #3
    SitePoint Zealot
    Join Date
    Apr 2010
    Location
    West Kent, UK
    Posts
    118
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Checking your page in the validator it looks like you have some stray </a> tags in the page. That might muck things up a bit?

    I'm no expert.

  4. #4
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,466
    Mentioned
    182 Post(s)
    Tagged
    6 Thread(s)
    The solution I gave fixes the problem the OP mentioned but of course any stray tags should be cleaned up as they may cause problems elsewhere


Tags for this Thread

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
  •