473,386 Members | 1,795 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,386 software developers and data experts.

Dynamic Pages

Hi, I am trying to create a page which will automaticlly change the size of
tables/graphics etc based on the screen resolution. Eg, if someone is using
a 800x600 the page layout will utilise this. If the same webpage is
diaplayed on a 1024x768 or 1280X1024 the cells are adjusted according. By
doing something like this could you make the logo change size by using a
percent size in a table cell or is there a better method than tables? If
anyone is able to help with tips or any examples (code or url reference) it
would be appreciated.

Also, what page layout is better to use.. eg.. html, php,asp, etc. The
site will be hosted on apache on a Linux Server.

I appreciate any assistance anyone is able to provide.

Regards,
Shane
Jul 17 '05 #1
4 1617
Shane Malden wrote:

Hi Shane,

Your questions, however elegantly stated, shows you miss some important
points.
First of all: You question has nothing to do with PHP, but with HTML.
But that is ok, we all know HTML over here. :P
Hi, I am trying to create a page which will automaticlly change the size
of tables/graphics etc based on the screen resolution. Eg, if someone is
using a 800x600 the page layout will utilise this. If the same webpage is
diaplayed on a 1024x768 or 1280X1024 the cells are adjusted according.
Have you considered using tables with a RELATIVE (percentage) widthtag?
Like this:

<table width=100%>
<tr>
<td width=60%>
elem1
</td>
<td width=40%>
elem2
</td>
</tr>
</table>

Or is that what you were describing?
By
doing something like this could you make the logo change size by using a
percent size in a table cell or is there a better method than tables?
Logo?
Do you mean an image?

An image can be scaled anyway you want by adding width and height tag to the
IMG-tag.
(If it looks right depends of course)

Or do you want to process the image on the server and resample it?
The latter is more difficult.
If
anyone is able to help with tips or any examples (code or url reference)
it would be appreciated.

Also, what page layout is better to use.. eg.. html, php,asp, etc. The
site will be hosted on apache on a Linux Server.
This question doesn't make sense.

This is how it works:
A page is requested BY a client (your visitors browser probably) FROM a
server (eg http://www.yoursite.com/somepage.html).

The browser receives an answer from the server.
In the above case the server returns a page called somepage.html.
Your browser displays it.

When you are talking about PAGE LAYOUT that is all there is to it.
The HTML returned by the server defines the pagelayout.
You can of course use technics like CCS to model this, but it is all HTML.

IF you want to do anything else on your website besides returned pre-made
html-pages, you start using a scriptinglanguage. (like rescaling images, or
use databases)
PHP and ASP are such languages.

They run at the server, and the client (visitor) doesn't really know what
happens on the server as long as an HTML-page is returned.

So your question: Also, what page layout is better to use.. eg.. html, php,asp, etc.
doesn't make a lot of sense.

I would advise you to have a look at this site, it is great for starters:
http://www.w3schools.com

It contains lots of resources and basic courses.
You can learn PHP, HTML, DHTML, Javascript, database, etc. etc.
All kinds of really valuable webtechnics.

Good luck.

Regards,
Erwin Moller

PS: I the case I completely misinterpreted your questions, just shoot me. :P

I appreciate any assistance anyone is able to provide.

Regards,
Shane

Jul 17 '05 #2
I noticed that Message-ID: <41***********************@news.xs4all.nl>
from Erwin Moller contained the following:
PS: I the case I completely misinterpreted your questions, just shoot me. :P


Well I thought you did a great job :-)

--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Jul 17 '05 #3

"Shane Malden" <sh***@nedlam.com> wrote in message news:s4********************@news-server.bigpond.net.au...
Hi, I am trying to create a page which will automaticlly change the size of
tables/graphics etc based on the screen resolution. Eg, if someone is using
a 800x600 the page layout will utilise this. If the same webpage is
diaplayed on a 1024x768 or 1280X1024 the cells are adjusted according. By
doing something like this could you make the logo change size by using a
percent size in a table cell or is there a better method than tables? If
anyone is able to help with tips or any examples (code or url reference) it
would be appreciated.

