Jump to content

correct code css for background image to default site


Recommended Posts

Hi

 

I tried to changed the default theme to put a background image png using the css global.

 

I put the image into the img file but apparently used the code that required the image to be placed into the css global file!

 

What is the correct coding for css image file to show a new backround image taken from the image folder? AND NOT THE global folder. oops

 

Thanks for any help and support.

 

Poly

Link to comment
Share on other sites

Hi

Thank you for your reply.

 

I would like to put a background image into the default site that will show for the whole site. Depending on the image I may need to position this image left or right in order to avoid issues with the text on the page.

 

Thanks

Link to comment
Share on other sites

Hi

Thank you for the explanation and example.

 

This was the code example that I used originally and it was checked with wc3 before 'placing' into the global css file.

My problem now seems to be where to place the background image file? I put it into the 'img' folder and it did not function.

Where should the background image file be placed?

 

Thanks

Link to comment
Share on other sites

ok, so you want to upload image to the theme directory - that's ok

in this case - you don't have to create subdirectory /cms/

it mean that you can upload file just to the /themes/default/img/ dir

 

then use this url in the backgrund param:

 

background:url('http://URL_TO_YOUR_WEBSITE.com/themes/default/dir/YOUR_IMAGE.jpg');

Link to comment
Share on other sites

  • 2 months later...

i use this code:

body{

	font:normal 11px/14px Arial, Verdana, sans-serif;

	color:#222;

	background:#fff url('http://mechanicke-vahy.eu/themes/default/img/white_marble.jpg');
	background-position: center top;

}

but i still have original background from default theme... url to background img are working... i have presta 1.5.5

Edited by pildo (see edit history)
Link to comment
Share on other sites

thank you so much for confirmation

i tried to open your website but i see login popup,

is there any chance to get an access there? only for test purposes, im so curious

 

of course i can wait, but after all don't forget to share your website in the "TEST MY SITE" section :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...