SmartFAQ is developed by The SmartFactory (https://www.smartfactory.ca), a division of InBox Solutions (https://www.inboxsolutions.net)

How do I stop background images repeating or scrolling?
One way to set a page background image is to set the bgsrc attribute of the body element, like this: Body of page goes here The trouble is that if the page goes on long enough, or is wide enough, the image background.png will be repeated ("tiled") throughout the page. Also, if the user scrolls the page, your background image will also scroll. If you do not want either or both of these things to happen, you will need to use styles rather than the bgsrc attribute:
<body style="background-image: url(background.png); 
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;"
>
Body of page goes here
</body>


The comments are owned by the author. We aren't responsible for their content.


Login

Who's Online

223 user(s) are online (4 user(s) are browsing XOOPS FAQ)


Members: 0


Guests: 223


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Did you know ?

Which folder to upload after unzipping a theme file?

Random question

How to CHMOD to 0444 ?