![]() |
Quick HTML Question
How do I keep a background image form tileing across the page?
<body background="i dont want this pic to tile.jpg"> Thanks... |
by using Styling
<body background="i dont want this pic to tile.jpg" style="background-repeat: no-repeat"> http://www.w3schools.com/css/tryit.a...peat_no-repeat |
<body style="background:#FFFFFF url('i dont want this pic to tile.jpg') no-repeat top; padding-top:0px; margin-top:0px;">
shows a white background with your image in the top. |
though if you need more than just the styling you'll want to put the style information in the header such as:
<head> <style type="text/css"> body { background-image: url('i don't want this image to tile.jpg'); background-repeat: no-repeat font-family: some font color: some color whatever: other CSS } </style> </head> and your code will be more readable and save you time. |
Quote:
<style type="text/css"> body { background-image: url('i don't want this image to tile.jpg'); background-repeat: no-repeat; font-family: some font; color: some color; whatever: other CSS; } </style> You need the ";" after each style classification. |
All times are GMT -7. The time now is 06:52 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123