TeamPhotoshop
Reviews, updates and in depth guides to your favourite mobile games - AppGamer.com
Forum Home Latest Posts Search Help Subscribe

Changing font and colour in iframes?

Page: 1 Reply
Oct 31st 2003#127188 Report
Member since: Jul 19th 2003
Posts: 810
How can i change the font and the font colour in an i frame?

should i use css? if so..... where should i put it?!

Marc
Reply with Quote Reply
Oct 31st 2003#127189 Report
Member since: Apr 5th 2001
Posts: 2544
inside the iframe you use just a normal html/php/asp page... so just edit that source page normally. Css will be good.
Reply with Quote Reply
Oct 31st 2003#127195 Report
Member since: Feb 7th 2002
Posts: 1564
Yupp. You don't edit the iframe itself, but the page that is to show up within the iframe.

If you ie have your page.htm to show up within the iframe, it is that page you edit, ok ?

And if you want the text to be different from the other outside the iframe, I suggest you do several css's, so to speak. Do one for the index page and one for the iframe content pages, and the point to index css on the index page, and in every page that is to show up in the iframe, you point to iframe_css...
Reply with Quote Reply
Oct 31st 2003#127201 Report
Member since: Jul 19th 2003
Posts: 810
thanks... i understand
Reply with Quote Reply
Oct 31st 2003#127232 Report
Member since: Mar 18th 2001
Posts: 6632
Or instead of making people download two CSS files, you can just use classes to make a different font.

Text outside iFrame...

< p>text here< /p>

inside iFrame

< p class="iframe">text here< /p>


Then in your css you'd have:

p {stuff here}

p.iframe {stuff here}

Or you could put a div around everything in the iframe...

Like this:

< div id="iframe">iframe content here< /div>

Then just type you < p> tags like normal and everything.

Then in your CSS you would have

#iframe p {stuff for P tags in the iFrame div...}

etc.

Reply with Quote Reply
Page: 1 Back to top
Please login or register above to post in this forum