1
showcase17
Override external CSS
  • 2007/3/16 9:33

  • showcase17

  • Not too shy to talk

  • Posts: 190

  • Since: 2005/1/6 0


I've got a gamingcommunitysite on which I show the external gamelobby hosted by the gamingcompany. What I'd like is this gamelobby to be in the same colors as the site but it has his own CSS.

What I've done to show that page is using a IFrame.

Can someone help me to loose the external CSS and have the page shown in my own CSS colors?

This is the code I used:

<IFRAME name=stbbox src="http://nw3.novaworld.net/tfd_2_lobbyx_pub.lob" 
height="700" width="100%"><br /><p>Your browser doesn't 
support frames. Click target="_blank">here to view the page.

/>
- To Explore and Discover -

2
Herko
Re: Override external CSS
  • 2007/3/16 10:36

  • Herko

  • XOOPS is my life!

  • Posts: 4238

  • Since: 2002/2/4 1


what happens if you put the style declarations from the lobby in your own theme style.css file and give them your own styles?

What I mean is if the lobby has a style definition for
class="LobbyLink" in its own stylesheet, you add the class LobbyLink in your own stylesheet, and give it your own styles.

Doesn't this override the original styles?


Herko

3
wizanda
Re: Override external CSS
  • 2007/3/16 11:17

  • wizanda

  • Home away from home

  • Posts: 1585

  • Since: 2004/3/21


They added style="" to iframe....
Have you tried adding a style to the iframe, so that the style of the other site is then changed, unsure if it works as haven't tried it my self, yet may do if the CSS changes what is in that iframe.


just tried an unsure if it works yet still its an idea....

4
xguide
Re: Override external CSS
  • 2007/3/16 12:19

  • xguide

  • Just popping in

  • Posts: 43

  • Since: 2005/5/11


Hi,

Can i suggest you to read this thread: Hi, I’m a CSS idiot

Some useful information there with good example A and B
if or not header within iframe document.

5
showcase17
Re: Override external CSS
  • 2007/3/16 19:49

  • showcase17

  • Not too shy to talk

  • Posts: 190

  • Since: 2005/1/6 0


OK thanks guys, reading xguide's link I understand it isn't possible
- To Explore and Discover -

6
BlueStocking
Re: Override external CSS

Thank you Showcase17 for the iFrame code.

Applying that code in a new blank php page which James just pointed out how to do, I learned TWO new programing tips.

Again, thank you Showcase17

BlueStocking
hardhunting.com
hhttps://xoops.org/modules/repository .. It is time to get involved - XOOPS.ORG

7
showcase17
Re: Override external CSS
  • 2007/3/16 21:33

  • showcase17

  • Not too shy to talk

  • Posts: 190

  • Since: 2005/1/6 0


np m8
- To Explore and Discover -

Login

Who's Online

360 user(s) are online (296 user(s) are browsing Support Forums)


Members: 0


Guests: 360


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits