HTML - iframe CSS

  • Thread starter mtanti
  • Start date
  • #1
172
0
I once read on a tutorial that iframes are useful when you have non technical people writing text files to update a section of your web site, such as a secratery writing the news section.

There are useful because you just upload a plain text text file to a location and the iframe will have it displayed with formatting. Such as colour, font, background, etc.

How do you apply formatting to an iframe that way?

THANKS!
 

Answers and Replies

  • #3
478
2
Yeah if you have PHP you could use "include" to include a stylesheet to the file you're updating. The file can be a plain PHP page with only text and the include command at the top.
 
  • #4
-Job-
Science Advisor
1,146
1
The standard way is to pull the text dynamically from XML or a database and write it to the page via a server-side script, like ASP or PHP. The advantage of this is that you can then, for example, make a form that allows you to "post" new, or edit old, content.

But if you want to use IFrames with CSS, then:
http://www.w3.org/TR/html4/present/frames.html#h-16.5
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/objects/frameset.asp [Broken]
 
Last edited by a moderator:

Related Threads on HTML - iframe CSS

  • Last Post
Replies
11
Views
2K
  • Last Post
Replies
19
Views
958
  • Last Post
Replies
9
Views
739
Replies
3
Views
770
Replies
4
Views
903
Replies
1
Views
2K
  • Last Post
Replies
23
Views
2K
  • Last Post
Replies
17
Views
687
  • Last Post
Replies
0
Views
3K
  • Last Post
Replies
1
Views
1K
Top