954,604 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How to set html page size attributes

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

tiffythom
Newbie Poster
2 posts since Mar 2006
Reputation Points: 10
Solved Threads: 0
 

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.

tgreer
Made Her Cry
Team Colleague
2,118 posts since Dec 2004
Reputation Points: 227
Solved Threads: 37
 

Javascript can only size or resize a window that has been opened with javascript.

FC Jamison
Posting Pro in Training
Team Colleague
446 posts since Jun 2004
Reputation Points: 92
Solved Threads: 21
 

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

monkeymack2
Newbie Poster
2 posts since Apr 2010
Reputation Points: 10
Solved Threads: 0
 

hi every one
this is the way to set HTML page

<HTML>
<HEAD>
<TITLE>A simple frameset document</TITLE>
</HEAD>
<FRAMESET cols="20%, 80%">
  <FRAMESET rows="100, 200">
      <FRAME src="contents_of_frame1.html">
      <FRAME src="contents_of_frame2.gif">
  </FRAMESET>
  <FRAME src="contents_of_frame3.html">
  <NOFRAMES>
      <P>This frameset document contains:
      <UL>
         <LI><A href="contents_of_frame1.html">Some neat contents</A>
         <LI><IMG src="contents_of_frame2.gif" alt="A neat image">
         <LI><A href="contents_of_frame3.html">Some other neat contents</A>
      </UL>
  </NOFRAMES>
</FRAMESET>
</HTML>
LaurenJade
Newbie Poster
4 posts since Apr 2010
Reputation Points: 10
Solved Threads: 0
 

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

Cheers
--
monkeymack2

monkeymack2
Newbie Poster
2 posts since Apr 2010
Reputation Points: 10
Solved Threads: 0
 

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

almostbob
Posting Sensei
3,149 posts since Jan 2009
Reputation Points: 571
Solved Threads: 376
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You