Frames help

Discussion in 'Software' started by robertbiferi, Dec 26, 2011.

  1. robertbiferi

    robertbiferi I can't follow the rules

    I am doing a little playing around with HTML Frame code and want to know one thing?

    I am making a 2. sided Frame and all my Links will be on the left side of the Frame.

    And all the pages will be on the Right side of the Frame.

    I have it set to 30%,70%

    I know the first number 30% is the width of the Left side and the second number 70% is the width of the Right side.

    What I want to know is this I may look at this and say this all looks good the links are in the small side of the Frame on the Left and the Pages are in the big side on the Right.

    But if everybody has diferant screen RES. and setup there Browser diferant how can I knbow what it may look like for the people?
     
  2. PC-XT

    PC-XT Master Sergeant

    Each frame is like a window inside the main browser window. Resizing it should be as if you resize a separate window. It could be almost any size. You could try resizing the browser window in different ways to get a pretty good idea. Testing in other browsers can help, but frames basically look the same everywhere, aside from color. They may act different, though. For instance, some browsers let you resize them, even when they are set as non-resizable.

    It might be better to use CSS and scrolling DIVs instead of frames, as frames are becoming archaic and CSS allows more control, so you don't need to worry so much about different client setups.
     
  3. robertbiferi

    robertbiferi I can't follow the rules

    I would use CSS DiV as my Frame but when I start reading online how to do it and how they work I get sooooo cunfused.

    So I am still looking for a page that tells you how everything works and what every code does.
     
  4. mjnc

    mjnc MajorGeek

  5. robertbiferi

    robertbiferi I can't follow the rules

    I am useing this code just to make the Frame index page.

    Sould I get rid of the Meda Tag like I did or can I ad them or do you not put it in the Frame index code

    <HTML>
    <TITLE>Roberts Art Gallery</TITLE>
    <HTML>
    <FRAMESET ROWS="30%,70%">
    <FRAME SRC="page a.html">
    <FRAME SRC="page b.html">
    </FRAMSET>
    </HTML>
     
  6. PrissyChrissy

    PrissyChrissy Private E-2

    We set the pixels exactly when designing. We don't often use percents except within the confines of the div.
    Look Here.
    This is why you will have to use the horizontal scrolbar or see a margin of space on both the left and the right. :)
     
  7. robertbiferi

    robertbiferi I can't follow the rules

    Thanks for all your help but I just need one more thing?

    My Frame I setup sould be of a 2. sided Frame.

    I am making a 2. sided Frame and all the Linkjs go in the Left side and the Pages go in the Right sid.

    But the Frame displays as a Top and Bottum with all my Links in the Top and the Pages in the Bottum.

    What do I need to do to make this a side by side Frame.

    <HTML>
    <TITLE>Roberts Art Gallery</TITLE>
    <HTML>
    <FRAMESET ROWS="30%,70%">
    <FRAME NAME="A" SRC="links.html">
    <FRAME NAME="B" SRC="home.html">
    </FRAMSET>
    </HTML>
     
  8. PC-XT

    PC-XT Master Sergeant

    Change ROWS to COLS:
    PHP:
    <HTML>
    <
    TITLE>Roberts Art Gallery</TITLE>
    <
    FRAMESET COLS="30%,70%">
    <
    FRAME NAME="A" SRC="links.html">
    <
    FRAME NAME="B" SRC="home.html">
    </
    FRAMSET>
    </
    HTML>
    Also, AFAIK, you can have META tags in a frameset page.
     
  9. robertbiferi

    robertbiferi I can't follow the rules

    Thanks for the help my Links are now on the Left side of the Frame and all my Pages are on the Right side of the page.

    Now I know when you make a Link and it is on a Page in the Leftside of the Frame you have to Target the Right side of the Frame if that is were you want the new Data or Pages to show up on.

    So I make my Links like this
    <A HREF="spring.html" TARGET="b">

    Now the Name I gave my Right side of the Frame is b
    But when I click on the Link the new pages does not open on the Right side of the Frame it opens in it's own new iE window.

    Am I making my Target code incorect?
     
  10. PC-XT

    PC-XT Master Sergeant

    Remember to use the same case. If your frameset html is
    PHP:
    <HTML><head><TITLE>Roberts Art Gallery</TITLE>
    </
    head><FRAMESET COLS="30%,70%">
    <
    FRAME NAME="A" SRC="links.html">
    <
    FRAME NAME="B" SRC="home.html">
    </
    FRAMSET></HTML>
    Then use <A HREF="spring.html" TARGET="B"> to open spring.html in the frame named "B" (uppercase B)
     
  11. robertbiferi

    robertbiferi I can't follow the rules

    Thanks it all works now.
     
  12. robertbiferi

    robertbiferi I can't follow the rules

    I do want to ask about Frame and doing the same thing but with DiV Tags?

    When you do Frames you just setup the index page with the Frame code and I don't think there is to many Tags it is very small and simple to me.

    And when you make a Link a another page you just Target the Link to tell it witch side of the Frame to go.

    But when I read on the net about useing DiV Tags to setup the page in a Frame like maner they say DiV Tags use less code to do the same thing.

    I find it very hard to understand and it is more code is it not?
     
  13. PC-XT

    PC-XT Master Sergeant

    The code is different. It can be more or less, depending on how it's done. Basically, you just setup the page, then change the div's contents as needed. Links and buttons simply call scripts that change the contents, instead of linking to a new page. Trying to make it work like frames is hard. You can get a page from your own site with AJAX and transform internal links with targets into function calls to display them in the div, but this still doesn't work exactly like frames. It's a new technique. You control the page request and display yourself, rather than having the browser do it for you.
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds