background image

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
shaqa
Forum Commoner
Posts: 62
Joined: Mon Aug 13, 2007 9:11 am

background image

Post by shaqa »

im haveing problem with backgorund image,
im using this css code below for my backgroung but it start again to show the iamge for backgroung from begining,
take e look at the screenshot:

http://allyoucanupload.webshots.com/v/2 ... 6349340815

image for backgorund:
http://allyoucanupload.webshots.com/v/2 ... 4485966626

Code: Select all

body {
    margin: 0px;
    padding: 0px;
    background: url(images/homepage.bg01.jpg) repeat left top;
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: background image

Post by pickle »

I'm not 100% sure what your problem is, but it seems like it's repeating & you don't want it to. You can change the 'repeat' in your CSS to 'no-repeat', 'repeat-x', or 'repeat-y' in order to have it not repeat, only repeat on the x-axis, or only repeat on the y-axis respectively.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
shaqa
Forum Commoner
Posts: 62
Joined: Mon Aug 13, 2007 9:11 am

Re: background image

Post by shaqa »

take a look at thebegin of the first image the small backroung image[sec image for background] start again to repeat!!!
User avatar
Inkyskin
Forum Contributor
Posts: 282
Joined: Mon Nov 19, 2007 10:15 am
Location: UK

Re: background image

Post by Inkyskin »

Have you actually tried to do what Pickle said?
shaqa
Forum Commoner
Posts: 62
Joined: Mon Aug 13, 2007 9:11 am

Re: background image

Post by shaqa »

im using repeat for x-axis but is same problem!
matthijs
DevNet Master
Posts: 3360
Joined: Thu Oct 06, 2005 3:57 pm

Re: background image

Post by matthijs »

You need to explain your problem better. It's not clear what the problem is.

As explained before: use repeat-x for repeating along the x-axis. If you don't want it to repeat use no-repeat.
shaqa
Forum Commoner
Posts: 62
Joined: Mon Aug 13, 2007 9:11 am

Re: background image

Post by shaqa »

yes i use and it work but my problem explain ,: at the end of page i see a "blank or white rectangle" maybe can be problem at the size of background image!!!
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: background image

Post by pickle »

That's probably right - set a background colour too.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
shaqa
Forum Commoner
Posts: 62
Joined: Mon Aug 13, 2007 9:11 am

Re: background image

Post by shaqa »

my background isnt same color!
it have some effects!
User avatar
JellyFish
DevNet Resident
Posts: 1361
Joined: Tue Feb 14, 2006 7:18 pm
Location: San Diego, CA

Re: background image

Post by JellyFish »

shaqa wrote:my background isnt same color!
it have some effects!
I don't really know what your saying, your not explaining yourself correctly. But I do know that in order to set your background color you use the background-color css property.

Code: Select all

background-color: (color);
where (color) is replace with a css color value.
shaqa
Forum Commoner
Posts: 62
Joined: Mon Aug 13, 2007 9:11 am

Re: background image

Post by shaqa »

here you go ,
i want to have second pic as First pic after i save as webpage from photoshop.

first pic:
http://aycu36.webshots.com/image/43715/ ... 844_rs.jpg

second pic:
http://allyoucanupload.webshots.com/v/2 ... 4936207608
User avatar
JellyFish
DevNet Resident
Posts: 1361
Joined: Tue Feb 14, 2006 7:18 pm
Location: San Diego, CA

Re: background image

Post by JellyFish »

I still understand see the problem. It's probably not a problem with a css or html of anykind, but photoshop. Sense I don't know anything about photoshop in great detial, but I do know what photoshop is, a painting application. So I strongly suggest that you learn html/css for web design rather then fully releying on a program.
Post Reply