Quick HTML question

gtghmgtghm New
edited August 2003 in Science & Tech
I have a web page that I want to set up as 700x520.
I have the background set to exactly that.
How do I make it so that the default bowser window sizes automatically to the 700x520 when it is quried and then if someone wants to drag it bigger that the background and stuff sizes with that?

"g"

Comments

  • Geeky1Geeky1 University of the Pacific (Stockton, CA, USA)
    edited August 2003
    I may be wrong, but I know HTML pretty well (or I did... I'm out of practice) but AFAIK, there's no way to do that with HTML. Maybe XML or something, but I don't think there's any way to get HTML to do that...
  • ThraxThrax 🐌 Austin, TX Icrontian
    edited August 2003
    The only way I can think of doing it with HTML is to start the page with a web portal, then clicking on the web portal launches an unlocked floating page at the dimensions you dictate. Inside that floating page are percentage-based tables which scale with the browser window.
  • gtghmgtghm New
    edited August 2003
    Humm..., maybe HTML isn't what I need then.

    What would be the best way to make the browser size the same as the background?

    Simplest way I can think of is to direct you to my page.

    www.somoff.com

    As you can see I made a background that is based on the page size that I want 700x520 for my site and its pages. now until I added in the background it wasn't an obvious problem but now you can see if the person viewing the site has their browser window set to somerthing other than that size you can see a start and end to the background.

    So maybe I want to come up with my own canvas design, would that be the more proper way to do it? If so how would I do that?

    "g"
  • astroworpastroworp Northridge, CA
    edited August 2003
    ripped from Ferrari's website:

    < script >
    function settaggio(){
    x=(screen.availWidth-700)/2;
    y=(screen.availHeight-520)/2;
    var choose=window.open('THIS IS WHERE YOU PUT THE URL OF THE PAGE YOU WANT PEOPLE TO SEE','gp','scrollbars=no,resizable=no,width=700,height=520,status=no,location=no,toolbar=no, menubar=no,top='+x+',left='+y+',screenY=0,screenX=0');
    }
    < /script >

    just paste that into a portal page as thraxy described (without the spaces in the script tag, of course) and you should be golden. Just mess with it and you'll be fine. :)
Sign In or Register to comment.