Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6092055
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T12:23:55+00:00 2026-05-23T12:23:55+00:00

This needs to be cross-browser compatible at least with IE 7/8 and the other

  • 0

This needs to be cross-browser compatible at least with IE 7/8 and the other major, current browsers.

I have the following (simplified) HTML:

<div id="facebook">
    <fb:like ...... />
    <fb:comments>
        <iframe .... />
    </fb:comments>
</div>

The IFRAME is added by Facebook but I need to make a display modification to it. How can I use CSS selectors to select “the first IFRAME within the second FB tag under the div with an ID of facebook”? I need to add height and overflow CSS attributes to the IFRAME.

If this is not possible with CSS in a cross-browser compatible fashion, what would the approptiate jQuery selector be? Might help to have both anyways if someone wants to answer both scenarios but my preference is for CSS.

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T12:23:56+00:00Added an answer on May 23, 2026 at 12:23 pm

    Those are not fb elements, they are like and comment elements in the fb XML namespace.

    The W3C way to do all this is to declare the namespace in your stylesheet and use special selector syntax with it as shown in this answer. But as you’d expect, IE has no idea what I’m talking about, so as an alternative you can treat the namespace as part of the element name, resulting in fb:like and fb:comment instead. Since : is a special character in CSS selectors (pseudo-classes and pseudo-elements), you simply escape it with a backslash for it to be seen literally.

    This CSS selector should work in IE7+ and other browsers:

    #facebook fb\:comments iframe:first-child {
        /* Styles */
    }
    

    jQuery does not currently implement namespaces in its selector engine, so you can drop that selector right in if you need to use it for scripting.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have below code. I want to convert this as cross browser compatible. As
So I have a situation like this: A needs to call B service and
I have this batch that needs to run that the user has to execute
I am on the stage where I need to make my website cross-browser compatible.
I need help figuring out the best, cross-browser compatible way to SAVE user input
I am having difficulty finding a cross-browser-compatible, Javascript-based method to attach a function to
I'm getting back into the wild world of cross browser compatibility, and have come
What would be the most rational, cross-browser compatible way to create an element which
I got a textarea of 680 pixels wide. This needs to be made fluid
How does one create Dynamic CSS and JavaScript On-The-Fly (using PHP). This needs to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.