PDA

Click to See Complete Forum and Search --> : Round Iframes? or another way?


HippieKitty218
02-26-2007, 09:42 AM
Hi, I am creating a new layout & I've used iframes before in all of my past layouts. The way that I make my website is I make one main rectangular graphic that has a design layout, menu & title on it, then I put an iframe somewhere on it so that all of the pages open up inside of it. Now with the new layout I'm making the place where I want all of the pages to open is a circle.... is there a way to make a circular ifram so that the text & conent is rounded inside the iframe so that it says in the circle on the layout? if I can't do it with iframes, is there another way? Please help! Thanks so much!

RedGorilla
02-26-2007, 10:14 AM
Hi, I am creating a new layout & I've used iframes before in all of my past layouts. The way that I make my website is I make one main rectangular graphic that has a design layout, menu & title on it, then I put an iframe somewhere on it so that all of the pages open up inside of it. Now with the new layout I'm making the place where I want all of the pages to open is a circle.... is there a way to make a circular ifram so that the text & conent is rounded inside the iframe so that it says in the circle on the layout? if I can't do it with iframes, is there another way? Please help! Thanks so much!

You may want to look into providing the content-changing functionality with PHP instead of just putting the stuff into an iFrame. Theres different ways to implement this. Take a look at using combinations of transparent gifs with a little bit of custom styling code, maybe? Four transparent gifs, one for each curve corner of the circle, can be placed ontop of the content, but it will be a bit tricky to get this to work right. Any way you do this I think the bottom line is you'll have to put a little thought into it and come up with a clever solution that fits whatever content you're working with.

hope that helps a little~

HippieKitty218
02-26-2007, 07:55 PM
You may want to look into providing the content-changing functionality with PHP instead of just putting the stuff into an iFrame. Theres different ways to implement this. Take a look at using combinations of transparent gifs with a little bit of custom styling code, maybe? Four transparent gifs, one for each curve corner of the circle, can be placed ontop of the content, but it will be a bit tricky to get this to work right. Any way you do this I think the bottom line is you'll have to put a little thought into it and come up with a clever solution that fits whatever content you're working with.

hope that helps a little~

Yeah, I thought about the whole transparent gifs as a last resort kinda thing because the only thing wrong with that is of course some of the text would be covered up & the only text you could ready full is the ones right in the middle of the circle and anything that could scroll up to the middle of it. I really want something that will make the text wrap inside the circle so you can see all of it. Please tell me more about this content-changing php thing you were talking about.

forgottencanha
03-02-2007, 04:32 PM
is there a way to make a circular ifram so that the text & conent is rounded inside the iframe so that it says in the circle on the layout?

Circular iframe? I'm not quite sure that is possible at all. As far as I know, you can only open um iframes (or DIVs) with four coordenates: top, bottom, left and right. And that forms a rectangle. To form a circle, you'd need (in theory) way much more coordinates.

The whole transparent gif was a good idea, but it could give you reading problems (besides probably not validating in W3C properly).

I think it's fairly safe to say that a round iframe or div are fairly impossible - not without giving a serious headache to program, at least.