Help - Search - Members - Calendar
Full Version: Frame In A Table!
Zymic Webmaster Forums > Web Design & Development > Client Side Scripting > HTML and CSS
warandchaos
is it possible to get a frame in a table which is 100% by 100%, compared to the table?
Wesleyke
QUOTE(warandchaos @ Sep 19 2007, 03:12 PM) *
is it possible to get a frame in a table which is 100% by 100%, compared to the table?


If you want to do that you should use an iframe (inline frame) or a <div> with the css style overflow: scroll
Check these links for an example:
iframe: http://www.w3schools.com/tags/tag_iframe.asp
div + css: http://www.w3schools.com/css/tryit.asp?fil...trycss_overflow
MrTorelli
I suggest using iframes. It is really easy, I use them. Do a simply google search about iframes.

My site is all done in iframes.
http://www.srtorelli.com
Colin
Iframes are horrible...
Paintingblack
QUOTE(MrTorelli @ Oct 7 2007, 05:05 PM) *
I suggest using iframes. It is really easy, I use them. Do a simply google search about iframes.

My site is all done in iframes.
http://www.srtorelli.com

iFrames are actually a bad choice, they're very unprofessional. Using PHP Includes or DIVs + CSS are a much better alternative, and just look better.
bezz
QUOTE(Paintingblack @ Oct 7 2007, 05:51 PM) *
iFrames are actually a bad choice, they're very unprofessional. Using PHP Includes or DIVs + CSS are a much better alternative, and just look better.

Yeah I agree.
Fox
I've never used an Iframes and i don't think to do this!!!
MrTouz
this is a table with a frame inside :

QUOTE
<table width="100%" border="0">
<tr>
<td>
<iframe src="http://www.zymic.com" name="myframename" frameborder="0" width="700" height="700"></iframe>
</td>
</tr>
</table>



So lets explain :

the table width is 100% wich means it will go as big as the content inside or as big as the screen. since i have set my iframe to 700 by 700 the table will be that large.

there is NO border for this table since i have set it at 0

the iframe will have www.zymic.com inside so inside the 700 700 box you will see the zymic website biggrin.gif (wich as you can gues is kinda small, i think it uses a width of 950 anyways....

for the frameborder you re probably asking what it is, i have found that sometimes iframes have a border, i tryed seting the border to 0 inside the iframe tag but never worked... and at some place i have found a iframeborder, i set it and the borders disapeared biggrin.gif

also i named the iframe. why ? well sometimes you have more than 1 iframe inside your site since you set a location you need to set a name. lets say

QUOTE
<a href="blablza.html" target="myframenumberone">HERE</a>


once you clic HERE the blablza.html will apear on the frame called myframenumberone biggrin.gif

this is an iframe inside a border.

not sure if its what you were asking by :

QUOTE
I've never used an Iframes and i don't think to do this!!!


if you need anymore help ... feel free to ask biggrin.gif
pkplonker
Use Iframes if only the content you want changing is inside the frame. Otherwise use div as search engines cant find the conent in Iframe.

Pkp
MrTouz
Otherwise use div as search engines cant find the conent in Iframe.

true

but than if you want the best of all.. just use PHP tongue.gif but i guess it has been asked before he needed a SIMPLE .. well the simplest wy of doing it.
Shadow Man
QUOTE(Paintingblack @ Oct 7 2007, 09:51 PM) *
iFrames are actually a bad choice, they're very unprofessional. Using PHP Includes or DIVs + CSS are a much better alternative, and just look better.

i also agreeee cool.gif
EMOruffino
AJAX can also suite your request
Alex
I wouldn't suggest AJAX. Unless you already know where and when to use it - you shouldn't be trying. This is often vindicated be people who have been lured in by how "cool" it is, and use it all over their website - causing annoyance and loss of usability. In the general case, I'd recommend dynamic content should be facilitated with PHP (templating with the dynamic content fitted into each page). I sincerely doubt they need to eliminate page loads in this case.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.