HTML Tutorial


 /help/HTML Help Forum   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
Re-post (Question on Why a BG pic would Tile)
Post new topic   Reply to topic    HTML Help Forum -> Images & Graphics
View previous topic :: View next topic  
Author Message
Kenb



Joined: 15 Jan 2007
Posts: 3

PostPosted: Mon Jan 15, 2007 1:34 am     Re-post (Question on Why a BG pic would Tile) Reply with quote

I previously did this post under INTRODUCE YOURSELF - Not the right place for this, so I will take a 2nd shot at it here.

1st post here so please be gentle. I am building a site for the first time and want a certain pic as a background on a specific page. I loaded the pic and put it on the site but the pic is displaying as a tile layout. I don't want this, just a single pic that displays on the entire screen. Sooooo, how do I do this?

This results in the pic being tiled:

<body bgcolor='#FFFFFF' text='#000000' background='images/backgrounds/clouds2.jpg'>

Thanks
Ken
Pattons3rd



Joined: 28 Dec 2006
Posts: 1212
Location: Colorado

PostPosted: Mon Jan 15, 2007 12:43 pm     Reply with quote

Here is some CSS that will stop it from repeating, but I am not sure about stretching it.
Quote:
<style type="text/css">
body{
background-image:url("image.jpeg");
background-repeat:no-repeat;
background-position: center;
}
</style>
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8748
Location: Castle Pines North, CO USA

PostPosted: Mon Jan 15, 2007 2:30 pm     Reply with quote

Background image to fit screen might help you out. More information as well on CSS background since background images were made to tile but using CSS, you can control it

_________________
Corey
My Merchant Account Blog | Merchant Accounts
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum -> Images & Graphics All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
DARFUR
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial