SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: (IE bug in Facebook Iframes; Scrollbar bug) Need help to fix my html/css button

  1. #1
    SitePoint Member
    Join Date
    Feb 2013
    Posts
    3
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    (IE bug in Facebook Iframes; Scrollbar bug) Need help to fix my html/css button

    The code works fine in JSFIDDLE, both in Mozilla and IE, but when I paste this code in my facebook iFrames tab, I get crazy scroll down in IE/Chrome (Mozilla works fine just like in JSFIDDLE).



    Can you help me to fix it, please?

    iFrames in facebook is just an app that let you paste any content (HTML,CSS,Java) that will be surrounded by facebook frame. Look at the screenshots below:

    http://i.imgur.com/vn8PCP5.jpg

    http://i.imgur.com/xyReKvK.jpg

    JSFIDDLE Link
    http://jsfiddle.net/cRqhT/127/

    The same code in Facebook iFrames
    http://www.facebook.com/podstrigis/app_201742856511228

    HTML
    Code:
    <html>
        <body>
            <div>
    <a id="button" href="http://mysite.com"></a>
                </div>
            </body>
        </html>
    CSS
    Code:
    div {
        width: 810px;
        height: 810px;
        background: url('https://gator1174.hostgator.com/~mskparik/facebook/thx.jpg')
    }
    
    #button{
      display: block;
        width: 204px;
        height: 116px;
        background: url(https://gator1174.hostgator.com/~mskparik/facebook/111.png) no-repeat top left;
        position: absolute;
        top: 70%;
        left:5%;
    }
    #button:hover {
        background: url(https://gator1174.hostgator.com/~mskparik/facebook/222.png) no-repeat top;
        }

  2. #2
    SitePoint Member
    Join Date
    Feb 2013
    Posts
    3
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Nvm...

    I got it fixed.

  3. #3
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    14,357
    Mentioned
    64 Post(s)
    Tagged
    1 Thread(s)
    Hi @msk1 ; welcome to the forums

    For the benefit of others, what/how?

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
  •