• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 564
  • Last Modified:

iframe background transparent?

http://test2.campuswebstore.com/WebForm4.aspx

Hard to see, but there is an iframe on this form.  Notice the background shows through, even though the source is set to "Blank.aspx" and Blank.aspx is not showing a transparent background, or atleast, is not my intent.

How can I fix this?

Thanks!!

Tom
0
Tom Knowlton
Asked:
Tom Knowlton
  • 3
  • 2
1 Solution
 
bill30Commented:
Try this in your CSS:

#your_i_frame_id {
background:transparent;
background-color:none;
}

It may be picking up a default or declared style somewhere else on your page.  By giving your iframe an ID and then calling it in CSS by it, it will override anything else trying to style your iframe.
0
 
Tom KnowltonWeb developerAuthor Commented:
So ID styles take precedence over classes?

#somename
{
}

overrides

.someothername
{
}
0
 
bill30Commented:
priority starts from ID --> Class --> Type (ifram, a, img)

You have to be carefull with more than one style sheet as well.  The last stylesheet loaded will take priority over the preloaded ones all other things being equal.

0
 
Tom KnowltonWeb developerAuthor Commented:
Didn't know that!

thx
0
 
Tom KnowltonWeb developerAuthor Commented:
thx
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now