Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-15-2009, 05:35 PM   PM User | #1
andreasb
New to the CF scene

 
Join Date: Dec 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
andreasb is an unknown quantity at this point
Frames in "center"?

Hello,

I'm trying to redesign a website, but I need some help.
We have to use frames for this, even though it might be a bit outdated.
The problem is that once I try to make a frame it will be to the very left or right at the screen.
I want to be able to center them, like in the image above:



The light gray part is supposed to be a background, and then the dark gray parts are the frames.
How can this be done?
The "main frame" needs to be able to update to some other site once someone clicks a link in the "menu frame".
andreasb is offline   Reply With Quote
Old 12-15-2009, 07:54 PM   PM User | #2
Jazzo
Regular Coder

 
Jazzo's Avatar
 
Join Date: Apr 2008
Location: New York City
Posts: 164
Thanks: 20
Thanked 2 Times in 2 Posts
Jazzo is an unknown quantity at this point
I don't know if this will work, but try in your frameset tag: <frameset style="text-align:center">
__________________
~Julian
14 y/o web developer, drummer, and Bridge player
Jazzo is offline   Reply With Quote
Old 12-15-2009, 07:57 PM   PM User | #3
andreasb
New to the CF scene

 
Join Date: Dec 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
andreasb is an unknown quantity at this point
Well, I'm not trying to align the text to center.
andreasb is offline   Reply With Quote
Old 12-15-2009, 07:59 PM   PM User | #4
Jazzo
Regular Coder

 
Jazzo's Avatar
 
Join Date: Apr 2008
Location: New York City
Posts: 164
Thanks: 20
Thanked 2 Times in 2 Posts
Jazzo is an unknown quantity at this point
Then, within each frame, set text-align:left. It will override it.
__________________
~Julian
14 y/o web developer, drummer, and Bridge player
Jazzo is offline   Reply With Quote
Old 12-15-2009, 11:28 PM   PM User | #5
Pepe, the bull
Regular Coder

 
Pepe, the bull's Avatar
 
Join Date: Feb 2005
Location: Vancouver, WA
Posts: 163
Thanks: 1
Thanked 16 Times in 16 Posts
Pepe, the bull is on a distinguished road
Code:
<frameset style="width:600px; margin:0 auto;" framespacing="20px" rows="80,*" cols="*" frameborder="no" border="0">
Set the side margins of the frameset to auto.
__________________
Pepe, the bull

Last edited by Pepe, the bull; 12-15-2009 at 11:31 PM..
Pepe, the bull is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:03 AM.


Advertisement
Log in to turn off these ads.