Wrox Programmer Forums
|
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 12th, 2005, 03:18 AM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 363
Thanks: 0
Thanked 1 Time in 1 Post
Default Screen width problem

Hello,

  I have designed a webpage with fixed attributes(width of the table, height and images). When i run in my win 2k server and prev o/s, its working fine. When i run in XP, its displaying upto 75% of the screen width(but showing all boundaries).

<table width="770">...</table>

its good in 800x640 resolution
but in many XPs and other high graphic cards, the resolution is 1024x768. How can i change my page according to the clients screen resolution?

Thanx in advance

 
Old October 17th, 2005, 01:55 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 425
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Don't use a fixed width.

If you make it 770 pixels, that's what you'll get.

--
http://yupapa.com
 
Old October 25th, 2005, 08:01 AM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default

if you use <table width="770px"> you will have that width all the time.

If you use <table width="100%"> the table will be 100% of the screen width no matter what resolution you have!

www.crmpicco.co.uk





Similar Threads
Thread Thread Starter Forum Replies Last Post
background image width through CSS problem inOpera iamrakesh22 CSS Cascading Style Sheets 0 May 31st, 2007 06:09 AM
Screen width day10 Classic ASP Basics 1 March 2nd, 2007 12:58 PM
DataGrid Column Width Problem demivolt ASP.NET 1.0 and 1.1 Professional 1 July 22nd, 2005 09:05 AM
Datagrid Column Width resize problem Deadseven VS.NET 2002/2003 0 September 28th, 2004 09:02 AM
Width in pixels from width in percentage bsausser Classic ASP Basics 1 December 31st, 2003 02:31 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.