Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
background-repeat: no-repeat dont seem to work?...
Old 05-13-2007, 11:43 AM background-repeat: no-repeat dont seem to work?...
dansgalaxy's Avatar
Defies a Status

Posts: 6,521
Name: Dan
Location: Swindon
Trades: 0
Hi,
on http://calm.dansgalaxy.co.uk on a couple of page with alot of content, the background image repeats.

The background is a 1px wide strip basically, so it has to repeat horizontally..

anyway i was told by a friend that i should use

background-repeat: no-repeat;

and set the background-color: #ffffff; so that it continues as white and donent repeat it vertivcally...

but i have it in my css and it doesnt appear to have worked...

http://calm.dansgalaxy.co.uk/about.php (you can see blue line at bottem..)

anyideas?...

Thanks
dan
__________________
Discounted Web Hosting With XDnet!
>> Get 25% of hosting~ Promo: Webmaster-talk <<

Please login or register to view this content. Registration is FREE
dansgalaxy is offline
Reply With Quote
View Public Profile Visit dansgalaxy's homepage!
 
 
Register now for full access!
Old 05-13-2007, 12:41 PM Re: background-repeat: no-repeat dont seem to work?...
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
For one thing, IE cannot handle transparent PNG's w/o help. There's a sticky at the top of the HTML forum on how to make IE display transparent PNG's. Unfortunately, no solution available will make IE6 and 5.5 display a repeating transparent PNG properly - it just can't do it.

Ok, what you need is to set that gradient image as a background to your body or container, and set it to background: #fff url(bg.png) repeat-x;
That sets the background color to white, and tells it to repeat the gradient horizontally ONLY.

You have: background: url('images/bg.png'); - get rid of the single quote marks. You also do not need the TWO background-repeat rules.

Oh yeah.. you can shorten your margin rules to just: margin: 0; and padding: 0;
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 05-13-2007, 02:47 PM Re: background-repeat: no-repeat dont seem to work?...
dansgalaxy's Avatar
Defies a Status

Posts: 6,521
Name: Dan
Location: Swindon
Trades: 0
Ok wow.. Lol ill look and try and do that andall i did to make it work was change background: url(... to background-image: url(... and its worked...

I know you have nagged me about the transparent gifs before, and as far as i know i only have the php logo which is a transparent.. i ust need to replace the image with one with a white bg...

and ill changed the margins..

and will make the background thing how u said. i tend to make them seperate becasue i find it easier to view/edit at a glance like...

Thanks as usuall!.
Dan
__________________
Discounted Web Hosting With XDnet!
>> Get 25% of hosting~ Promo: Webmaster-talk <<

Please login or register to view this content. Registration is FREE

Last edited by dansgalaxy; 05-13-2007 at 03:01 PM..
dansgalaxy is offline
Reply With Quote
View Public Profile Visit dansgalaxy's homepage!
 
Reply     « Reply to background-repeat: no-repeat dont seem to work?...
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.48602 seconds with 12 queries