Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Lionsanime Directory   High Bandwidth Dedicated Servers   V7N Directory

Reply
 
LinkBack Thread Tools Display Modes
Old 01-29-2004, 04:43 PM   #1 (permalink)
Inactive
 
Join Date: 01-29-04
Location: Pittsburgh, PA
Posts: 3
iTrader: 0 / 0%
Latest Blog:
None

FantasyRealms is liked by many
Send a message via AIM to FantasyRealms
CSS Style not working for iframe HTML files...

I have a main index.html page, which uses a linked CSS file to give styles to the index page itself. I wanted to create a scrollable, change-able center frame, so I used IFRAME. On the index.html page, I was able to get all the CSS styles working and everything positioned perfectly.

When I created a page for the IFRAME (ie. content.html), CSS only worked if I previewed that specific page. If I preview the index.html page, all content in the IFRAME no longer has any styles (it just reverts to a white background with black text).

If I insert the CSS code directly (through <style>) on "content.html," the web page will work completely. Of course, I want to be able to link the CSS code for the IFRAME so I can change just the one CSS file, instead of going through each sub-page and adding/changing the code.

Any help would be appreciated...
FantasyRealms is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 01-29-2004, 05:18 PM   #2 (permalink)
Possible Terrorist
 
kwvarga's Avatar
 
Join Date: 10-13-03
Location: Tuscaloosa, AL or Atlanta
Posts: 4,904
iTrader: 0 / 0%
Latest Blog:
A+ Certification

kwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web pro
Send a message via AIM to kwvarga
have the CSS file that works use classes like

[code:1:b7d84a2b2c]<style>
DIV.iframe {
background-color: #000000;
}
</style>[/code:1:b7d84a2b2c]

and inside the iframe have stuff like
[code:1:b7d84a2b2c]<div class="iframe">iframe content</div>[/code:1:b7d84a2b2c]
__________________
Kyle Varga
"m3lt/theSpear"
student, web designer/coder, future IT consultant
Experience: PHP/MySQL, Java, C++, MS-SQL
kwvarga is offline  
Add Post to del.icio.us
Reply With Quote
Old 01-29-2004, 05:40 PM   #3 (permalink)
Inactive
 
Join Date: 10-12-03
Location: Cranberry Township
Posts: 275
iTrader: 0 / 0%
niceguyeddie is just really niceniceguyeddie is just really niceniceguyeddie is just really niceniceguyeddie is just really niceniceguyeddie is just really niceniceguyeddie is just really niceniceguyeddie is just really niceniceguyeddie is just really niceniceguyeddie is just really niceniceguyeddie is just really niceniceguyeddie is just really nice
Send a message via ICQ to niceguyeddie
why not use the overflow element instead of an iframe?
niceguyeddie is offline  
Add Post to del.icio.us
Reply With Quote
Old 01-29-2004, 06:07 PM   #4 (permalink)
Inactive
 
Join Date: 01-29-04
Location: Pittsburgh, PA
Posts: 3
iTrader: 0 / 0%
Latest Blog:
None

FantasyRealms is liked by many
Send a message via AIM to FantasyRealms
I'm new to CSS. Would the overflow element allow me to (for instance)... click on a menu link and have it just reload the center part (where the IFRAME would be)? Every time someone clicks a link on my page, I don't want the whole page to refresh, just the center area.
FantasyRealms is offline  
Add Post to del.icio.us
Reply With Quote
Old 01-30-2004, 08:50 PM   #5 (permalink)
Inactive
 
Join Date: 01-29-04
Location: Pittsburgh, PA
Posts: 3
iTrader: 0 / 0%
Latest Blog:
None

FantasyRealms is liked by many
Send a message via AIM to FantasyRealms
I realized that I had correctly coded everything. It was the way Adobe GoLive previewed the pages (with its internal preview and when it opened IE). Once I uploaded everything to the FTP, it all works. Thank you for your help...
FantasyRealms is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
<iframe> not working on IE7 ? but on FF? JustRetarded Coding Forum 6 07-30-2007 05:58 PM
HTML: Guide an IFrame off a picture... bstrumpet Coding Forum 1 04-23-2007 01:41 AM
Two HTML similar codes , one working well and another not working why? Banjika Web Design Lobby 1 06-11-2005 07:14 AM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 03:36 PM.
© Copyright 2008 V7 Inc