Forum Moderators: open

Message Too Old, No Replies

Transparent html files

Anyone know how?

         

EthanG

10:42 pm on Jul 12, 2005 (gmt 0)

10+ Year Member



I have my main page with a background and an iframe in the middle of that. I want to load the iframe but still be able to see the main page's background behind that iframe. Is there any code to make the source page for the iframe transparent, therefore being able to see the main page's background behind hit?

Tomness

11:21 pm on Jul 12, 2005 (gmt 0)

10+ Year Member



In your inline frame code, add the following:

<iframe allowtransparency="true">

Then on the pages you want to see as transparent, add the following css:

<style type="text/css">
body {background-color: transparent}
</style>

If you're more familiar with CSS and use a stylesheet, just include it.

Hope that helped.

EthanG

9:42 pm on Jul 13, 2005 (gmt 0)

10+ Year Member



I don't use css, although i guess i should be learning it....either way, i am familure with style and i'll try that out. thanks for your help Tom, i'll let you know how things turn out. =)

Tomness

9:57 pm on Jul 13, 2005 (gmt 0)

10+ Year Member



I was sceptical about css for a while, and couldn't be bothered learning it, but with some patience (a week or so) I pixed up a lot of the basics.

The people who are in the css part of this forum also are a excelent help when you need it - I would have never learnt as much if it wasn't for these forums.

However, I don't think there is an alternative for making pages on inline frames transparent, so that should work - I used it myself a few times in the past.

EthanG

11:24 pm on Jul 13, 2005 (gmt 0)

10+ Year Member



True, i learn the most from online forums and talking with friends. It is good to share. I was inquiring about this so that I could think about how i want to build this site, I'm in the process of designing the graphics and slicing them now, then going and building the pages. This info will be helpfull though. Yet, i'm sure i'll have more questions! I wish my host was up (had a OS crash and hast to rebuild it), i would put a link to what i was working on.

Tomness

10:44 am on Jul 14, 2005 (gmt 0)

10+ Year Member



True, i learn the most from online forums and talking with friends.

I agree, forums are good for learning because if you don't understand, you can ask again.

I was inquiring about this so that I could think about how i want to build this site, I'm in the process of designing the graphics and slicing them now, then going and building the pages.

I have built websites with inline frames, flash tables, and more recently - divs and css.

By far, the best method is divs and css. I can change the entire view of my website with one page. CSS is really easy to learn, implement, and use.

Iframes have a lot of let downs mate, if you're using them to make a site, think of the repacussions.

You can't bookmark a direct page - if all the pages open in the frame, you can either bookmark the page, or the index, not both. If you bookmark the index, it will automaticaly take you to the set page when opened.

It will effect your SEO, and people wont see your site at it's best. If you have a site in widgets, and someone searchs 'red widgets', they will get taken to the page without the frame around it.

Some people can't view frames.

Some people with mental issues have trouble dealing with them because some part of the page moves, while the rest doesn't.

They're just a few.

I wish my host was up (had a OS crash and hast to rebuild it), i would put a link to what i was working on.

You're not allowed URLS. Terms of Service [webmasterworld.com] number 13.

EthanG

11:30 pm on Jul 14, 2005 (gmt 0)

10+ Year Member



ok, thanks for letting me know the rules...wouldn't want to break them, hehe. Anyway, yeah, i know what i am in store for with iframes, and i'm using them anyway. I am building a page for a local band, their fane base is small and i think the site is easy to rmember, i hardly ever b-mark, unless it's the main index page anyway.

Tomness

11:55 pm on Jul 14, 2005 (gmt 0)

10+ Year Member



Perhaps you should think outside the box.

Not everyone will bookmark - but those who do might want to bookmark a particular page.