Fork me on GitHub

Theme background question  Bottom

  • ok, here's what I'm trying to do. I want to put an image as my background, but I just want it to show up in the upper left. The image is like 400x400. I don't want it to repeat, and I want it to be behind everything on the page. I was thinking DHTML is probably the way to do it, but I don't know DHTML yet. Is this possible, and if so, could someone give me an example of a little bit of code that might do this?
    Thanks in advance,
    Vinny
  • Edit style.css and styleNN.css and on our body tag do the following

    body{ background-image: URL(../images/b1.gif); background-repeat: no-repeat; background-position: left top}

    --
    Zikula Themes
  • body{ background: URL(../images/b1.gif) no-repeat left top; }

    --
    -Lobos
    Professional PHP Framework Services: Concept, Development and Deployment
  • I love you guys icon_smile
  • Me thinks Lobos is a perfectionist :)
  • Me thinks warrick jar jar binks
  • ROFL.

    Now that was actually a good retort. My hat is off to you ....
  • warrick

    Me thinks Lobos is a perfectionist :)


    LOL if possible it is good to cut down on HTML wherever possible - this is an easy way to cut down on CSS size... rember it does have to be loaded, just like images, etc. Imagine 300 lines of such code the saving in filesize could be quite resonable to say the least!

    My obsession with this cutting of file size comes from my 56k dialup days when 10kb meant 2 seconds :(

    It is also best to put all the HTML tag attributes as CSS elements and then put them in an external stylesheet - this means the sheet only needs to be loaded once and is then cached thus giving a substantial saving in load time.

    This all doesn't really matter if you have broadband, but is a good idea if you have pity on the poor unfortunate masses that still use 56k dialup...

    --
    -Lobos
    Professional PHP Framework Services: Concept, Development and Deployment

This list is based on users active over the last 60 minutes.