Categories:
.NET (961)
C (387)
C++ (185)
CSS (84)
DBA (8)
General (31)
HTML (48)
Java (641)
JavaScript (220)
JSP (109)
JUnit (31)
MySQL (297)
Networking (10)
Oracle (562)
Perl (48)
Perl (9)
PHP (259)
PL/SQL (140)
RSS (51)
Software QA (28)
SQL Server (5)
Struts (20)
Unix (2)
Windows (3)
XHTML (199)
XML (59)
Other Resources:
How To Set Page Width Relative To the Browser Width
How To Set Page Width Relative To the Browser Width? - CSS Tutorials - Page Layout and Background Image Design
✍: FYIcenter.com
The easiest way to set your page width is to not set any page width. Your page width will be equal to the browser window's width minus margins. If you want to try this, you can enter the following HTML document called, browserLayout.html:
<html><body style="{margin: 0.2in}"> <H1>Page Width Equal to Browser Width</H1> <p><script language="JavaScript"> for (i=0; i<300; i++) { for (j=0; j<10; j++) { document.write(j+' '); } } </script></p> <p align="right">By FYICenter.com</p> </body></html>
Now view browserLayout.html in a Web browser. You will see a page fill with numbers.
The page width will equal to the browser window width. If you resize the browser window,
the page width will be resized too. The page will look like this:
2007-05-11, 5036👍, 0💬
Popular Posts:
How To Remove the Top White Space of Your Web Page? - CSS Tutorials - Introduction To CSS Basics The...
How To Change the Password of Another User Account? - MySQL FAQs - Managing User Accounts and Access...
How do you target a specific frame from a hyperlink? Include the name of the frame in the target att...
How Large Can a Single Cookie Be? - PHP Script Tips - Understanding and Managing Cookies How large c...
.NET INTERVIEW QUESTIONS - What is COM ? Microsoft’s COM is a technology for component software deve...