WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Site Design > Graphics & Design Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Graphics & Design Discussion Forum Post your graphics design questions/comments/ideas in here. Ask questions, post tutorials, discuss trends and best practices. Sub-forum for website accessibility and usability.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-17-2003, 12:39 AM
tj's Avatar
tj tj is offline
WebProWorld Member
 

Join Date: Oct 2003
Location: Alberta, Canada
Posts: 32
tj RepRank 0
Default embedding frames

I have been trying to create a frame template that would allow me to keep a center section that would not change size - ever I wanted it to be square.... I was messing with embedded frames - but could not seem to work it out so that the center section stayed square and it was actually made up of 4 different frames that would change content.... I may have to draw a picture and link it - but I thought that if I created a frame work of non adjustable frames I could get away with it . Needless to say I made a big mess and the center changed proportion anyway in the browser if you adjusted your browser window in anyway.

anybody have an idea how I might achieve this 4square effect? Does this question make any sense?

(I am about to give up on the frame Idea and stick to tables) eek
Reply With Quote
  #2 (permalink)  
Old 10-17-2003, 12:48 AM
WebProWorld Veteran
 

Join Date: Jul 2003
Location: Bristol, UK
Posts: 965
carbonize RepRank 0
Default

Four iframes in a 2 x 2 square?

ie.

Code:
<iframe><iframe>
<iframe><iframe>
__________________
Carbonize
Reply With Quote
  #3 (permalink)  
Old 10-17-2003, 12:54 AM
tj's Avatar
tj tj is offline
WebProWorld Member
 

Join Date: Oct 2003
Location: Alberta, Canada
Posts: 32
tj RepRank 0
Default

yes - that is what i am trying to achieve but I tought that I would have to put a frame work around that to get it from streching at the whim of the users' browser.
I really want the content section (the 4 frames) to be square. Is there a way to keep it from being adjustable?
Reply With Quote
  #4 (permalink)  
Old 10-17-2003, 02:28 AM
WebProWorld Veteran
 

Join Date: Jul 2003
Location: Bristol, UK
Posts: 965
carbonize RepRank 0
Default

<iframe src="blah.htm" height="200" width="200">blah</iframe>

or try sizing them with CSS
__________________
Carbonize
Reply With Quote
  #5 (permalink)  
Old 10-17-2003, 12:46 PM
tj's Avatar
tj tj is offline
WebProWorld Member
 

Join Date: Oct 2003
Location: Alberta, Canada
Posts: 32
tj RepRank 0
Default

thank you very very much! can't wait to try this.
tj
Reply With Quote
  #6 (permalink)  
Old 10-19-2003, 05:00 AM
masterpeace's Avatar
WebProWorld Veteran
 

Join Date: Jul 2003
Location: Australia
Posts: 466
masterpeace RepRank 0
Default This may work

I am not sure if it is exactly what you want, by my site has a framest which enables the layout to remain centred vertically & horizontally on any size screen.

The frameset was a fiddle to set up, but it gave me the effect that I wanted. Have a look. There may be a better way to achieve the same effect but it might be the sort of thing you are loooking for...
__________________
www.masterpeace.com.au - overdue for overhaul
www.papercutmedia.com - where I write CSS & XHTML these days
"insert witty remark here... when I think of one..."
Reply With Quote
  #7 (permalink)  
Old 10-19-2003, 03:05 PM
tj's Avatar
tj tj is offline
WebProWorld Member
 

Join Date: Oct 2003
Location: Alberta, Canada
Posts: 32
tj RepRank 0
Default

thanks Masterpeace - that is what I am looking to create - with the inside frame broken in to quads and to have those as frames.

Did you use someting like the code posted earlier on this thread to keep the center the size fixed and then not use a size in the code so the frame is what is flexible?
Reply With Quote
  #8 (permalink)  
Old 10-19-2003, 09:32 PM
masterpeace's Avatar
WebProWorld Veteran
 

Join Date: Jul 2003
Location: Australia
Posts: 466
masterpeace RepRank 0
Default Frames

Hi tj,

I used a standard frameset file http://www.masterpeace.com.au/index.htm to set it all up. If you view the source you will find that I used a frameset within a frameset within a frameset... It means the code is a bit bulky, but it gave me the effect that I wanted... There may be another way, but I haven't learnt it ...yet!

Basically I set it up using a combination of set widths & heights in pixels, and then setting up blank "edge" frames which could be resized.

The code for the frameset is below. You will likely need to adjust it, but it may give you a better idea of exactly how it all works...

Code:
<frameset cols="*,760,*" frameborder="NO" border="0" framespacing="0"> 
  <frame name="leftFrame" scrolling="NO" noresize src="blank.htm" marginwidth="0" marginheight="0">
  <frameset rows="*,442,*" frameborder="NO" border="0" framespacing="0" cols="*"> 
    <frame name="top" scrolling="NO" noresize src="blank.htm" marginwidth="0" marginheight="0">
    <frameset cols="130,630"  frameborder="NO" border="0" framespacing="0"> 
      <frame name="navFrame" scrolling="NO" src="navbar.htm" frameborder="NO" marginwidth="0" marginheight="0" >
      <frameset rows="*,125" frameborder="NO" border="0" framespacing="0"> 
        <frame src="main.htm" name="mainFrame">
        <frame name="bottomFrame" noresize src="bottom.htm">
      </frameset>
    </frameset>
    <frame name="bottom" scrolling="NO" noresize src="blank.htm" marginwidth="0" marginheight="0">
  </frameset>
  <frame name="rightFrame" scrolling="NO" noresize src="blank.htm" marginwidth="0" marginheight="0">
</frameset>
__________________
www.masterpeace.com.au - overdue for overhaul
www.papercutmedia.com - where I write CSS & XHTML these days
"insert witty remark here... when I think of one..."
Reply With Quote
  #9 (permalink)  
Old 11-05-2003, 06:57 PM
tj's Avatar
tj tj is offline
WebProWorld Member
 

Join Date: Oct 2003
Location: Alberta, Canada
Posts: 32
tj RepRank 0
Default

thanks for the code Code Masterpeace!

sorry it took me so long to get back to this forum - am packing to move...yuck
Reply With Quote
Reply

  WebProWorld > Site Design > Graphics & Design Discussion Forum
Tags: ,



Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Search Engine Optimization by vBSEO 3.2.0