div style and background image

Discussion in 'HTML' started by Neil D., Jul 24, 2007.

  1. Neil D.

    Neil D. Guest

    hi,

    i'm new to html and been fumbling along.

    i'm creating a page which shows a rough site layout with temperatures in
    boxes.

    initially i drew the whole thing in word but it took ages to refresh (the
    source code was a mess!! lol)

    next i thought i'd draw the layout in paint and save as a jpeg and use as a
    background image.

    problem was the page is set to refresh every 5 secs and it takes 1 sec to
    reload the page so it looked crap.

    i stumbled on < div style ............. > to make text boxes which i could
    position nicely on the screen at will........ great!

    when testing, i noticed that although there was some load time with the jpeg
    image, the div style stuff was immediate??

    i got rid of the image and tried to recreate the layout using empty text
    boxes.

    nice...... reloads immediately. is this css? is that why its quicker?

    just one problem though.. i'm struggling to recreate the layout using solely
    div style's. i end each div with a </div> and start a new one.

    but it seems (as far as absolute positioning is concerned), the preceeding
    div has a bearing on subsequent div's positioning.

    basically i was hoping to draw a big rectangle and in that have others....
    and in the others would be the text boxes with temps.

    can i achieve what i want with div's?

    is there a program where i can draw a basic line layout and is be converted
    to div's?

    or can i instruct the browser to download the background image once and
    refresh only the textboxes with the temps etc in?

    thanks

    neil
     
    Neil D., Jul 24, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. jc
    Replies:
    3
    Views:
    1,783
  2. jc
    Replies:
    1
    Views:
    1,407
    Neredbojias
    Mar 19, 2008
  3. K Viltersten

    <div ... /> and <div ...></div>

    K Viltersten, Mar 30, 2009, in forum: ASP .Net
    Replies:
    4
    Views:
    807
  4. Dwayne Madsen

    Q: Div A inside Div B is larger than Div B

    Dwayne Madsen, Jun 1, 2005, in forum: Javascript
    Replies:
    1
    Views:
    235
    David Dorward
    Jun 1, 2005
  5. mscir
    Replies:
    3
    Views:
    356
    Martin Honnen
    Jun 26, 2005
Loading...

Share This Page