CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 4th, 2004, 08:12 PM
darkane darkane is offline
Slightly Disturbed
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 200 darkane User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 32 m 9 sec
Reputation Power: 5
Question CSS iframe buffer to div problem

I have a page which has an iframe which buffers the pages that are passed to the div "content" layer. the page that is loaded into the iframe extracts the data from the database and then includes the template which also holds the css. this works when the page isnt loaded through the iframe to the div but doesnt when buffered and loaded. does anyone know what I could be doing wrong? do I need to put the css (which is just for font and text) on the page holding the iframe and the div layer? any help will be greatly appreciated, thanks in advance.

Reply With Quote
  #2  
Old March 5th, 2004, 11:06 AM
lucesei's Avatar
lucesei lucesei is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 111 lucesei User rank is Private First Class (20 - 50 Reputation Level)lucesei User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 11 h 33 m 27 sec
Reputation Power: 5
Funny, I just finished working on more or less the same problem myself. Though it isn't very clear what your exact problem is, I imagine that the data is extracted and displayed on your page correctly, while the css is missing completely.
That's because only the <body> data is extracted from the iframe onto the page, while <head> data isn't. All you have to do is to copy the css from the page displayed in the iframe (is it called the child page? I'm not english speaking...), to the "parent" page, where the actual data is going to show up. Instead of having 2 pages with the same css, you could simply transfer the code to an external stylesheet.
Cut the css code from your original page, paste it on an empty page (a notepad page will do), give it a name and an extension .css.
Then put this link in the <head> section of your pages:
<link href="--path_to_your_stylesheet--" rel="stylesheet" media="screen">.
But probably you knew this already..

Bye

Reply With Quote
  #3  
Old March 7th, 2004, 05:46 PM
darkane darkane is offline
Slightly Disturbed
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 200 darkane User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 32 m 9 sec
Reputation Power: 5
thanks for your reply. everything runs from a database, the page content, images, pop up images and css, I have an index page which has the site banner and menu and below that the content div with the iframe hidden, each menu item targets base.html which extracts the data from the database and then includes("template") to determine how the page looks, then this is ran thru the iframe and into the div. what i did was include the css in the template, when I should have infact put it on the index page, now all this works perfect. I also have left it so that I can include external pages and run them thru the buffer also, as so I can "plug in" different things as they become needed..

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > CSS iframe buffer to div problem


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway