OutFront Forums
     Home    Register     Search      Help      Login    

Follow Us
On Facebook
On Twitter
RSS
Via Email

Recent Posts
Todays Posts
Most Active posts
Posts since last visit
My Recent Posts
Mark posts read

Sponsors
Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.
Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.
Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

 

Tiled Css background

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> Cascading Style Sheets and Accessibility >> Tiled Css background
Page: [1]
 
mjmtravel

 

Posts: 327
Joined: 7/30/2006
Status: offline

 
Tiled Css background - 4/6/2008 9:15:20   
I have a question about a template I'm working on. I want to switch the background color to a image. I have found the background image in the style.css file, but when I make any changes to the images it only changes to a plain white not the image I put in. Here is the original code and here is what I have tried. I'm also not sure where the color on the end is coming from on the end of the original.

Original
body {padding:0; margin:0; color:#000000; background:url(images/bg.gif) repeat-x; background-color:#A8AD9C}

Tried
body{background-image:url('images/sand1.gif');background-repeat: repeat}
body{padding:0; margin:0; color:#000000; background:url('images/sand1.gif');background-repeat: repeat}
Tailslide

 

Posts: 6692
Joined: 5/10/2005
From: Out here on the raggedy edge
Status: offline

 
RE: Tiled Css background - 4/6/2008 10:01:28   
Should be:

body {padding:0; margin:0; color:#000000; background:#A8AD9C url(images/bg.gif) repeat-x; } 


_____________________________

Little Blue Plane Web Design | Land Rover project

:)

(in reply to mjmtravel)
mjmtravel

 

Posts: 327
Joined: 7/30/2006
Status: offline

 
RE: Tiled Css background - 4/6/2008 11:47:02   
Thanks but what I'm looking to do is remove the color and replace with a image. The original code works and color is correct but I'm looking to remove the color and replace with images/sand1.gif

Original
body {padding:0; margin:0; color:#000000; background:url(images/bg.gif) repeat-x; background-color:#A8AD9C}

(in reply to Tailslide)
Tailslide

 

Posts: 6692
Joined: 5/10/2005
From: Out here on the raggedy edge
Status: offline

 
RE: Tiled Css background - 4/6/2008 11:57:52   
What I've given you should show the image repeated throughout the page and if the image isn't available it will show the colour.

Edit: For example: TEST PAGE which uses:

body {background:pink url(flower.gif)  repeat;}


Can you give us a link as it'll be easier to see where the problem is.

< Message edited by Tailslide -- 4/6/2008 12:05:17 >


_____________________________

Little Blue Plane Web Design | Land Rover project

:)

(in reply to mjmtravel)
Page:   [1]

All Forums >> Web Development >> Cascading Style Sheets and Accessibility >> Tiled Css background
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts