not getting styles in inframe

Posted on 2010-09-04
Last Modified: 2012-05-10
Hello, anyone know why in FF the styles are not being applied?

you can find it here..

and to see it, click on add to cart and that is when an iframe pops up.. but the styles are not taking.. works in IE .. but can't see it in FF.. thanks for the help.. Cheers
Question by:jeremyBass26
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
LVL 12

Expert Comment

ID: 33604619
Hi there

your iframe has totally invalid code. There are no opening/closing <html> tags or body tags etc.
An iframe is a totally standalone page and does not inherit any of its parents elements/properties. As such it needs proper html code to work. Can you try fixing that and then we'll take it from there?
LVL 12

Expert Comment

ID: 33604672
Apart from fixing the page code, I got one more question - are you sure you're loading the correct css file?
The one that's in your link tag doesn't contain the classes you're referencing.

Author Comment

ID: 33604689
well.. hmm. .I don't think I have ever been an issue with not haveing the those before ... but now the reponse is all corrected to be valid... still is not working.. but it vaildates at w3C.
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Author Comment

ID: 33604700
it does have this class in it..


and that is in the iframe.. that is wat is odd here..
LVL 12

Expert Comment

ID: 33604709
Yah I grabbed the code and fixed it locally and that's when I started going through the classes in the css file and saw that they're not the ones that you're using. For instance classes body, cart, content, main, itemsku class or itemdesc etc. Most of them are missing. For some that are indeed in the css file, there are other issues, such as inheritence issues. For example, pagewrapper is in there, but it's not a class like you reference it but an id and belongs to the story class. Here's the definition that shows this:
.story div#pagewrapper {

The css file you're using seems totally invalid.
LVL 12

Accepted Solution

theremon earned 500 total points
ID: 33604734
Just saw your comment about the .removeitem class.
Granted, it is in there - however you're applying it to an <a> tag. "A" tags have no dimensions - their children do. You got 2 ways to solve this:
1. If you just convert to a div, you'll get your result. You can add an onclick hanlder to emulate the "A" tag behaviour.
2. Add a small div inside the "A" tag just to give it the necessary dimensions. Just a placeholder.

Author Comment

ID: 33604790
Oh.. dang that was what I was missing..


:D see I just needed a set of eyes... By the way, a div in an A tag is not valid, but a span is, and the css validates thru w3C on warning level 0 CSS2.1

Thanks for the help.. Cheers.

Author Closing Comment

ID: 33604792
Lead me to see what the real issue was.. tk
LVL 12

Expert Comment

ID: 33604807
"a div in an A tag is not valid, but a span is"
True enough - my bad... That's what I get for trying to solve problems at 1am in the morning...

Still, I'm glad I could help a bit. Thx for the points.

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
HTML5 storage and web apps 11 45
testing a web application for ipad on windows pc 3 35
PHP Web Development 6 21
HTML editor custom button 3 56
Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
Find out what you should include to make the best professional email signature for your organization.
In this tutorial viewers will learn how to customize the background color and font color of highlighted text using the ::selection element in CSS Begin by defining the selected text as an element in CSS by typing "::selection": Style the ::selection…
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at Browse or search based on font properties or name to find a suitable font for…

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question