cincybulldog5 Posted February 11, 2010 Share Posted February 11, 2010 Hello guys, I am new here and looking for some help to solve a problem I have incurred.. What I would like to do, is use a stylesheet to format the content, within an iframe.... Any ideas? The files being displayed are my own files, but they update and are uploaded daily... So adding the style tag to each file would be a major hassle...... So once again, if anyone knows a way to style the content within an iframe(where I display my files).. Your help would be greatly appreciated!!! Thanks in advance Link to comment Share on other sites More sharing options...
Zath Posted February 11, 2010 Share Posted February 11, 2010 Hello guys, I am new here and looking for some help to solve a problem I have incurred.. What I would like to do, is use a stylesheet to format the content, within an iframe.... Any ideas? The files being displayed are my own files, but they update and are uploaded daily... So adding the style tag to each file would be a major hassle...... So once again, if anyone knows a way to style the content within an iframe(where I display my files).. Your help would be greatly appreciated!!! Thanks in advanceIf we assume the content of the Iframe is another html page, simply include a link to your stylesheet within that page.Inlcude a line such as this within the head tags of your iframe content.<link href="styles/youriframestyle.css" rel="stylesheet" type="text/css" /> Link to comment Share on other sites More sharing options...
Synook Posted February 12, 2010 Share Posted February 12, 2010 If, as the topic post suggests, he doesn't want to include the stylesheet on each page, you can add one using java script: http://www.google.com.au/search?q=add+stylesheet+javascript Link to comment Share on other sites More sharing options...
cincybulldog5 Posted February 12, 2010 Author Share Posted February 12, 2010 Perhaps I did not make it clear.. I know that I can add the stylesheet to each page, but these pages update and are uploaded daily.... So this means I would have to edit 50+ pages per day, and add the stylesheet.... I will look into the Java idea... Any other help or suggestions would be appreciated... Thanks guys Link to comment Share on other sites More sharing options...
thescientist Posted February 12, 2010 Share Posted February 12, 2010 the point of linking to a style sheet is that you have one central location for all your styles, and as long as the page has that reference to the .css, all your styles for all those pages can be changed from one location. Apart form having to update the content of your pages regularly, you could look into PHP and SQL, but unless you are changing your styles everyday, linking to them is the way to go. Also, javascript is not java. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.