473,387 Members | 1,899 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Auto resize web page?

Has anyone developed a web page that automatically senses the screen
resolution of the incoming browser and dynamically resizes content
accordingly? For instance, an 800x600 resolution user might see 3 columns of
product thumbnail images, whereas a 1024x768 user would see 4 columns. Of
course, the thumbs are data-driven. Is this possible and/or advisable??

Thanks!

Jul 19 '05 #1
4 15723
Dean J. Garrett wrote on 08 sep 2003 in
microsoft.public.inetserver.asp.general:
Has anyone developed a web page that automatically senses the screen
resolution of the incoming browser and dynamically resizes content
accordingly? For instance, an 800x600 resolution user might see 3
columns of product thumbnail images, whereas a 1024x768 user would see
4 columns. Of course, the thumbs are data-driven. Is this possible
and/or advisable??

Yes it is easily done with css:

<% for i=0 to 200 %>

<img src="images/thumb-nr<%=i%>.jpg"
style="float:left;margin-right:20px;">

<% next %>
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 19 '05 #2
On Mon, 8 Sep 2003 14:36:57 -0700, "Dean J. Garrett"
<de***********@yahoo.com> wrote:
Has anyone developed a web page that automatically senses the screen
resolution of the incoming browser and dynamically resizes content
accordingly? For instance, an 800x600 resolution user might see 3 columns of
product thumbnail images, whereas a 1024x768 user would see 4 columns. Of
course, the thumbs are data-driven. Is this possible and/or advisable??

This is really not that difficult to do. Just dont use tables. As soon
as you implement tales, you end up having to decide how many columns
there are. If you have to use tables, keep the thumbnails out of it.

<table>
<tr><td colspan=2>header</td></tr>
<tr>
<td>menu??</td>
<td>
thumbnail
thumbnail
thumbnail
thumbnail
thumbnail
thumbnail
</td>
</tr>
</table>

This way, the thumbails fill the room available and wrap to thenext
row when necessary.
Jul 19 '05 #3
A good example, of what I'm talking about is amazon.com. I try their site at
various resolutions, and each time the site utilizes the screen completely.
Do they use css for this, or?

Thanks!!
"Dean J. Garrett" <de***********@yahoo.com> wrote in message
news:#U**************@TK2MSFTNGP11.phx.gbl...
Has anyone developed a web page that automatically senses the screen
resolution of the incoming browser and dynamically resizes content
accordingly? For instance, an 800x600 resolution user might see 3 columns of product thumbnail images, whereas a 1024x768 user would see 4 columns. Of
course, the thumbs are data-driven. Is this possible and/or advisable??

Thanks!

Jul 19 '05 #4
On Thu, 11 Sep 2003 16:06:43 -0700, "Dean J. Garrett"
<de***********@yahoo.com> wrote:
A good example, of what I'm talking about is amazon.com. I try their site at
various resolutions, and each time the site utilizes the screen completely.
Do they use css for this, or?

Thanks!!
"Dean J. Garrett" <de***********@yahoo.com> wrote in message
news:#U**************@TK2MSFTNGP11.phx.gbl...
Has anyone developed a web page that automatically senses the screen
resolution of the incoming browser and dynamically resizes content
accordingly? For instance, an 800x600 resolution user might see 3 columns

of
product thumbnail images, whereas a 1024x768 user would see 4 columns. Of
course, the thumbs are data-driven. Is this possible and/or advisable??


What you are looking at on Amazon is a table (in a simplistic view)
with 3 columns. The table is set to use 100% of the available width.
The first and third columns have a set width and the middle column is
allowed to fill the rest by not having a width set.

<table width=100%>
<tr>
<td width=200>left</td>
<td>
Middle fills up with this text
Middle fills up with this text
Middle fills up with this text
Middle fills up with this text
Middle fills up with this text
Middle fills up with this text
Middle fills up with this text
Middle fills up with this text
Middle fills up with this text
Middle fills up with this text
</td>
<td width=200>right</td>
</tr>
</table>

Jul 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: DejaUser | last post by:
I am using following code to keep the header info. fixed on the screen. Below the header, I have a scrollable table. I'd like to know how I can auto-reize the height of the <div> element...
3
by: Brian Mitchell | last post by:
I hate to ask this question because I'm sure it's been asked before, but how do you automatically resize the columns in a datagrid when the form is resized? Thanks!!
0
by: 23s | last post by:
Is there any way I can send a vertical value to a form's scroll position? I have a full-screen form that, at launch, contains an empty tab sheet. At run time, the user can dynamically append a...
4
by: reycri | last post by:
I have a page that works as I intend in IE but not in Firefox: <html> <head> <title>Overflow Test</title> </head> <body style='overflow:hidden; margin:0; padding:0;'> <table border='0'...
8
by: dougawells | last post by:
Hi - I'm hoping for help with the auto-generation of a hyperlinked listing of all files in a directory. The server I use does not auto-generate this. So, when someone comes to this directory and...
2
by: Abdhul Saleem | last post by:
Hi, Any code snippet or help link available on how to auto resize the dropdown list part of the combo(<select>) ? Or, is there any alternative techniques for displaying the full lenth text...
5
by: iKiLL | last post by:
Hi All, I am trying to Bulid Windows Mobile Forms Control with C# in VS2005 using CF2. On this control A lable is created and some text set for the control. My problem is that i dont know how...
1
by: piscesabhi | last post by:
Is there a way to auto resize the website, when using different browsers? I was using this javascript earlier but i don't want to specify dimensions........i would like it to automatically adjust...
7
by: Anz | last post by:
Can any one know the javascript function to auto resize the swf when resizing its pop up window. I need to auto resize the swf when i resize my popup window in which the swf is displayed. Is...
3
by: Justin | last post by:
What is the difference between automatic and DMS Auto-resize tablespace?
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.