Changing the background image isn't...

User 469369 Photo


Registered User
46 posts

What am I missing? I just want to change the background from all white in color to an image (with repeat).

http://hyetension.com/

<body background="/images/HyeTension.jpg">

http://hyetension.com/stylesheets/default.css

body {
background: url(../images/HyeTension.jpg) repeat-x;
background-color: #cccccc;
margin-bottom: 20px;
width: 960px;
margin: 0 auto;

position: relative;
border: none;
}



My current website that is always under construction:

http://www.novacre.pro/
User 187934 Photo


Senior Advisor
20,188 posts

The page setup doesn't look correct as you using a background on the html that's only at the top like a header section. The background will show if you apply some height to the body. Also fix this. <body background="/images/HyeTension.jpg"> make it just<body>
This may help a bit.
http://validator.w3.org/check?uri=http% … mp;group=0
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 469369 Photo


Registered User
46 posts

Thanks for the Markup Validation Service link, I fixed all the errors I could. The majority of them are to do with flash, and I all I have to edit swf files is the coffeecup software.

I still cannot change the background image. I think it has to do something with the template. I am going to try to contact coffeecup, to see if they can help. I am pretty sure the error is in the template.
My current website that is always under construction:

http://www.novacre.pro/
User 469369 Photo


Registered User
46 posts

Also, I learned about the Internal Style Sheet at http://www.w3schools.com/css/css_howto.asp, and that the internal will override the external, but it does not appear to do so on this webpage: http://hyetension.com/Home.html

Here is the text I added:
<style>
body {background-image: url("images/HyeTension.jpg");}
</style>
My current website that is always under construction:

http://www.novacre.pro/
User 187934 Photo


Senior Advisor
20,188 posts

This is your problem. Your applying a background to the html and using it like a header.
html {
background: url("../images/body_bkgd.png") repeat-x scroll 0 0 rgba(0, 0, 0, 0);
padding: 0 0 40px;
text-align: center;
}

It looks like you started with a CC theme. You might want to start another one if you did with the original theme.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 469369 Photo


Registered User
46 posts

Thanks Eric, I did use a CC theme, I bought a bunch of the CC themes, it helps me to get started.

That section you mentioned is for the header, it is also part of the theme, that gives the red bar image (http://hyetension.com/images/body_bkgd.png) on the top of the page.

I wen checked out the webpage again and on the right click context menu, I choose "View Back Ground Image", and the photo is there! So maybe the header image is in front of the background image. I will try and play with that.

Thanks Again!
My current website that is always under construction:

http://www.novacre.pro/
User 469369 Photo


Registered User
46 posts

Thanks for your help again Eric! I was able to talk the person, that I am building the website for, out of having a photo in the background.
:D
My current website that is always under construction:

http://www.novacre.pro/
User 187934 Photo


Senior Advisor
20,188 posts

I was playing around with that theme since I have it and It's not easy to make it work without major changes. I think the black background looks better.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.