Welcome to Dream.In.Code
Getting Help is Easy!

Join 136,337 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 2,829 people online right now. Registration is fast and FREE... Join Now!




editing iframe styles

 
Reply to this topicStart new topic

editing iframe styles

didgy58
19 Aug, 2008 - 07:06 AM
Post #1

D.I.C Head
**

Joined: 23 Oct, 2007
Posts: 170



Thanked: 1 times
My Contributions
hi guys just wondering if you can help im having trouble with this, i have a iframe on this site that im building and the output kinda looks a bit poor so im looking to edit this with my css, but no matter what i do, i cant edit it with my css file the iframe is pulling information from another source and this needs to be like this as its pulling information from a property listing search site that the company use, now is there a way of injecting a stylesheet into this iframe for instance can i access the head of a iframe and then inject the new css stylesheet in with javascript or something like that

has anybody done anything like this before if so any suggestions??

thanks

Dan
User is offlineProfile CardPM
+Quote Post

BetaWar
RE: Editing Iframe Styles
19 Aug, 2008 - 12:23 PM
Post #2

#include <soul.h>
Group Icon

Joined: 7 Sep, 2006
Posts: 2,022



Thanked: 81 times
Dream Kudos: 1175
My Contributions
You may be able to give it your own CSS with a bit of javascript, but a sure fire way to do it is to place a CSS link inside of the iframe's HTML file to style it like you want. You culd also do this with PHP.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/2/08 08:02AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month