tags:

views:

37

answers:

4

How to apply a style to an iframe whose parent tag's id is known??

Example:

<div id="xyz">
 <iframe ....>
 </iframe>
</div>

Is it

#xyz.iframe
{
}

I'm new to CSS....can any one help on this??

+4  A: 
#xyz iframe {
}

Whereas this:

#xyz.iframe {
}

would refer to something like <div id="xyz" class="iframe" />

Tomalak
Great...thanks for extra info....
Manish
A: 
#xyz iframe
{
}

But this is pretty standard CSS, used almost everywhere. You should really read something on CSS.

Lukáš Lalinský
A: 

you don't need the dot, dot deenotes that your targeting a class

#xyz iframe
{
}
Matt Smith
A: 

go to w3schools.com for CSS and JavaScript. it's concise and to the point. anything may need is there.

Roland