Web Design Software: Backgrounds in dreamweave MX pages

started by Jerry on Oct 7, 2004 — RSS Feed

Jerry Jerry
Posts: 3

I designing for the first time a website with dreamweaver (instead of frontpage). It's a nice experience but one thing i don't find. On my website i wish to place a background in watermark style (standing still while you move you scrollbar). Is it possible to realise this in dreamweaver.

Please help!

Jerry.

Baxter Baxter
Posts: 157

Of course. But the first thing you have to realize is that dreamweaver is nothing but a convenience. It does nothing that  - when you come right down to it - notepad and an ftp client can't do.
That's not to say it's a bad program. It's not. I'm saying that all it's doing is pushing around the same html and css you can push around yourself.

Which brings us to the HOW... simplest way would be to use the css background property.

You can either use dreamweaver's built-in css editor, or just put in the head

<style type="text/css">
body (or whatever element you want the background to be on)
{
       background-color: #ffffff;
     background-attachment: fixed;
     background-image: url(whatever.jpg);
     background-repeat: no-repeat;
     background-position: center center;
}
</style>

or the shorthand version
<style type="text/css">
body {background: #fff url(whatever.jpg) fixed no-repeat center center;}
</style>

Jerry Jerry
Posts: 3

Baxter,

Thanks for your solutions, it worked fine. Just what i needed.!

Jerry.

You must login to reply