Sunita
Sunita

Reputation: 321

Change iFrame atributes and CSS from inside

Is it possible to alter the iframe CSS or atributes from inside the src file?

I want to make a iframe unstyle, so that any1 can copy that code and paste it on their website... something like a feed...

Upvotes: 0

Views: 103

Answers (2)

Sandeep Pattanaik
Sandeep Pattanaik

Reputation: 632

All iframe css properties

iframe{
margin: 0;
madding: 0;
border: none;
width: value;
height: value;
}

Upvotes: 1

Simone
Simone

Reputation: 21262

No, it isn't. You should change CSS attributes from the main page.

iframe {
  border: 0; /* this will work in the main page, but not in the src file */
}

Upvotes: 0

Related Questions