Also, what page layout is better to use.. eg.. html, php,asp, etc. The
site will be hosted on apache on a Linux Server.

I appreciate any assistance anyone is able to provide.

Regards,
Shane


One of the issues you will have to deal with is that font-size can not be controlled by you, but only by the user ....

Flash offers a nice way to scale for window size (see: www.nztravelco.com)

- Nicolaas
Jul 17 '05 #4
You are missing a fundamental point about HTML and the world wide web. If
you design your page properly it will render adequately whatever the screen
resolution of the client device. It may not render EXACTLY as you want it
to, but that is irrelevant. It is not for you to tell the client what screen
resolution to use, what fonts to use, or what font sizes to use. I can set
my PC to whatever resolution I want. I may set individual browser windows to
whatever size I want. I may decide to set the font sizes bigger or smaller
than you specified. I may not have the pretty font that you use on my PC, in
which case the browser will pick the nearest alternative. In other words, in
the world of HTML it is the individual client that makes these final
rendering decisions, not you.

You can only have such control when your output is print to a page size that
is fixed by you, where everything is controlled by you. HTML is different,
so learn to live with the difference.

--
Tony Marston

http://www.tonymarston.net

"Shane Malden" <sh***@nedlam.com> wrote in message
news:s4********************@news-server.bigpond.net.au...
Hi, I am trying to create a page which will automaticlly change the size
of
tables/graphics etc based on the screen resolution. Eg, if someone is
using
a 800x600 the page layout will utilise this. If the same webpage is
diaplayed on a 1024x768 or 1280X1024 the cells are adjusted according. By
doing something like this could you make the logo change size by using a
percent size in a table cell or is there a better method than tables? If
anyone is able to help with tips or any examples (code or url reference)
it
would be appreciated.

Also, what page layout is better to use.. eg.. html, php,asp, etc. The
site will be hosted on apache on a Linux Server.

I appreciate any assistance anyone is able to provide.

Regards,
Shane

Jul 17 '05 #5

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

Similar topics

0
by: Roel Wuyts | last post by:
CALL FOR CONTRIBUTIONS International Workshop on Revival of Dynamic Languages http://pico.vub.ac.be/~wdmeuter/RDL04/index.html (at OOPSLA2004, Vancouver, British Columbia, Canada, October...
0
by: only_me | last post by:
Not a coding question as such but highly related to asp/dynamic pages issues : has anyone any suggestions on the following ASP sites are generally (always) of a dynamic nature, pages can be...
3
by: K.S.Liang | last post by:
Hi all, 1> If there are more than one dynamic linking libraries in the file system, how do I know which one is loaded into system? Any C library or system call can tell me which *.so or *.sl is...
10
by: moondaddy | last post by:
I'm writing an ecommerce app in asp.net/vb.net and need to make the pages searchable and crawlable by spiders, particularly Google's. As far as I know, if my pages's contents are mostly populated...
8
by: Sandy Pittendrigh | last post by:
I have a how-to-do-it manual like site, related to fishing. I want to add a new interactive question/comment feature to each instructional page on the site. I want (registered) users to be able...
10
by: maxvalery | last post by:
Because dynamic pages do not get indexed well in search engines, is there a decent API out there to parse through the site and write pages as plain html automatically? I noticed some WordPress and...
10
by: jflash | last post by:
Hello all, I feel dumb having to ask this question in the first place, but I just can not figure it out. I am wanting to set my site up using dynamic urls (I'm assuming that's what they're...
5
by: pittendrigh | last post by:
There must be millions of dynamically generated html pages out there now, built by on-the-fly php code (and jsp, perl cgi, asp, etc). Programatic page generation is transparently useful. But...
0
by: Alexandre Bergel | last post by:
Dear colleague, Please, note that after the workshop, best papers will be selected, and a second deadline will then be set regarding preparation of the Electronic Communications of the...
9
by: pbd22 | last post by:
Hi. This is just a disaster management question. I am using XMLHTTP for the dynamic loading of content in a very crucial area of my web site. Same as an IFrame, but using XMLHTTP and a DIV. I...
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: 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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.