943,946 Members | Top Members by Rank

Ad:
Aug 16th, 2006
-1

How to set html page size attributes

Expand Post »
I need to know how to set an html page to only open at a set size. I had learned this in my basic htm code class a long time ago but have forgotten and can't seem to find any instructions about how to do this.

I have dreamweaver 8 but am pretty new in the software and can't seem to find any help in the Help section

Thanks
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
tiffythom is offline Offline
2 posts
since Mar 2006
Aug 17th, 2006
0

Re: How to set html page size attributes

There is no such thing as a "page size" in HTML. The user can size their browser to any size they wish. That's as it should be.

JavaScript does provide, however, a window.resize() method. Using it creates a very negative user experience. The only way I've seen this work well is for your main page to open a new window, and size the new window. Use the window.open() method.
Team Colleague
Reputation Points: 227
Solved Threads: 37
Made Her Cry
tgreer is offline Offline
1,697 posts
since Dec 2004
Aug 18th, 2006
0

Re: How to set html page size attributes

Javascript can only size or resize a window that has been opened with javascript.
Team Colleague
Reputation Points: 92
Solved Threads: 21
Posting Pro in Training
FC Jamison is offline Offline
436 posts
since Jun 2004
Apr 5th, 2010
0
Re: How to set html page size attributes
I have a similar problem. I am designing a website but would like it so that if someone using a smaller screen is viewing the site, my site shrink to fit there browser size. But I would also like it to stop shrinking at a certain size
Reputation Points: 10
Solved Threads: 0
Newbie Poster
monkeymack2 is offline Offline
2 posts
since Apr 2010
Apr 5th, 2010
0
Re: How to set html page size attributes
hi every one
this is the way to set HTML page
HTML and CSS Syntax (Toggle Plain Text)
  1. <HTML>
  2. <HEAD>
  3. <TITLE>A simple frameset document</TITLE>
  4. </HEAD>
  5. <FRAMESET cols="20%, 80%">
  6. <FRAMESET rows="100, 200">
  7. <FRAME src="contents_of_frame1.html">
  8. <FRAME src="contents_of_frame2.gif">
  9. </FRAMESET>
  10. <FRAME src="contents_of_frame3.html">
  11. <NOFRAMES>
  12. <P>This frameset document contains:
  13. <UL>
  14. <LI><A href="contents_of_frame1.html">Some neat contents</A>
  15. <LI><IMG src="contents_of_frame2.gif" alt="A neat image">
  16. <LI><A href="contents_of_frame3.html">Some other neat contents</A>
  17. </UL>
  18. </NOFRAMES>
  19. </FRAMESET>
  20. </HTML>
Last edited by Ezzaral; Apr 6th, 2010 at 4:30 pm. Reason: Added code tags. Please use them to format any code that you post.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
LaurenJade is offline Offline
4 posts
since Apr 2010
Apr 5th, 2010
0

Thanks

With a few wee changes I managed to get that code to work with my site.

Cheers
--
monkeymack2
Reputation Points: 10
Solved Threads: 0
Newbie Poster
monkeymack2 is offline Offline
2 posts
since Apr 2010
Apr 5th, 2010
0
Re: How to set html page size attributes
framesets are outdated, and if you were to look ath the results of whatever code you developed from the BS supplied as a fix on any other browsers or screen resolution, it looks nothing like you expect
current best practice for screen layout ueses ems and % sized elements as per W3c guidelines, and nothing uses frames
Reputation Points: 562
Solved Threads: 368
Posting Maven
almostbob is offline Offline
2,970 posts
since Jan 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in HTML and CSS Forum Timeline: Is there a way I can open two different pages when I click the same link?
Next Thread in HTML and CSS Forum Timeline: CSS Positioning - IE 6 and mozilla





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC