Click to See Complete Forum and Search --> : I need help with a layout.
BBC_Rey
03-26-2005, 10:09 AM
Well, my site usually uses Frames, but I wanted to organize everything in a table, so I put in an Iframe, I can't change the size of them, I don't know why, I want the area with the content to be wider, and the area with the links to be thinner. I'm really puzzled, can anyone help?
js_prof_cons
03-26-2005, 10:18 AM
Well, my site usually uses Frames, but I wanted to organize everything in a table, so I put in an Iframe, I can't change the size of them, I don't know why, I want the area with the content to be wider, and the area with the links to be thinner. I'm really puzzled, can anyone help?If you are looking to progress, moving to tables and inline frames is not the answer. Using frames isn't completely bad; however, it can be replaced by server side includes, which gives access to users whose browsers don't support frames.
As for answering your question, the inline frame can easily be re-sized via the style attribute:<iframe ... style="height:400px;width:80%"> </iframe> However, I will reiterate that moving towards tables and inline frames is worse than using frames themselves. I owuld suggest instead a move towards CSS and towards a server side solution.
BBC_Rey
03-26-2005, 10:23 AM
I don't know that yet xD, I'll learn it, I'm just a beggener at layouts, but thats for the info, I will take your advice, thanks ^^.
Edit:
It still won't change its size... *sigh*
js_prof_cons
03-26-2005, 10:44 AM
It still won't change its size... *sigh*Using the width attribute of the style property should allow you to do this, as the width attribute can be assigned a percentage value. I'd be interested in seeing the code you are using. As far as I tested (both MSIE and Firefox), the width attribute of the style property is supported in an inline frame for both browsers.
BBC_Rey
03-26-2005, 11:58 AM
Well, here is the link to the layout, be aware, the layout sucks...
:
http://free.hostultra.com/~HolyRey/Old%20Layout.php
the code?
<HTML>
<HEAD>
<BODY STYLE="background-image: url(http://img.photobucket.com/albums/v356/ShadowRey/Graphics/Cavy2.jpg)" TEXT="#FFFFFF" Face="verdana" LINK="#FFFFFF" VLINK="#3SDFS23" ALINK="#FF0000">
</Body>
<title>Beyblade Chronicles:// Data Comission</title>
<TABLE BORDER="1" CELLPADDING="0" CELLSPACING="0">
<TD><img src="http://img.photobucket.com/albums/v356/ShadowRey/Graphics/BBCMainBanner.png" alt="Beyblade Chronicles://Data Comission">
</TD>
<TR>
</TR>
<TD>
<IFRAMES Scrolling="no" style="height:400px;width:100%">
<IFRAME SRC="http://free.hostultra.com/~HolyRey/Linkstobe.php" NAME="left">
<IFRAME SRC="http://free.hostultra.com/~HolyRey/Updatesc.html" NAME="right">
</IFRAME>
</TD>
<TR>
</TR>
<TD>
<img src="http://img.photobucket.com/albums/v356/ShadowRey/Graphics/DOPE.png" alt="">
</TD>
<TR>
</TR>
</Table>
</HEAD>
</HTML>
Thats it, if there is anything wrong with it, jut tell me, or edit it..
js_prof_cons
03-26-2005, 01:02 PM
1) You have <iframes ...> in one place, rather than <iframe ...>.
2) In the 2nd and 3rd iframes, the one I suppose you want to change the width of, you have no style="width:xx%" attribute.
I didn't look at the site, as I feel I need not at this time. If you are unable to get the above things corrected, I will be willing to take a glance.
BBC_Rey
03-26-2005, 02:52 PM
If I leave it IFrame there instead of IFrames then this big gigantic (yeah not a real word..) box of white pops up, and there only two Iframes... I want to change the Right Iframe, make it spread out, but it won't...
js_prof_cons
03-26-2005, 03:00 PM
Add the style="width:80%" to the right, and style="width:18%" to the left. Always leave 2% just in case of MSIE.
BBC_Rey
03-26-2005, 03:04 PM
It doesn't work =/....
js_prof_cons
03-26-2005, 03:15 PM
Leave the changes so they can be seen online. Otherwise, I can't see what results yield, compared to what you want. In addition, I should add you have used a copyright infringement, calling your site the BBC, when the real BBC (http://www.bbc.co.uk/) -- British Broadcasting Corporation -- is copyrighted.
BBC_Rey
03-26-2005, 03:18 PM
=_=, Um ok, I can just use BBChronicles then.... Never heard of them... Sorry, people from the real BBS. And ok.
js_prof_cons
03-26-2005, 03:22 PM
Maybe one other point of note. Your discalimer has ECT. The abbreviation for the Latin phrase et cetera is etc. Just thought I'd point that out, since you might have to chnage that disclaimer.
Still looking to see the style code added.
BBC_Rey
03-26-2005, 03:55 PM
Ok, thank you for pointing that out.
js_prof_cons
03-26-2005, 04:59 PM
Hmm. What is the purpose of your <iframes ... > tag? Also, the style="width:xx%" code goes in an <iframe> tag, not that <iframes> thing you have.
BBC_Rey
03-26-2005, 06:00 PM
I explained it before, when I tke out the S, a big box pops up, but that box follows the code of the tag, which is weird, but the other iframe doesn't...
js_prof_cons
03-26-2005, 06:16 PM
<iframes > isn't a tag. It doesn't do anything. Its just as good as <foo>
BBC_Rey
03-27-2005, 08:18 PM
, I bet if I put <foo> in there it wouldn't make a big white thing pop up. I'm changing the darn layout anyhow, my new layout will even look better.
js_prof_cons
03-27-2005, 08:27 PM
<iframes> is not an HTML tag. Neither is <foo>. They would have the same effect. Your iframe tag as it was did absolutely nothing to your page, except maybe change positioning because of its style tag.
BBC_Rey
03-27-2005, 09:26 PM
I figured out the problem, the height and width codes are n the wrong place, have to be where the SRC link is too. in That tag, alright thats all I have to say of that, the layout looks cool, and I'm trashing the old one. also <foo> sounds better XD. I get your point, your a good person, I'd like to thank you for your help, so
THANKS A BUNCH!
js_prof_cons
03-27-2005, 09:33 PM
That's nice to hear.