Solved

Background colors not matching

Posted on 2011-03-16
8
247 Views
Last Modified: 2012-06-21
I've got a gradient that fades into the background color at the bottom. Head out to http://www.countryshowdown.com and you'll see what I'm working with.

Problem is, with some machines, there's a hard line break towards the bottom. It's not happening on my computer. Both Mac and PC render it fine. Nevertheless, the client has a couple of machines on their site where it doesn't look right.

One suggestion was to use a background image. instead of simply defining the color (background-color: #whatever). In other words, create a 1X1 pixel image that's the color I'm struggling with and just repeat that. Problem is, I'm already using a background image to facilitate the gradient.

I don't know if layering could help in this situation but I wanted to run it by some minds greater than my own. Bottom line: Despite the code being sound (I have my css doc attached), on some machines it doesn't look right. What options do I have to get rid of the hard line break at the bottom of the page?
body {
	font-family: Verdana, Microsoft Sans Serif;
	font-size: 10px;
	color: #000000;
	text-align: left;
	vertical-align: top;
	padding: 0px;
	height: 100%;
	width: 100%;
	margin: 0;
	background-color: #604e3e;
	background-image: url(images/filler.jpg);	
	background-repeat: repeat-x;
}

table.songwriting {
	border: solid white 1px;
	}

td {
font-family: Arial, Microsoft Sans Serif;
font-size: 12px;
color: #ffffff;
}

td.main_body {
font-family: Arial, Microsoft Sans Serif;
font-size: 12px;
color: #ffffff;
text-align:center;
}

td.standard {
font-family: Arial, Microsoft Sans Serif;
font-size: 12px;
color: #ffffff;
text-align:left;
}

td.black_body {
font-family: Arial, Microsoft Sans Serif;
font-size: 12px;
color: #000000;
text-align:left;
}

td.body {
font-family: Arial, Microsoft Sans Serif;
font-size: 12px;
color: #ffffff;
line-height:200%;
text-align:left;
}

td.video {
font-family: Arial, Microsoft Sans Serif;
font-size: 10px;
color: #ffffff;
}

td.header {
font-family: Verdana, Microsoft Sans Serif;
font-size: 14px;
color: #ffffff;
background-color: #000000;
text-align:left;
}

td.date_contestant {
font-family: Verdana, Microsoft Sans Serif;
font-size: 12px;
color: #ffffff;
}
td.contestantPage {	
font-family: Verdana, Microsoft Sans Serif;	
font-size: 14px;	color: #000000;		
background-image: url(images/LogoBackground.jpg);		
background-repeat: no-repeat;	
vertical-align: center;
}	

td.songwriting_countdown {	
font-family: Verdana, Microsoft Sans Serif;	
font-size: 14px;	color: #ffffff;		
background-image: url(images/songwriting_countdown.jpg);		
background-repeat: no-repeat;	
vertical-align: center;
	text-align:center;
}	

td.mainText {
	background color:#FFFFFF;
	font-family: Verdana, Microsoft Sans Serif;
	font-size: 14px;
	color: #000000;
	}

td.news {
	background color:#FFFFFF;
	font-family: Verdana, Microsoft Sans Serif;
	font-size: 12px;
	color: #000000;
	}

td.winnerTitle {
	background color:#000000;
	font-family: Verdana, Microsoft Sans Serif;
	font-size: 14px;
	color: #000000;
	}

td.winnersubtitle {
	background color:#CCCCCC;
	font-family: Verdana, Microsoft Sans Serif;
	font-size: 14px;
	color: #000000;
	}

td.quote {
	font-family: Verdana;
	font-size: 12px;
	font-style: italic;
	color: #ffffff;
	}

td.TitleText {
	background color:#FFFFFF;
	font-family: Verdana, Microsoft Sans Serif;
	font-size: 20px;
	color: #000000;
	}
	
	td.contestant_homepage{
	background color:#FFFFFF;
	font-family: Impact, Microsoft Sans Serif;
	font-size: 24px;
	color: #000000;
	}

td.RadioTitle {
	font-family: Verdana, Microsoft Sans Serif;
	font-size: 18px;
	color: #ffffff;
	}

td.RadioDescription {
	font-family: Verdana, Microsoft Sans Serif;
	font-size: 12px;
	color: #ffffff;
	text-align:right;
	border-color:#F42D23;
	}
	
td.radio_description_logo {
font-family: Verdana, Microsoft Sans Serif;
font-size: 12px;
color: #000000;
}

td.Footer {
	font-family: Verdana, Microsoft Sans Serif;
	font-size: 10px;
	color: #ffffff;
	}
	
td.Contestant {
border-color: #ffffff;
font-family: Verdana, Microsoft Sans Serif;
font-size: 10px;
color: #ffffff;
width: 165px;
}

td.Contestant_Bio {
border-color: #ffffff;
font-family: Verdana, Microsoft Sans Serif;
font-size: 14px;
color: #ffffff;
}

td.songwriting {
font-family: Verdana, Microsoft Sans Serif;
font-size: 12px;
color: #ffffff;
background-image:url('images/songwriters_plate.jpg');
background-repeat:no-repeat;
}

td.logout {
font-family: Verdana, Microsoft Sans Serif;
font-size: 14px;
color: #ffffff;
background-image:url('images/logout.jpg');
background-repeat:no-repeat;
}

td.contestant_title {
	font-family: Verdana, Microsoft Sans Serif;
	font-size: 20px;
	color: #ffffff;
	}

TEXTAREA {
	width:700px;
	height:250px;
	font-family: Verdana, Microsoft Sans Serif;
	font-size: 10px;
	color: #000000;
	float:left:
	}
	
	TEXTAREA.admin {
	width:750px;
	height:250px;
	font-family: Verdana, Microsoft Sans Serif;
	font-size: 10px;
	color: #000000;
	float:left:
	}
	
		TEXTAREA.covers {
	width:750px;
	height:75px;
	font-family: Verdana, Microsoft Sans Serif;
	font-size: 12px;
	color: #000000;
	float:left:
	}
	
TEXTAREA.Contestant {
	width:592px;
	height:250px;
	font-family: Verdana, Microsoft Sans Serif;
	font-size: 12px;
	color: #000000;
	float:left:
	}
	
	TEXTAREA.Mail {
	width:450px;
	height:200px;
	font-family: Verdana, Microsoft Sans Serif;
	font-size: 12px;
	color: #000000;
	float:left:
	}
		
TEXTAREA.MyShowdown {
	background-color: black;
	width:150px;
	height:250px;
	font-family: Verdana, Microsoft Sans Serif;
	font-size: 10px;
	color: #ffffff;
	float:left:
	}
	
form {
      display: inline;
	  margin-top: 2px;
	  margin-bottom: 0;
}

.login_box{
  background-image:url('images/text_field.jpg');
  border:0px;
  width:109px;
  height:21px;
  font-size: 10px;
  color: #b1a18f;
}

#twitter_update_list li a {  
font-family: Arial, Microsoft Sans Serif;
font-size: 12px;
color: #ffffff;
text-decoration: underline;  
}  


