Killersites Community: Could be CSS - background color change not in IE - Killersites Community

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Could be CSS - background color change not in IE

#1 User is offline   jonbey 

  • PipPip
  • View blog
  • Group: Member
  • Posts: 26
  • Joined: 12-April 09
  • LocationEssex, UK.

Posted 19 October 2011 - 04:06 AM

I updated the background using the wordpress background tool for http://www.bumstumsandthighs.com/ and the background shows in Firefox and Chrome but not in IE 8.0.6001

I am guessing that I need to force something in for IE in the CSS manually, but cannot work out what or how. Any ideas?
0

#2 User is offline   Wickham 

  • PipPipPipPip
  • View blog
  • View gallery
  • Group: Advanced Member
  • Posts: 1,731
  • Joined: 20-December 08
  • LocationSalisbury UK

Posted 19 October 2011 - 08:32 AM

I'm not sure why IE isn't processing the body background. You have a style tag with
<style type="text/css">
body { background-color: #702C53; }
</style>

and it works in Firefox but not in IE, even though it's after the IE conditional comment. I found that if I moved it to the last item before the </head> tag it worked in IE9, perhaps something in the scripts was affecting IE.
<style type="text/css">
/*body { background-color: #702C53; } ......moved down below*/
</style>

<style type="text/css">.recentcomments a{display:inline !
important;padding:0 !important;margin:0 !important;}
</style>

<style type="text/css">.broken_link, a.broken_link {
	text-decoration: line-through;
}
</style>
 <script type="text/javascript">var analyticsFileTypes = [''];
	var analyticsEventTracking = 'enabled';</script> 

<script type="text/javascript">var _gaq = _gaq || [];
	_gaq.push(['_setAccount', 'UA-470187-29']);
	_gaq.push(['_trackPageview']);
	_gaq.push(['_trackPageLoadTime']);
	(function() {
		var ga = document.createElement('script'); 
ga.type = 'text/javascript'; ga.async = true;
		ga.src = ('https:' == 
document.location.protocol ? 'https://ssl' : 'http://www') + 
'.google-analytics.com/ga.js';
		var s = document.getElementsByTagName
('script')[0]; s.parentNode.insertBefore(ga, s);
	})();</script> 
<style type="text/css">
body { background-color: #702C53; } /* ..........moved here */
</style>
</head>

I found that even if I added background-color: #702C53; to the ie stylesheet it still didn't work in IE.
You have a real jumble of style tags in the head section, but the style tag with the background should have worked as it was one of the last ones.

This post has been edited by Wickham: 19 October 2011 - 08:39 AM

0

#3 User is offline   Eddie 

  • PipPipPipPip
  • View blog
  • Group: Advanced Member
  • Posts: 3,523
  • Joined: 19-December 08
  • LocationTexas

Posted 19 October 2011 - 09:34 AM

Instead of using background-color, try just background: #702C53;

...and Wickham is right, it's a jumble of codes you have.
0

#4 User is offline   jonbey 

  • PipPip
  • View blog
  • Group: Member
  • Posts: 26
  • Joined: 12-April 09
  • LocationEssex, UK.

Posted 19 October 2011 - 01:02 PM

Thanks, I will try Eddie's option first, then maybe wonder about the mess....
0

#5 Guest_gwb

  • Group: Guests

Posted 03 November 2011 - 06:49 AM

If you want then make external css for your website and use all functions in it.
0

#6 User is offline   Andrea 

  • View gallery
  • Group: Moderators
  • Posts: 5,498
  • Joined: 19-December 08
  • LocationSan Antonio, TX

Posted 03 November 2011 - 07:18 AM

View Postgwb, on 03 November 2011 - 06:49 AM, said:

If you want then make external css for your website and use all functions in it.


Did you even read what's in this thread or look at the link (and the source code)?
0

#7 User is offline   Eddie 

  • PipPipPipPip
  • View blog
  • Group: Advanced Member
  • Posts: 3,523
  • Joined: 19-December 08
  • LocationTexas

Posted 03 November 2011 - 08:33 AM

View PostAndrea, on 03 November 2011 - 07:18 AM, said:

Did you even read what's in this thread or look at the link (and the source code)?

I'm just surprised that you just don't delete the account along with a couple of others because they have nothing useful to say in regards to other valid users questions.
0

#8 User is offline   Andrea 

  • View gallery
  • Group: Moderators
  • Posts: 5,498
  • Joined: 19-December 08
  • LocationSan Antonio, TX

Posted 03 November 2011 - 09:41 AM

View PostEddie, on 03 November 2011 - 08:33 AM, said:

I'm just surprised that you just don't delete the account along with a couple of others because they have nothing useful to say in regards to other valid users questions.


You have a point, I just thought I'd give them another chance and hope they figure out the purpose of the forum - or go away on their own.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users