/ Forside / Teknologi / Udvikling / HTML / Nyhedsindlæg
Login
Glemt dit kodeord?
Brugernavn

Kodeord


Reklame
Top 10 brugere
HTML
#NavnPoint
molokyle 11184
Klaudi 5506
bentjuul 3377
severino 2040
smorch 1950
strarup 1525
natmaden 1396
scootergr.. 1320
e.c 1150
10  miritdk 1110
HELP! Very stupid question
Fra : daniel.polanco


Dato : 10-03-02 02:56

I am sure this is very basic, but is there any way to create a page where
when scrolling down the background image does not change - I mean, the text
scrolls down but the background image doesnt? i've seen it somewhere but I
dont know how to do it.

thanks a lot for your help

D



 
 
Flemming Jensen (10-03-2002)
Kommentar
Fra : Flemming Jensen


Dato : 10-03-02 07:12


"daniel.polanco" <daniel.polanco@ntlworld.com> wrote in message
news:k0zi8.7555$yc2.1053654@news2-win.server.ntlworld.com...
> I am sure this is very basic, but is there any way to create a page where
> when scrolling down the background image does not change - I mean, the
text
> scrolls down but the background image doesnt? i've seen it somewhere but I
> dont know how to do it.
>
> thanks a lot for your help
>
> D

watermark?



Lasse Reichstein Nie~ (10-03-2002)
Kommentar
Fra : Lasse Reichstein Nie~


Dato : 10-03-02 07:21

"Flemming Jensen" <FJprivat@post.dk> writes:

> "daniel.polanco" <daniel.polanco@ntlworld.com> wrote in message
> news:k0zi8.7555$yc2.1053654@news2-win.server.ntlworld.com...
> > I am sure this is very basic, but is there any way to create a page where
> > when scrolling down the background image does not change - I mean, the
> text
> > scrolls down but the background image doesnt? i've seen it somewhere but I
> > dont know how to do it.
>
> watermark?

body {background-attachment: fixed;}
/L
--
Lasse Reichstein Nielsen - lrn@hotpop.com
'Faith without judgment merely degrades the spirit divine.'

Jonas Astrup - html.~ (11-03-2002)
Kommentar
Fra : Jonas Astrup - html.~


Dato : 11-03-02 02:24

daniel.polanco wrote in dk.edb.internet.webdesign.html:
> thanks a lot for your help

Use Cascading Style Sheets (CSS). Here is an example. Please note that the
name of the background image in this example is "backgroundpicture.gif".

All the best,
Jonas

EXAMPLE:

<html>
<head>
<title>CSS fixed background</title>

<style type="text/css">
body {
   background-color: #FFCC66;
   background-image: url("backgroundpicture.gif");
   background-repeat: no-repeat;
   background-attachment: fixed;   
}
</style>

</head>
<body>
<p>Your text here...</p>
</body>
</html>

--
KONKURRENCE PÅ HTML.dk:
fortæl hvordan din drømmeeditor ser ud
og vind luksus webhoteller fra Wannafind
KLIK HER! => http://www.html.dk/editor

Søg
Reklame
Statistik
Spørgsmål : 177560
Tips : 31968
Nyheder : 719565
Indlæg : 6408952
Brugere : 218888

Månedens bedste
Årets bedste
Sidste års bedste