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

1025 user(s) are online (3 user(s) are browsing XOOPS FAQ)


Members: 0


Guests: 1025


more...

Donat-O-Meter

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

Did you know ?

The basic structure of a XOOPS theme is similar to that of any other static website template. The primary difference is the addition of Smarty variables that interact with XOOPS to output your dynamic content.

Random question

How do I get support in my own language?