Submit Your Article Forum Rules

Results 1 to 9 of 9

Thread: embedding frames

  1. #1

    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

  2. #2
    Senior Member
    Join Date
    Jul 2003
    Posts
    519
    Four iframes in a 2 x 2 square?

    ie.

    Code:
    <iframe><iframe>
    <iframe><iframe>

  3. #3
    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?

  4. #4
    Senior Member
    Join Date
    Jul 2003
    Posts
    519
    <iframe src="blah.htm" height="200" width="200">blah</iframe>

    or try sizing them with CSS

  5. #5
    thank you very very much! can't wait to try this.
    tj

  6. #6
    Senior Member masterpeace's Avatar
    Join Date
    Jul 2003
    Posts
    329

    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..."

  7. #7
    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?

  8. #8
    Senior Member masterpeace's Avatar
    Join Date
    Jul 2003
    Posts
    329

    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..."

  9. #9
    thanks for the code Code Masterpeace!

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

Similar Threads

  1. embedding video
    By johndoa2000 in forum Flash Discussion Forum
    Replies: 5
    Last Post: 02-23-2010, 07:16 PM
  2. embedding youtube videos
    By efernie in forum Web Programming Discussion Forum
    Replies: 9
    Last Post: 05-23-2009, 03:05 PM
  3. Embedding Video
    By Runt3 in forum Graphics & Design Discussion Forum
    Replies: 20
    Last Post: 09-12-2006, 02:15 PM
  4. Embedding Video into websites
    By clivemcg in forum Affiliate Marketing Discussion Forum
    Replies: 0
    Last Post: 11-09-2004, 04:56 PM
  5. Frames (for newbie, no frames exp.)
    By dschultze in forum Graphics & Design Discussion Forum
    Replies: 1
    Last Post: 02-10-2004, 10:26 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •