Wells-it.com - Web Hosting

css Q

You are viewing this site as a guest. Join our community to get your questions answered and share knowledge. Active members may advertise and ask for a website critique.

They have: 34 posts

Joined: Feb 2002

I've a table that has an image as a background. I need to do 2 things with it.. 1. Move it down 20 or so pixels from the top and 2. make it so the image doesn't tile. I'm pretty sure I need to use css to accomplish this.

Suzanne's picture

She has: 5,512 posts

Joined: Feb 2000

You can do the 20px best by adding 20px of whatever to the image itself.

in css:

background: url(locationofimage/image.gif) #hexhex no-repeat;

Have fun.

They have: 34 posts

Joined: Feb 2002

hum... it's not working.. I'm trying to do this in side a table.

BLAH BLAH

Busy's picture
Modrater

He has: 6,157 posts

Joined: May 2001

did you make a class of what Suzanne suggested, and add class="??" into your tag? ie:

.tablebg {background: url("images/backgroundT.gif") #hexhex no-repeat; }

BLAH BLAH

<?bhb if(broken){ echo("It wasn't me Smiling "); } ?>
Learn HTML the ez way - EzHTML.net

Some people are like slinkies, they dont really serve any purpose but they still bring a smile to your face when you push them down the stairs ...

disaster-master's picture

She has: 2,152 posts

Joined: May 2001

Not sure if this will work for you but....What you could do is make a table the same size as your image, then put a table or tables inside inside the first one that holds the image.

LIKE THIS

P.S. This background image reminded me of Busy just a little.(without his morning coffee) Laughing out loud

Sonia

"Life is not a journey to the grave with the intention of arriving safely in a pretty and well preserved body, but rather to skid in broadside, thoroughly used up, totally worn out, and loudly proclaiming -- WOW--What a Ride!!!"

Busy's picture
Modrater

He has: 6,157 posts

Joined: May 2001

I don't bite - often Laughing out loud

[really off topic] this is me in real life
my picture click on "B" then on busy, the photo is a lil old but is me

[back on topic] any luck venom?

<?bhb if(broken){ echo("It wasn't me Smiling "); } ?>
Learn HTML the ez way - EzHTML.net

Some people are like slinkies, they dont really serve any purpose but they still bring a smile to your face when you push them down the stairs ...

disaster-master's picture

She has: 2,152 posts

Joined: May 2001

Busy, that is a really cute pic. You look like you might have been a wee bit mischieveous. LOL

I don't think the table thing that I posted is what Venom needs but I thought, "What the heck".

Sonia

"Life is not a journey to the grave with the intention of arriving safely in a pretty and well preserved body, but rather to skid in broadside, thoroughly used up, totally worn out, and loudly proclaiming -- WOW--What a Ride!!!"