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 7174533
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T16:04:30+00:00 2026-05-28T16:04:30+00:00

I have an HTML page with several iframes, each pointing to a text file

  • 0

I have an HTML page with several iframes, each pointing to a text file on the same domain.

Now I have read up quite a bit on when the iframe points to an HTML file, but did not find anything on when it is a text file. And I can obviously not add styling inside the textfiles themselves.

The behavior is that the text content of the iframe inherits the background-color of the parent, but not the color.

Now, when I do the below in the parent HTML doc, the background-color of the content of the iframe is affected.

iframe
{
    background-color: black
}

But again, if I do the below, the text color of the iframe text content remains unaffected.

iframe
{
    color: White;
}

Why?

  • 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-28T16:04:31+00:00Added an answer on May 28, 2026 at 4:04 pm

    If there’s no background-color specified in the document loaded into the iframe, it’ll assume transparent so what you actually see is the background-color of the iframe because CSS applies to the iframe itself, not it’s content.

    So, basically editing the text color you should use another method, this thread has a couple of methods:

    How to apply CSS to iframe?

    There is no official method to modify an iframe’s content so you’re stuck with dirty hacks.

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

Sidebar

Related Questions

I have a C# webbrowser that holds an html page that has several iframes.
I've got several elements on a HTML page which have the same class -
I have an HTML 5 page with several articles. Each article has a custom
I have several embedded iframes on my page and I'm looking for a click
I have HTML page with several frames on it. One of frames(called Main) contains
I have heavy HTML-page with several megabytes of images and scripts. I'd like to
I have several forms in one HTML page... I have to filter these forms
I have several links in an HTML page (say some 100 - 120). What
Assume that I have some HTML page, and a corresponding CSS file. I'd like
I have in an HTML page, an element that appears several times, and running

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.