Jump to content
xisto Community
Sign in to follow this  
wild20

A Question About Iframes Just a quick one,..hopefully.

Recommended Posts

So I have this sidebar right? It is a basic sidebar for a lot of pages, and I need to be able to change one file for the whole thing. My solution? Iframes. The problem? I need it to be the same as my background on the sidebar. I can do that on my main file. That isn't my problem. can someone please give me the attribute for making no border? So it looks like part of the page. For instance. Look at the shout box. In the input field, there is a border around it. If you turned the input field to green, it would still show that border around it. I don't want that. I want the border around it to be invisible. Can someone help me out with that?

Share this post


Link to post
Share on other sites

Instead of Iframes, consider using php includes to have the file 'included' as a part of your site. That way, the file can be just another page element (ex: div) on the page and use css to style it.

Share this post


Link to post
Share on other sites

a tutorial on the "php includes" can be found http://forums.xisto.com/topic/33636-how-to-make-a-simple-php-site-making-one-file-show-up-on-all-pages-using-php/ there....or atleast that is what i use on my site and it works for me :angry: as for the boarder i dont know what you would do :angry:

Share this post


Link to post
Share on other sites

If he 'includes' a sidebar onto the page, the border (or lack of border) can be controlled using the css for the page, whether embedded or in a stylesheet. ie: div { border: 1px solid #000088;} in the css file would produce a thin Blue border and div { border: 0px} would produce no border.

Share this post


Link to post
Share on other sites

Is there one I can implement into the place I put the Iframe code? PHp is great, but after JC05's and my episode with the form, I think I should give it a rest for a while. I just need something quick like an attribute that says something like borders="no" Or Borders="invisible"Would something like that work? Oh, and are we suppose to be putting these in quotes. I noticed you didn't, but then again, you are a mod.

Share this post


Link to post
Share on other sites

Probably we should, yes. I'll issue myself a warning in the morning. Something to look forward to.

In the meantime, check this out : http://www.w3schools.com/tags/tag_iframe.asp

Look at the frameborders and scollbar attributes. Might answer your question. and Iframes won't work with a 'strict' Doc Type, so use Transitional.

Share this post


Link to post
Share on other sites
:angry: Roger that Jim. You ban yourself and me :angry: Okay thanks. I will check that out. It is just that when you go to look at the Iframe, you see that box. Even if you have it set to have borders to zero, you still have a "line" around it. And I want that gone, so you couldn't even tell there was an Iframe there. Thanks for your help-Wild20

Share this post


Link to post
Share on other sites

Found this today. Might work.

"<iframe src="place correct url here.html" width="176" height="220" name="inline" scrolling="no" border="0" frameborder="0" marginwidth="0" marginheight="0" allowtransparency="true"></iframe>"

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  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.