#twitter_update_list li a:hover {  
font-family: Arial, Microsoft Sans Serif;
font-size: 12px;
color: #ffffff;
text-decoration: underline; 
}

A
{
	font-family: Verdana, Microsoft Sans Serif;
	font-size: 14px;
	color: #000000;
	text-decoration:underline;
}

A:Hover {
	font-family: Verdana, Microsoft Sans Serif;
	font-size: 14px;
	color: #000000;
	text-decoration:underline;
}

A:Visited {
	font-family: Verdana, Microsoft Sans Serif;
	font-size: 14px;
	color: #000000;
	text-decoration:underline;
}



A.body
{
font-family: Arial, Microsoft Sans Serif;
	font-size: 12px;
	color: #ffffff;
	text-decoration:underline;
}

A.body:Hover {
font-family: Arial, Microsoft Sans Serif;
	font-size: 12px;
	color: #ffffff;
	text-decoration:underline;
}

A.body:Visited {
font-family: Arial, Microsoft Sans Serif;
	font-size: 12px;
	color: #ffffff;
	text-decoration:underline;
}


A.RadioTitle {
	font-family: Arial, Microsoft Sans Serif;
	font-size: 12px;
	color: #ffffff;
	text-decoration:none;	
 }

A.RadioTitle:Hover {
	font-family: Arial, Microsoft Sans Serif;
	font-size: 12px;
	color: #ffffff;
	text-decoration:none;	
 }

A.RadioTitle:Visited {
font-family: Arial, Microsoft Sans Serif;
	font-size: 12px;
	color: #ffffff;
	text-decoration:none;	
 }
 
  A.radio_description_logo {
 font-family: Verdana, Microsoft Sans Serif;
font-size: 12px;
color: #000000;
 }

A.radio_description_logo:Hover {
 font-family: Verdana, Microsoft Sans Serif;
font-size: 12px;
color: #000000;
 }

A.radio_description_logo:Visited {
 font-family: Verdana, Microsoft Sans Serif;
font-size: 12px;
color: #000000;
 }

A.Featured {
	font-family: Verdana, Microsoft Sans Serif;
	font-size: 12px;
	color: #ffffff;
	text-decoration:underline;	
 }

A.Featured:Hover {
  	font-family: Verdana, Microsoft Sans Serif;
	font-size: 12px;
	color: #cccccc;
	text-decoration:underline;		
 }

A.Featured:Visited {
  	font-family: Verdana, Microsoft Sans Serif;
	font-size: 12px;
	color: #ffffff;
	text-decoration:underline;	
 }

A.RadioTitleBlack {
	font-family: Verdana, Microsoft Sans Serif;
	font-size: 18px;
	color: #ffffff;
	text-decoration:underline;	
 }

