Background Image

This is a discussion on "Background Image" within the Web Page Design section. This forum, and the thread "Background Image are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Dec 19th, 2005, 07:46
Junior Member
Join Date: Dec 2005
Location: Dublin
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Background Image

Hey,

I am using a background image that I only want to appear once. At the moment it is appearing to "loop"

See attached screenshot. The highlighted turquoise box is where the background is appearing where it is

suppossed to be. Further down the page it is re-appearing and I dont want it to. The highlighted red box is

where the background is looping. How do I stop this happening?

I have tried to include a class that clears the background with a white background but it is not blocking out

all the background.

.clearBackground
{
background-image:url(img/background_repeat2.gif);
background-repeat: repeat-x;
}

This is the code for the background image:

#middlecontent
{
float: left;
width: 476px;
margin: 0;
padding: 0;
background-image:url(img/backcolour_1.jpg);
}
Attached Images
File Type: jpg screenshot.jpg (39.2 KB, 55 views)
Reply With Quote

  #2 (permalink)  
Old Dec 22nd, 2005, 10:08
craig's Avatar
Reputable Member
Join Date: Sep 2005
Location: Preston, UK
Age: 21
Posts: 381
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to craig
Re: Background Image

In the #middlecontent, just add,

background-repeat: no-repeat;

underneath the background image url.
You don't need the extra class!
Hope that solves your problem
Craig
Reply With Quote
  #3 (permalink)  
Old Dec 22nd, 2005, 14:52
Reputable Member
Join Date: Jul 2005
Location: Indiana, USA
Age: 29
Posts: 153
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to jpmitchell Send a message via Skype™ to jpmitchell
Re: Background Image

JW,

ecampsite is right. You can even shorten it up a bit too if you want. This is all you need:

Code: Select all
 #middlecontent
{
float: left;
width: 476px;
margin: 0;
padding: 0;
background-image: url(img/backcolour_1.jpg) no-repeat;
}
Last Blog Entry: Whats in a name? (Feb 20th, 2008)
Reply With Quote
Reply

Tags
background, image

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
how they do the background image act like that ? marSoul Webforumz Cafe 11 Nov 10th, 2007 19:18
background image not big enough mykl Web Page Design 7 Oct 11th, 2007 19:08
background image in a div BumbleWeasle Web Page Design 5 Oct 9th, 2006 12:37
Background image overlaping footer image at bottom of div lw_d Web Page Design 4 Mar 21st, 2006 00:27
Need help with my background image!!! courtjester Web Page Design 3 Sep 30th, 2003 15:25


All times are GMT. The time now is 23:15.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43