Body background image not changing
Posted: 13 May 2008 10:15 PM   [ Ignore ]  
Grad Student
Rank
Total Posts:  54
Joined  05-12-2008

Ok I have a page template index that uses a body id="index" and another page news that uses the body id="news"

However my background image is not showing on the news page.

Here is the beginning of the index page

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html xmlns="http://www.w3.org/1999/xhtml">
<
head>
<
meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

<
link rel="stylesheet" type="text/css" media="all" href="{stylesheet=varcha/master_css}" />
<
link rel="stylesheet" type="text/css" media="all" href="{stylesheet=varcha/navbar_css}" />
<
link rel="stylesheet" type="text/css" media="all" href="{stylesheet=varcha/content_css}" />

</
head>

<
body id="index">

Here is the news page

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html xmlns="http://www.w3.org/1999/xhtml">
<
head>
<
meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<
link rel="stylesheet" type="text/css" media="all" href='{stylesheet=varcha/master_css}' />



<
link rel="stylesheet" type="text/css" media="all" href="{stylesheet=varcha/navbar_css}" />
<
link rel="stylesheet" type="text/css" media="all" href="{stylesheet=varcha/content_css}
</head>




<body id="
news">

And here is the css

#index {
    padding: 0px;
    
min-width: 960px;
    
background-image: url(http://www.varcha.org/images/index_bg.jpg);
    
background-repeat: repeat-x;
    
margin: 0px;
}

#news {
    
padding: 0px;
    
min-width: 960px;
    
background-image: url(http://www.varcha.org/images/pagesBG.jpg);
    
background-repeat: repeat-x;
    
margin: 0px;
}

So why dont my news pages display the background image?

Profile
 
 
Posted: 13 May 2008 10:35 PM   [ Ignore ]   [ # 1 ]  
Research Assistant
RankRankRank
Total Posts:  302
Joined  05-22-2005

Can you post a URL to a page we can see?

Profile
 
 
Posted: 13 May 2008 10:37 PM   [ Ignore ]   [ # 2 ]  
Grad Student
Rank
Total Posts:  54
Joined  05-12-2008

I even am trying to get the background to work by explicitly declaring the background property

http://demo.expressionengine.com/1JHSSMmjOl/index.php/varcha/news

Profile
 
 
Posted: 13 May 2008 10:53 PM   [ Ignore ]   [ # 3 ]  
Grad Student
Rank
Total Posts:  54
Joined  05-12-2008

Found the problem… a missing closing bracket on a tag

Profile
 
 
Posted: 14 May 2008 03:11 AM   [ Ignore ]   [ # 4 ]  
Sr. Research Associate
Avatar
RankRankRankRankRank
Total Posts:  4581
Joined  04-15-2006

Just noticed this and saw that you have differences in the page code above. One of your CSS files is a lot further from the rest and the great thing about posting code in the forums here is that it shows the error wink

If you look at the </head> tag in your second (news) example you will see that it is being highlighted as red showing up the error on the line before.

Best wishes,

Mark

 Signature 

Full List Of Plugins Here!!
 
Retrieve Statuses
Maximum Posts Reached
Neat Link
Redirect
Fetch URI

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 10:33 AM
Total Registered Members: 59683 Total Logged-in Users: 34
Total Topics: 71217 Total Anonymous Users: 18
Total Replies: 383827 Total Guests: 439
Total Posts: 455044    
Members ( View Memberlist )