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

165 user(s) are online (1 user(s) are browsing XOOPS FAQ)


Members: 0


Guests: 165


more...

Donat-O-Meter

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

Did you know ?

Did you know that you can share tables in XOOPS using MySQL 5?

Random question

How do I connect to a database?