Forum Moderators: phranque

Message Too Old, No Replies

rookie using iframes

iframe

         

damara23

3:04 am on Jul 9, 2004 (gmt 0)

10+ Year Member



Here's my current iframe code

<div align="center"><IFRAME name=iframe src="/iframe.htm" width=400 height=300 frameborder=1 scrolling=auto>
</IFRAME>

Here are the things I'd like to adjust/add:
*I'd like to have a background image for my iframe, right now it's white
*I only have pics opening up in the iframe, I'd like to position them in the center
*If possible transparent scroll bar

If I need to convert my html to css please give me the code. Just show me my new code with all my new changes please.

I created a new page (and saved it as iframe) with the background image I wanted to use. I have my iframe code on the same page that I have the pic links on. all my pic links are target ="iframe". Am I doing this right so far?

stef25

1:21 pm on Jul 9, 2004 (gmt 0)

10+ Year Member



iframe is just a frame. all the features you ask for such as background image and transparent scrollbar will have to be applied to the html page which is loaded into the frame

so put a background on iframe.html and do a search for colored scrollbars on this forum - you can apply that with inline css in your iframe.html code

if you want to open pics in your iframe, you could put each pic on its own html page and target that into the iframe

you can position each pic centrally on its own page, with a background of your choice

make sense?

Voltec

4:55 am on Jul 11, 2004 (gmt 0)

10+ Year Member



Ugh, frames.

Do yourself a favor - drop the frames and use CSS and Tables. Frames are VERY search engine unfriendly and not viewed the same from browser to browser. (Many of the not-so-state-of-the-art browsers still can't view them at all).

I dropped them a few years ago and went strictly to Tables - Now I use Tables along with CSS.

Take care,
Matt

damara23

6:04 pm on Jul 11, 2004 (gmt 0)

10+ Year Member



Yeah i hear css is the thing to do now. Could you give me a few links to sites that use css with tables?

Voltec

8:27 pm on Jul 11, 2004 (gmt 0)

10+ Year Member



Well, if you look at the source of this page, you will find a combination of CSS, Tables and 'pre-CSS' HTML. Although you can include the CSS in a seperate file (which is GREAT for hiding your formatting from prying eyes), this page has just a few items listed at the top and there is extensive use of Tables (which I do as well).

Matt

Kirby

1:57 pm on Jul 13, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



>Frames are VERY search engine unfriendly

Frames are in fact one of the easiest ways to optimize for a search engine.