Flash Games

 FAQ   Search   Members   Groups   Register  User Control Panel      Login 

Your time now:
Mon Nov 23, 2009 4:59 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 9 posts ]  Bookmark and Share
Author Message
 Post subject: Centering Frames in HTML
PostPosted: Mon May 19, 2008 3:29 pm 
Offline

Joined: Mon May 19, 2008 3:10 pm
Posts: 7
Hi everybody,

I'm new around here, but not very good with HTML. I've manged to get a frame structure for my website that I'm really pleased with, but I really want the frames to be centred across the width of the screen (think this is vertical?). Done lots of searching on the web for help, but not had any luck so far. Does anybody know if there's a way to do this please? Any help much appreciated.

Thanks,
Lance.

PS: Sorry if this has been asked before. I did have a look through some of the other postings here, but couldn't see anything that matched.


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 19, 2008 5:02 pm 
Offline
500+ Club
User avatar

Joined: Thu Jan 25, 2007 2:10 pm
Posts: 691
Location: Midlands, England
Code:
<div align=center>
code for frame
</div>

maybe? If not can we have a link to the page?

Flabby Rabbit

_________________
http://www.hackthis.co.uk


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 20, 2008 2:00 am 
Offline

Joined: Mon May 19, 2008 3:10 pm
Posts: 7
Thanks - wasn't sure quite where to put the code - in the frame document or in the individual pages? And whereabouts in the HTNL document it should go.

Here's a link to one of the pages (please don't laugh):

http://www.lancechinnian.com/itncorporate-1frame.html

Thanks!


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 20, 2008 4:21 am 
Offline
500+ Club
User avatar

Joined: Wed Feb 27, 2008 6:14 am
Posts: 929
Location: Cebu City Philippines
Flabbyrabit,

align is a deprecated attribute :(

...You should'nt be advocating it ;)

_________________
~ Get me some work, I do freelancing ~


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 20, 2008 11:59 am 
Offline
500+ Club
User avatar

Joined: Thu Jan 25, 2007 2:10 pm
Posts: 691
Location: Midlands, England
rangana wrote:
Well I see nothing wrong with it, it works and is very easy. At least I said to use DIVs instead of tables :wink:

SkyNetworks, your site does actually look really good but which bits do you wanted centred?? Also when I opened your site in IE7 there are still the scroll bars on the banner frames so i would suggest adding:
Code:
scrolling="no"
to the frames containing "banner.html" and "itncorporate-2headline.html".

Flabby Rabbit

_________________
http://www.hackthis.co.uk


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 20, 2008 12:15 pm 
Offline
500+ Club
User avatar

Joined: Wed Feb 27, 2008 6:14 am
Posts: 929
Location: Cebu City Philippines
flabbyrabbit wrote:
rangana wrote:
Well I see nothing wrong with it, it works and is very easy. At least I said to use DIVs instead of tables :wink:

Flabby Rabbit


In a public forum, we should always advocate to the "latest" and mose effective way of cure. I'm not saying that I'm good with regards to w3c standard codes, but we should always observe what the spec states, and what the validator wants.

Yes, there's nothing wrong with the deprecated align the way how your site will be displayed, but then, if you'll throw your page to the validator, you'll see how it complains about the old align attribute ;)

Align is a deprecated one, it has a CSS counterpart, and i'm certain you'll provide the fix for the OP. I'm just telling you about the deprecated ones. :)

_________________
~ Get me some work, I do freelancing ~


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 20, 2008 12:16 pm 
Offline

Joined: Mon May 19, 2008 3:10 pm
Posts: 7
Thanks Flabby Babbit, I'll definitely add the no scroll function to the banner frames.

I was hoping to be able to centre all the frames, so they appear as a block in the middle of the screen if that makes sense?

Cheers.


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 20, 2008 2:00 pm 
Offline
500+ Club
User avatar

Joined: Thu Jan 25, 2007 2:10 pm
Posts: 691
Location: Midlands, England
This doesn't seem to be as easy as i first thought. I have tried quite a few things and nothing appears to be working. I have also had a quick look on google and this seems to be a common problem without a standard answer. Most people suggest remaking the site using iFrames but that will be hard to make it look right on every machine. I suggest to leave it how it is, i personally prefer how it looks now.

Never the less i will continue trying to do this as I like a good challenge.

Sorry I couldn't be much help,
Flabby Rabbit

P.S. I will post the answer if I ever find it

_________________
http://www.hackthis.co.uk


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 20, 2008 3:54 pm 
Offline

Joined: Mon May 19, 2008 3:10 pm
Posts: 7
Thanks Flabby Rabbit - really appreciate it.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group - Flash Games - TNX Invitation Code - TNX Review


Webmaster - Excruciating - Johnathan - Kotik - Ash - Tomi - rangana - Phate - dflynn - Medley