[SOLVED] Background image and background colour
I am trying to set a background image to my site. The image must not repeat but instead run into a colour. Can anyone help me with the code I need to add.
I know that I need to add something like: Code:
background: url(/wp-content/themes/atahualpa/images/image.jpg); |
well you could use 'background-color' and 'background-image'. 'background' is a shorthand for all the background options (background-color, background-image, background-repeat, background-attachment and background-position).
A good place to check out syntax is http://www.w3schools.com/css - I'm always going there to get the syntax right. |
I'd like to learn how you did that with the background image, would you mind explaining what file you made those changes to, please?
Also - any chance you could link to your site to show what it looks like, please? thanks! |
You add the code at ATO->Body, Text & Links->Body Style
|
I am trying to get this to work:
background-image: url(/.../.../main_bg.gif) no-repeat top left; background-color: #000000; My image is a gradient that fades to black. I want the black background to be used with the image so I don't have to create a massive image. This doesn't seem to work though. What did I miss? |
Try using
HTML Code:
Background: #000000; URL(........ What is the URL? |
Quote:
http://www.mjrgrp.com/demo/atec/ |
in your 'Body Style' options you have
HTML Code:
body{ the ';' defines the end of the option, so while the color is applied to the background, the url for the image is ignored. (damn punctuation;)) |
Doh! I cant believe I missed that. I really need to get glasses... Thanks for the catch!
:) |
All times are GMT -6. The time now is 05:19 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.