q u e r y

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • John Dunne

    q u e r y

    hey...
    19 year old graphic designer here, totally unfamiliar with programming
    content. working hard on an online portfolio at the moment but experiencing
    some difficulties. i think javascript could rescue me.

    problem:
    -set a gif file as a background image in a html document
    -it fills the whole of my internet browser window on my 17" monitor yet,
    when viewed on a smaller monitor, users have to use the ugly horizontal
    scrollbar to view the whole document.
    -surely there is a way of configuring a background image so that,
    irrespective of the user's monitor size, it just fills the window.....

    please help,
    advice/recommendations really appreciated,
    thanks very much,
    john.


  • web.dev

    #2
    Re: q u e r y

    Hi John,

    John Dunne wrote:[color=blue]
    > hey...
    > 19 year old graphic designer here, totally unfamiliar with programming
    > content. working hard on an online portfolio at the moment but experiencing
    > some difficulties. i think javascript could rescue me.[/color]
    [snip]
    [color=blue]
    > problem:
    > -set a gif file as a background image in a html document[/color]

    In this situation, you don't really need javascript to do what you want
    to do. To set an image as a background image, you can do the following
    on the <body> tag:

    <body background = "path to image/image.gif">

    Because you're a web designer, you might instead want to do it using
    css, which will be more flexible:

    <style type = "text/css">
    body
    {
    background-image: url(imate.gif);
    }
    </style>

    Doing the css way, you can specify whether you want the image to repeat
    or not, plus others. Try looking into it.
    [color=blue]
    > -it fills the whole of my internet browser window on my 17" monitor yet,
    > when viewed on a smaller monitor, users have to use the ugly horizontal
    > scrollbar to view the whole document.
    > -surely there is a way of configuring a background image so that,
    > irrespective of the user's monitor size, it just fills the window.....[/color]

    By default, when you set an image as a background, it will tile the
    window (it will fill the window by repeating). Meaning, like you said,
    if users were to view in a monitor smaller than 17", they will not get
    a scrollbar, but the image will be cut off.

    Comment

    • Hywel Jenkins

      #3
      Re: q u e r y

      In article <1122311165.330 044.65280@g44g2 000cwa.googlegr oups.com>,
      web.dev.cs@gmai l.com says...[color=blue]
      > Hi John,
      >
      > John Dunne wrote:[color=green]
      > > hey...
      > > 19 year old graphic designer here, totally unfamiliar with programming
      > > content. working hard on an online portfolio at the moment but experiencing
      > > some difficulties. i think javascript could rescue me.[/color]
      > [snip]
      >[color=green]
      > > problem:
      > > -set a gif file as a background image in a html document[/color]
      >
      > In this situation, you don't really need javascript to do what you want
      > to do. To set an image as a background image, you can do the following
      > on the <body> tag:
      >
      > <body background = "path to image/image.gif">[/color]

      "background " was deprecated in 1997. Move on and catch up.

      --
      Hywel

      Kill the Crazy Frog

      Comment

      Working...