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

Join 132,172 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,550 people online right now. Registration is fast and FREE... Join Now!




editing iframe styles

 
Reply to this topicStart new topic

editing iframe styles

didgy58
post 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

Go to the top of the page

BetaWar
post 19 Aug, 2008 - 12:23 PM
Post #2


#include <soul.h>

Group Icon
Joined: 7 Sep, 2006
Posts: 1,981



Thanked 78 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

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/21/08 03:17PM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month