Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
How To Set Page Width to a Fixed Value
How To Set Page Width to a Fixed Value? - CSS Tutorials - Page Layout and Background Image Design
✍: FYIcenter.com
If you don't want your page to be resized when browser window is resized, you need to set your page width to an absolute value.
Many Webmasters use TABLE tags to set page width to a fixed value. But it is actually easier to use DIV tags and CSS definitions to set your page width to a fixed value. All you have to do is to insert a DIV tag right after the BODY tag, and set a width this DIV tag, as shown in the following HTML document:
<html><head>
<style type="text/css">
DIV.page {width: 7.0in}
</style>
</head><body><div class="page">
<H1>Page with Fixed Width</H1>
<p><script language="JavaScript">
for (i=0; i<100; i++) {
for (j=0; j<10; j++) {
document.write(j+' ');
}
}
</script></p>
<p align="right">By FYICenter.com</p>
</div></body></html>
If you save the document as fixedLayout.html, open it and resize the browser window,
the page size will not change as shown below:

2007-05-11, 5200👍, 0💬
Popular Posts:
How Do I Run JUnit Tests from Command Window? To run JUnit tests from a command window, you need to ...
How To Merge Values of Two Arrays into a Single Array? - PHP Script Tips - PHP Built-in Functions fo...
How To Concatenate Two Character Strings? - MySQL FAQs - Introduction to SQL Basics If you want conc...
What is XSLT? XSLT is a rule based language used to transform XML documents in to other file formats...
Why does malloc(0) return valid memory address? What's the use? malloc(0) does not return a non-NULL...