Forum Home
Press F1
 
Thread ID: 44540 2004-04-22 08:31:00 Frontpage 2002 background graphic karent (5222) Press F1
Post ID Timestamp Content User
231165 2004-04-22 08:31:00 Can someone please tell me how to stop the background picture on a web page from tiling? I want the image to appear behind the text elements on the page as a sort of "watermark" background. Also, is there any way to make the white space around a graphic transparent on a web page, i.e., it lets the background show through? Thanks. karent (5222)
231166 2004-04-22 10:51:00 Upload a page so we can look thanks. I need to look at things. mejobloggs (264)
231167 2004-04-22 11:17:00 > Can someone please tell me how to stop the background
> picture on a web page from tiling? I want the image
> to appear behind the text elements on the page as a
> sort of "watermark" background.

As far as I am aware you cant, the only way you can stop that is by using tables or making the text/& or the content of the page smaller, in till the image stops tiling (& you have to do this even if you are using tables as well), I hope that makes sense, if not post back here :)

>Also, is there any
> way to make the white space around a graphic
> transparent on a web page, i.e., it lets the
> background show through? Thanks.

Have you tried saving the image as a *.gif? Or as a transparent gif?
stu120404 (268)
231168 2004-04-22 11:50:00 Hey karent,

There are a few ways of doing the watermark.

JavaScript and CSS are the ones I know of that can allow this watermark type image in the background, just remember to not make the watermark a colour that'd make it hard for the readers to read content over the top of it.

The white space around a graphic transparent, if it's a PNG or GIF file you can just remove the whitespace and save as a transparent image. There's another method, but it's more web savvy which is done through the scripting language, it's possible the best method but requires a lot to be done for it to work how you want it.


Noel Nosivad
Noel Nosivad (389)
231169 2004-04-22 13:06:00 Edit the graphic you want as the background and make it 1020px wide, it will still tile as you scroll down the page tho.
You need to use DHTML if you require a proper water mark that sits in the middle of the page regardless of how big the browser window is or whether the page is scrolled.
This link should be what you are after.
www.dynamicdrive.com

Rob
Rob99 (151)
231170 2004-04-22 13:07:00 bloggsworld.orcon.net.nz

Like that?
mejobloggs (264)
231171 2004-04-22 13:07:00 My one is better, it doesnt tile. mejobloggs (264)
231172 2004-04-22 13:11:00 Eh? for that javascript one, it will not tile . Makeing a picture 1000px wid is not advisable .

The css one I did will not tile, and sit in the middle of the page, with a small image, and you can write on top of it also . In fact, it does not have to be in the middle, it can be anywhere on the screen you want .
mejobloggs (264)
231173 2004-04-22 13:17:00 > > Can someone please tell me how to stop the
> background
> > picture on a web page from tiling? I want the
> image
> > to appear behind the text elements on the page as
> a
> > sort of "watermark" background .
>
> As far as I am aware you cant, the only way you can
> stop that is by using tables or making the text/& or
> the content of the page smaller, in till the image
> stops tiling (& you have to do this even if you are
> using tables as well), I hope that makes sense, if
> not post back here :)
>
> > Also, is there any
> > way to make the white space around a graphic
> > transparent on a web page, i . e . , it lets the
> > background show through? Thanks .
>
> Have you tried saving the image as a * . gif? Or as a
> transparent gif?



Eh again? Have I misintepreted the requirements? Our native dreamweaver guru can not do it?

jokes stu ;-)

Bye the way, that is what you want isnt it?
mejobloggs (264)
231174 2004-04-22 13:21:00 > The white space around a graphic transparent, if it's
> a PNG or GIF file you can just remove the whitespace
> and save as a transparent image .


I don't think IE supports transparent PNG's yet . At least, not last time i tried (last week?)

Sorry, I am making a complete mess with my postings . I will probably post a few more if I remember ay?

Stick this in your <head > section

<style type="text/css" >
body {
background: url(images/home . jpg) no-repeat fixed center center;

}
</style >
mejobloggs (264)
1 2 3