Scholieren.com forum

Scholieren.com forum (https://forum.scholieren.com/index.php)
-   Software & Hardware (https://forum.scholieren.com/forumdisplay.php?f=20)
-   -   HTML vraag (https://forum.scholieren.com/showthread.php?t=140354)

Choong 26-06-2002 08:56

HTML vraag
 
could anybody please tell me how to "lock" the background on a page, so it doesn't scroll together with the text?

Paperz 26-06-2002 08:58

<body background="plaatje.jpg" bgproperties="fixed">

Choong 26-06-2002 09:00

he paperz bedankt

MilieuGaatVoor 26-06-2002 11:53

Ik kan geen Engels :p

Het kan ook zo (meer opties) in CSS:

PHP-code:

<style type="text/css"><!--
  
body backgroundurl(URL van je plaatfixed «norepeat» «horiz.pos» «vert.pos» }
--></
style

Wat jij wilde, plus wat extra's (tussen «») die wat meer functionaliteit toevoegen. Norepeat zorgt ervoor dat het plaatje er maar 1x staat, met de horiz.pos en vert.pos (maakt niet uit welke eenheid (bijv. px, cm, % etc)) kun je het ene (in geval van norepeat) of de eerste (als je niet norepeat gebruikt; dit is dus het plaatje linksboven) positioneren.


Alle tijden zijn GMT +1. Het is nu 01:27.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.