Flash Games
 FAQ   Search   Memberlist   Usergroups   Register  Profile   Log in to check your private messages   Log in 


Centering Frames in HTML



 

Post new topic   Reply to topic  
   DEVPPL Forum Index -> HTML Forum
View previous topic :: View next topic  
Author Message
SkyNetworks



Joined: 19 May 2008
Posts: 4

PostPosted: Mon May 19, 2008 3:29 pm    Post subject: Centering Frames in HTML Reply with quote

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.
Back to top
View user's profile Send private message
flabbyrabbit
500+ Club


Joined: 25 Jan 2007
Posts: 569
Location: UK

PostPosted: Mon May 19, 2008 5:02 pm    Post subject: Re: Centering Frames in HTML Reply with quote

Code:
<div align=center>
code for frame
</div>

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

Flabby Rabbit
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
SkyNetworks



Joined: 19 May 2008
Posts: 4

PostPosted: Tue May 20, 2008 2:00 am    Post subject: Re: Centering Frames in HTML Reply with quote

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!
Back to top
View user's profile Send private message
rangana
500+ Club


Joined: 27 Feb 2008
Posts: 563
Location: Cebu City Philippines

PostPosted: Tue May 20, 2008 4:21 am    Post subject: Re: Centering Frames in HTML Reply with quote

Flabbyrabit,

align is a deprecated attribute Sad

...You should'nt be advocating it Wink
Back to top
View user's profile Send private message Yahoo Messenger
flabbyrabbit
500+ Club


Joined: 25 Jan 2007
Posts: 569
Location: UK

PostPosted: Tue May 20, 2008 11:59 am    Post subject: Re: Centering Frames in HTML Reply with quote

rangana wrote:
align is a deprecated attribute Sad
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
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
rangana
500+ Club


Joined: 27 Feb 2008
Posts: 563
Location: Cebu City Philippines

PostPosted: Tue May 20, 2008 12:15 pm    Post subject: Re: Centering Frames in HTML Reply with quote

flabbyrabbit wrote:
rangana wrote:
align is a deprecated attribute Sad
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 Wink

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. Smile
Back to top
View user's profile Send private message Yahoo Messenger
SkyNetworks



Joined: 19 May 2008
Posts: 4

PostPosted: Tue May 20, 2008 12:16 pm    Post subject: Re: Centering Frames in HTML Reply with quote

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.
Back to top
View user's profile Send private message
flabbyrabbit
500+ Club


Joined: 25 Jan 2007
Posts: 569
Location: UK

PostPosted: Tue May 20, 2008 2:00 pm    Post subject: Re: Centering Frames in HTML Reply with quote

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
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
SkyNetworks



Joined: 19 May 2008
Posts: 4

PostPosted: Tue May 20, 2008 3:54 pm    Post subject: Re: Centering Frames in HTML Reply with quote

Thanks Flabby Rabbit - really appreciate it.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    DEVPPL Forum Index -> HTML Forum All times are GMT + 1 Hour
Page 1 of 1

 
 
Welcome to DEVPPL.com
You are not logged in, which means that you can't post in the forums.
Click here to Register

If you are a current member here on DEVPPL, please login below:

User: Pass:
Log me on automatically each visit:

 


Powered by phpBB © 2001, 2005 phpBB Group - Modified by DEVPPL

Flash Games - Sitemap