![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Industry Role:
Join Date: Dec 2006
Location: Along the shore.
Posts: 1,557
|
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... |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Mar 2007
Posts: 922
|
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
__________________
Vote Bill Cosby 2012 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Join Date: Aug 2002
Location: Sydney, Australia
Posts: 6,103
|
<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.
__________________
--- |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: Mar 2007
Posts: 922
|
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.
__________________
Vote Bill Cosby 2012 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 | |
Confirmed User
Join Date: Jul 2001
Location: Teh Interweb
Posts: 2,439
|
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. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |