0

I am working on an old app that uses 3 frames. One of the frames has a "name" attribute

I am trying to target it via css like this but it's not working.

HTML

<frame name="classFrame" src="test2_files/overview-summary.htm"></frame>

CSS

 frame[name=classFrame] body{ font-family:"Courier New", Courier, monospace;}
BoltClock
  • 700,868
  • 160
  • 1,392
  • 1,356
ndesign11
  • 1,734
  • 6
  • 20
  • 36
  • 1
    see http://stackoverflow.com/questions/217776/how-to-apply-css-to-iframe – MikeM Dec 17 '12 at 21:43
  • I can't add any new stylesheets or js, just have to work with whats there, I was thinking i could target it using css3 somehow like in my above example – ndesign11 Dec 17 '12 at 21:46
  • then this answer is probably what you'd want to do: http://stackoverflow.com/a/6100053/222714 (uses JavaScript to add a ` – MikeM Dec 17 '12 at 21:47
  • Can you please provide a small example which demonstrates the problem? Also, how do the other answers mentioned in the comments work (or not work) for you? – KatieK Dec 17 '12 at 23:28
  • the other answers talk about including other stylesheets and JS which is not possible. I need to add the specificity via css 3 http://docs.oracle.com/javase/6/docs/api/ – ndesign11 Dec 17 '12 at 23:30

1 Answers1

0

You cannot target a frame's contents from a frameset using CSS selectors.

BoltClock
  • 700,868
  • 160
  • 1,392
  • 1,356