A.RadioTitleBlack:Hover {
	font-family: Verdana, Microsoft Sans Serif;
	font-size: 18px;
	color: #7BC0FA;
	text-decoration:underline;	
 }

A.RadioTitleBlack:Visited {
	font-family: Verdana, Microsoft Sans Serif;
	font-size: 18px;
	color: #ffffff;
	text-decoration:underline;	
 }

A.Footer {
  	font-family: Verdana, Microsoft Sans Serif;
	font-size: 10px;
	color: #ffffff;

}

A.Footer:hover {
    	font-family: Verdana, Microsoft Sans Serif;
	font-size: 10px;
	text-decoration:underline;
	color: #ffffff;
 }

 A.Footer:visited {
  	 font-family: Verdana, Microsoft Sans Serif;
	font-size: 9px;
	color: #808080;
 }
 
 A.header {
	font-family: Verdana, Microsoft Sans Serif;
	font-size: 14px;
	color: #ffffff;
	background-color: #000000;
	text-decoration: none;
 }
 A.header:hover {
 	font-family: Verdana, Microsoft Sans Serif;
	font-size: 14px;
	color: #ffffff;
	background-color: #000000;
	text-decoration: none;
	}
	A.header:visited {
 	font-family: Verdana, Microsoft Sans Serif;
	font-size: 14px;
	color: #ffffff;
	background-color: #000000;
	text-decoration: none;
	}
	
	 A.black_body {
	font-family: Arial, Microsoft Sans Serif;
	font-size: 12px;
	color: #000000;
	text-decoration: none;
 }
 A.black_body:hover {
 	font-family: Arial, Microsoft Sans Serif;
	font-size: 12px;
	color: #000000;
	text-decoration: none;
	}
	A.black_body:visited {
 	font-family: Arial, Microsoft Sans Serif;
	font-size: 12px;
	color: #000000;
	text-decoration: none;
	}


A.radio_description_logo {
font-family: Verdana, Microsoft Sans Serif;
font-size: 12px;
color: #000000;
text-decoration: none;
}
A.radio_description_logo:hover {
font-family: Verdana, Microsoft Sans Serif;
font-size: 12px;
color: #000000;
text-decoration: none;
}
A.radio_description_logo:visited {
font-family: Verdana, Microsoft Sans Serif;
font-size: 12px;
color: #000000;
text-decoration: none;
}

Open in new window

0
Comment
Question by:brucegust
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
8 Comments
 
LVL 27

Expert Comment

by:Lukasz Chmielewski
ID: 35155311
Can you post the screenshot of the problematic machine ? It might be not the colors but just elements owerlowing. Also - the color depth settings.
0
 

Author Comment

by:brucegust
ID: 35158788
I'm having to get a screenshot from an office that's out of state. That's what makes this problem so exapsperating is that I can't recreate it, so it's hard to solve it.

In the interim, I'm not familiar with color depth settings. What is that and what do I need to be looking for?
0
 
LVL 27

Expert Comment

by:Lukasz Chmielewski
ID: 35159253
Well it's hard to diagnose as it is "not visible". I'm not sure what is hard break line is in that case.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:brucegust
ID: 35159654
Here's the screen shot.

And again the URL is http://www.countryshowdown.com/Texaco
0
 

Author Comment

by:brucegust
ID: 35159674
Trying again.

I'm not sure what the operating system is that's having trouble, but I can validate XP and Mac OSX on IE as well as Safari.

The box that's having issues is running Safari and Firefox. picture of line break
0
 
LVL 27

Accepted Solution

by:
Lukasz Chmielewski earned 500 total points
ID: 35159695
OK, it seems that the body has the background color of the top of the gradient. Try setting css for the body exactly as the bottom of the gradient (the darkest color).
0
 

Author Comment

by:brucegust
ID: 35160241
Actually, I don't have a background color specified on my css. Reason being is because while I did have the darkest color specified initially, it didn't make and difference.You still saw the line break.

 So what I did was I made the body use a repeating 1X1 gif of an image that was colored using 604e3e, which the darkest color of the gradient that you see in the image. Then I used the gradient that you see in the first cell of a table that's 100% wide and 100% high, yet only repeats horizontally.

So, there you have it.

What do you think?
0
 

Author Comment

by:brucegust
ID: 35392808
Here's what I did:

I made a repeating background graphic that was enormously high and so on the random machines that insisted on misbehaving, the problem was no longer discernible.

Thanks for the input!
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a how to build your own CSS3 slideshow and when I say CSS3 I mean just CSS with no javascript in sight! There a few examples online of how to do this but most just show you an example without any explanation, others make it more complicat…
When writing CSS, there are a few simple rules that will make your life easier.    1. Using ‘* {box-sizing:border-box;}’. Using this will wrap all your elements in a nice little compact box-model that will give you the width you want, like so... …
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question