PDA

View Full Version : General questions about backgrounds and gifs



webdesignee
03-09-2006, 10:26 PM
I made a water mark on a picture I wanted to use for a background. For some reason dream weaver kept reading it as a ping file and the change didnt show up. What is the standard setting for applying a background ? by setting i mean what are the coordinates in the x and y parts. Why did dream weaver not notice the changes?

thanks,
web designee

Twey
03-10-2006, 07:42 AM
You shouldn't set a background absolutely-positioned; it will break the script in unusual resolutions.

<style type="text/css">
background-image: url(background.gif);
background-color: black;
background-position: center;
</style>

webdesignee
03-10-2006, 07:43 PM
How do you get the backgound to strecth to fit the whole scree in dream weaver? I have tinkered with it some and its still messy looking. I dont like the repeating effect cuz it just looks bad.

Twey
03-10-2006, 07:46 PM
I don't know about Dreamweaver -- or stretching, for that matter -- but to disable repeating:
background-repeat: no-repeat;

jscheuer1
03-16-2006, 04:26 PM
Background images don't stretch, period. Repeat, center or position it. And be kind to low bandwidth users, keep the background image's byte size low, around 10K tops.

djr33
03-23-2006, 09:58 AM
The only thing you could do would be to create an actual image, then a new layer.

<html>...
<img src="IMAGE.jpg" width=100% height=100%>
<div position=absolute left=1 right=1 z-index=2>
YOUR CONTENT
</div>
...</html>

...but that's gonna give you some ugly errors that I'm not sure how to deal with.. it might just have problems. It might work great, though. This is more hypothetical than really useful, but if you're set on having that, then go ahead.

DISCLAIMER: I'm pretty sure the code in the div command is wrong. I'm tired and don't feel like looking it up right now. If you really want me to, lemme know and I'll look into it more. It's kinda complex... I just don't remember the exact syntax.