We’d like to remind Forumites to please avoid political debate on the Forum.

This is to keep it a safe and useful space for MoneySaving discussions. Threads that are – or become – political in nature may be removed in line with the Forum’s rules. Thank you for your understanding.

📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!

html frames on a website?

2»

Comments

  • What other simple ways are there of making it look good then? i'm really struggling here
  • Jaffa.
    Jaffa. Posts: 1,193 Forumite
    edited 14 May 2009 at 1:45PM
    Element positioning can be used in place of frames so....

    <html>
    <head>
    <title> Your webpage title </title>
    <style type ="text/css">
    .[COLOR=SeaGreen]box1[/COLOR] !! [COLOR=Red]position: absolute; top: 25%; left: 25%; width: 200px; height: 200px; background-color: blue;[/COLOR]  }
    </style>
    </head>
    
    //-- then you would use that above code (class) in your body using dvi //
    
    <body>
    <dvi class="[COLOR=SeaGreen]box1[/COLOR]">
    <p><b>[COLOR=Red]Box 1:[/COLOR]</b> [COLOR=Red]your content here [/COLOR]</p>
    </dvi>
    </body>
    </html>
    
    
    The stuff in red you can change, stuff in green has to be the same but can differ in terms of what you want to call it, you could then go on to use .Box 2 / 3 / 4 ect...

    Note how position: absolute; top: 25%; are 2 different properties and are separated by a ;
    The value is stated after the :

    To use that you want to paste it into notepad and save it as index.html
    Also replace red bit .box 1 !! with a left curly bracket because it wont let me put that there for security purps :p
  • chunter
    chunter Posts: 2,021 Forumite
    Part of the Furniture 1,000 Posts Combo Breaker
    edited 14 May 2009 at 1:36PM
    One of the big problems which sent frames packing is search engine pickup.

    If you have 3 sections on your page, the search engine will pick it up as three different pages.
    So if a page is found using a search engine, it'll only display a third of the page.

    The lazy way of navigating is not so good now.
    You need to put the menus on each page now.
  • squeaky
    squeaky Posts: 14,129 Forumite
    10,000 Posts Combo Breaker
    Jaffa. wrote: »
    Element positioning can be used in place of frames so....
    <dvi class="[COLOR=SeaGreen]box1[/COLOR]">
    <p><b>[COLOR=Red]Box 1:[/COLOR]</b> [COLOR=Red]your content here [/COLOR]</p>
    </dvi>
    


    DVI ?? That's a new one on me. Is it more versatile than a DIV? Or was it a typo? I'm not taking the micky, honest, I'm intrigued.
    Hi, I'm a Board Guide on the Old Style and the Consumer Rights boards which means I'm a volunteer to help the boards run smoothly and can move and merge posts there. Board guides are not moderators and don't read every post. If you spot an inappropriate or illegal post then please report it to forumteam@moneysavingexpert.com. It is not part of my role to deal with reportable posts. Any views are mine and are not the official line of MoneySavingExpert.
    Never ascribe to malice that which is adequately explained by incompetence.
    DTFAC: Y.T.D = £5.20 Apr £0.50
  • squeaky
    squeaky Posts: 14,129 Forumite
    10,000 Posts Combo Breaker
    kwikbreaks wrote: »
    Added to my list of handy sites, thanks :)
    Hi, I'm a Board Guide on the Old Style and the Consumer Rights boards which means I'm a volunteer to help the boards run smoothly and can move and merge posts there. Board guides are not moderators and don't read every post. If you spot an inappropriate or illegal post then please report it to forumteam@moneysavingexpert.com. It is not part of my role to deal with reportable posts. Any views are mine and are not the official line of MoneySavingExpert.
    Never ascribe to malice that which is adequately explained by incompetence.
    DTFAC: Y.T.D = £5.20 Apr £0.50
This discussion has been closed.
Meet your Ambassadors

🚀 Getting Started

Hi new member!

Our Getting Started Guide will help you get the most out of the Forum

Categories

  • All Categories
  • 352.1K Banking & Borrowing
  • 253.5K Reduce Debt & Boost Income
  • 454.2K Spending & Discounts
  • 245.1K Work, Benefits & Business
  • 600.7K Mortgages, Homes & Bills
  • 177.4K Life & Family
  • 258.9K Travel & Transport
  • 1.5M Hobbies & Leisure
  • 16.2K Discuss & Feedback
  • 37.6K Read-Only Boards

Is this how you want to be seen?

We see you are using a default avatar. It takes only a few seconds to pick a picture.