ThomasJSmart
Programmer
- Sep 16, 2002
- 634
Hi
I have an html document with a main css file include that has styles for the whole document and im trying to attach a second css file but i want the styles in it to be only active inside a single div. i can strip out body/html tags with php but the remaining styles like div, p, a, etc should all only be active inside the div i want it attached to. It is also importent that the styling inside the holder div in no way effects what is outside the div, for example positioning and such. the holder div has a fixed width/height and overflow:hidden.
how could i get this to work?
i know it could also be done by using an iframe instead of a div but that gives a lot of complications with javascript functions i need to execute in the div/iframe so if possible i would rather not do this.
I learned a bit yesterday, today i learned a lot, imagine what i'll learn tomorrow!
I have an html document with a main css file include that has styles for the whole document and im trying to attach a second css file but i want the styles in it to be only active inside a single div. i can strip out body/html tags with php but the remaining styles like div, p, a, etc should all only be active inside the div i want it attached to. It is also importent that the styling inside the holder div in no way effects what is outside the div, for example positioning and such. the holder div has a fixed width/height and overflow:hidden.
how could i get this to work?
i know it could also be done by using an iframe instead of a div but that gives a lot of complications with javascript functions i need to execute in the div/iframe so if possible i would rather not do this.
I learned a bit yesterday, today i learned a lot, imagine what i'll learn tomorrow!