Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
March 17, 2010, 06:42:08 PM

Pages: [1]   Go Down
  Print  
Author Topic: CSS Help  (Read 352 times)
Chaos Dragon
Spaceship Captain
*****
Offline Offline

Posts: 108



« on: April 11, 2009, 11:06:58 AM »

Well I am almost ready to launch just doing some tweeks and was separating my CSS from my HTML so I can just link the CSS and when I made the CSS file and linked it everything works except the background. It does not show up on my page. I can add the body back in the <head></head> and it works, but if it is in my CSS it does not work. I see no errors in my CSS cause I took a look and all is like it should be just not showing. Confused
Any Ideas on why this is happening? Confused
Here is the CSS for my body this is the only one not working in my CSS document when linked,
Code:
<style type="text/css">

body{
     background-color:#313131;
     background-image:url(/siteimg/my_bg.png);
     background-position:center center;
     background-repeat:repeat-y;
     background-attachment:scroll;
     margin:0px 0px 0px 0px;
     padding:0px 0px 0px 0px;
}
Any help would be appreciated!
« Last Edit: April 11, 2009, 11:28:15 AM by POLO » Logged
Chaos Dragon
Spaceship Captain
*****
Offline Offline

Posts: 108



« Reply #1 on: April 11, 2009, 01:00:59 PM »

Well! I found a solution to my problem. I am just going to use the include() function in the <head> of my index.php and others to show my background since it is the only other way it seems to be working so I don't have to go to 500+ pages just to change my background when and if I do change it.
As for my question above feel free to answer it any way for future reference for myself and others that may read this and have the same problem.

Thank You and Happy Easter all.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to: