Dynamic Pages

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Shane Malden

    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


  • Erwin Moller

    #2
    Re: Dynamic Pages

    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
    [color=blue]
    > 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.[/color]

    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?
    [color=blue]
    > 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?[/color]

    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.
    [color=blue]
    > 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.[/color]

    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 scriptinglangua ge. (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:[color=blue]
    > Also, what page layout is better to use.. eg.. html, php,asp, etc.[/color]

    doesn't make a lot of sense.

    I would advise you to have a look at this site, it is great for starters:
    W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.


    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
    [color=blue]
    >
    > I appreciate any assistance anyone is able to provide.
    >
    > Regards,
    > Shane[/color]


    Comment

    • Geoff Berrow

      #3
      Re: Dynamic Pages

      I noticed that Message-ID: <41fbacbd$0$289 83$e4fe514c@new s.xs4all.nl>
      from Erwin Moller contained the following:
      [color=blue]
      >PS: I the case I completely misinterpreted your questions, just shoot me. :P[/color]

      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/

      Comment

      • WindAndWaves

        #4
        Re: Dynamic Pages


        "Shane Malden" <shane@nedlam.c om> wrote in message news:s4NKd.1401 27$K7.109388@ne ws-server.bigpond. net.au...[color=blue]
        > 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
        >
        >[/color]

        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


        Comment

        • Tony Marston

          #5
          Re: Dynamic Pages

          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

          This is Tony Marston's web site, containing personal information plus pages devoted to the Uniface 4GL development language, XML and XSL, PHP and MySQL, and a bit of COBOL




          "Shane Malden" <shane@nedlam.c om> wrote in message
          news:s4NKd.1401 27$K7.109388@ne ws-server.bigpond. net.au...[color=blue]
          > 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
          >
          >[/color]


          Comment

          Working...