PDA

View Full Version : CSS changes not applying in iframe



Koocka
20 Apr 2011, 03:57 PM
Hi all.

I have a strange problem. I have a bit confusing sitebuild.

I have a normal index.php page, made from a simple table. it has a header, a menubar, and a content part. Now the content part is a bit tricky. It has an iframe, and i change the src of the iframe via javascript, so when i click a menu it works like a frameset. the iframe's width and height is 100%, so it fills the whole <td>.

Now, i have a registration form. when i click the "register" link, the reg.html loads into the iframe, if i manipulate it with css it works fine. Then, when the form is submitted, the data are $_POST-ed to reg.php, which generates a html page: a container DIV and some text in it, depending on the posted data.

Here comes the problem: i want to style the DIV with css, but they don't apply. I cannot change its position, text-family, text-color, when i change its background color it wont change.

I know it's a bit dizzy, but i hope someone understands it and gives me some tips :)