www.webdeveloper.com
Results 1 to 5 of 5

Thread: Complete Beginner - doc height and div load questions

  1. #1
    Join Date
    Mar 2009
    Posts
    2

    Question Complete Beginner - doc height and div load questions

    Hello. I am absolutely new to webdesign and I apologize for any stupid questions I might post... these included.

    First, how do I get buttos to load documents into divs?

    And second, I am planning to make a web page that centers in any resolution, and I thought of making it fit a minimal resolution of 800x600, as it is commonly used in my country. The question is, what is the recomended height for the document, taking in account the fact that a browser would have menus and bars and such?

    Thanks already for your support.

  2. #2
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    You could use Ajax, but remember that users with JavaScript disabled will not see the content. Another way is to use frames or iframes

    Height is generally irrelevant; that is what the scrollbars are for.

    Start here: http://www.yourhtmlsource.com/myfirs...firstpage.html
    At least 98% of internet users' DNA is identical to that of chimpanzees

  3. #3
    Join Date
    Nov 2002
    Location
    Baltimore, Maryland
    Posts
    12,270
    Be very careful with AJAX, it has a tendency to not work. You'll get it working on your box but when you send it loose in the world it will not work for at least some users. If you use AJAX you have to have a non-AJAX, non-JavaScript backup. That backup might be an IFRAME in your case.
    “The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
    —Tim Berners-Lee, W3C Director and inventor of the World Wide Web

  4. #4
    Join Date
    Mar 2009
    Posts
    2
    Ok, I am using iFrames as advised, bun ran into another bump, wich seems to be quite ... how can I say ... stupidish. The main document has it's body set to text-align center, and the document loaded onto the iFrame is left-aligned, but as it loads, it becomes centered also.

    Forum help has been great so far.

    Apologies once again for another overly begginer question.

    Haruo.

  5. #5
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    The document in the iframe is only affected by it's own css, not the style of it's parent.
    Can you give a link?
    At least 98% of internet users' DNA is identical to that of chimpanzees

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles