Sign in to follow this  

[web] Trasparent Backgrounds using Frames

Recommended Posts

I'm currently working on the finishing touches in terms of the graphic side to my site and I want to be able to have an image as the background below my header. Now I understand how to do this (for the most part, still learning) but the big issue that I can forsee is that I use frames to place my information. Now, I want to be able to view this background through these frames but I can see this causing issues unless there is a way to cause a transparent background on said frames (or I can try to create images specifically for said frames). Any advice? Thanks in advance

Share this post

Link to post
Share on other sites
Okay, well technically I am using Divs just didn't have the proper terminology. I've got the CSS currently set up, I just need to figure out how to set up the rest.

Share this post

Link to post
Share on other sites
I deal with iframes on a daily bases. and I happened to have the source code. Here's one source code.
Path #1:

<iframe allowTransparency="true" width="783" height="315" name="main" border="0" frameborder="0" scrolling="no" leftmargin="0" marginwidth="0" topmargin="0" marginheight="0" src="home.html"></iframe>

and inside home.html put this in the header.
<style type="text/css">
body {
background-color: transparent

and here's another that I coincidently found out. just simple add this line on top of your html file, even before the <html>


this will automatically give your iframes transparency properties.

iframes have their goods and bads, but generally, they are convenient, but ultimately should be avoided at all cost when it comes down to dynamic content that requires iframes to communicate with each other. One programmer can use cookies for the iframes to communicate with each other, but it seems like some people like to keep their cookies off, and in case of shopping malls? When money is involved, things should be more perfect. So, it really depends on many factors.

On the other hand, if you have a professionally made elegant flash menu as your main menu, you should use iframes if it doesn't have any dynamic content, it saves download and reloading time and if you need to change one little thing on the main structure, you only need to change one thing.

CSS is nice too, but they take time to learn. If you're profession is not web-development I don't recommend that you go in depth with CSS, it's not that that hard but it can be quite annoying. But here's a great website that has most information on CSS ( and if it's not in the notice this site should be added )

Hope I was some help.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this