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.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 12-12-2007, 10:23 PM   #1
SuzzyQ
Confirmed User
 
SuzzyQ's Avatar
 
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...
SuzzyQ is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-12-2007, 10:26 PM   #2
justFred
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

Last edited by justFred; 12-12-2007 at 10:28 PM..
justFred is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-12-2007, 10:29 PM   #3
Zorgman
Confirmed User
 
Zorgman's Avatar
 
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.
__________________
---
Zorgman is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-12-2007, 10:31 PM   #4
justFred
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

Last edited by justFred; 12-12-2007 at 10:32 PM..
justFred is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-13-2007, 12:49 AM   #5
darnit
Confirmed User
 
Join Date: Jul 2001
Location: Teh Interweb
Posts: 2,439
Quote:
Originally Posted by justFred View Post
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.
Good idea to use css however here it is corrected.

<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.
darnit is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.