MyBB Community Forums

Full Version: Newsbar... How to change text color
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello!

I was given the following code for my newsbar but I'm not sure how to change the text color (I know how to change the background color, but don't know how to change the text color from black to red).

Here is the code:

<style type="text/css">
.newsbar {
	background: #7FA5FF;
	border-top: 2px solid #00209E;
	border-bottom: 2px solid #00209E;
	text-align: center;
        text-color: #00209E;
	margin: 10px auto;
	padding: 5px 20px;
	font-weight: bold;
}
</style>
change the values of
 text-color: #00209E;
to change text color use http://www.w3schools.com/html/html_colors.asp for getting code of each color
thanks!
Hmm, I added it but the colors still the same.
There is also one more code... do I post the code you gave me in this code?

<p class="newsbar">Welcome Night on November 11, 2010 @ 6:00pm (EST) </p>
first you find .. which css class coming under the text color you going to edit
then go to themes and use css advanced css editor ..
find the css class to edit the appearance property
me too but there is nothing there for a txt colour,i am using this and i tried the above but won't work

</script>
<script type="text/javascript" src="jscripts/thx.js"></script>{$newpmmsg}
<style type="text/css">

.newsbar {

&nbsp;&nbsp;&nbsp;&nbsp;background: #006600;

&nbsp;&nbsp;&nbsp;&nbsp;border-top: 2px solid #009900;

&nbsp;&nbsp;&nbsp;&nbsp;border-bottom: 2px solid #009900;

&nbsp;&nbsp;&nbsp;&nbsp;text-align: center;

&nbsp;&nbsp;&nbsp;&nbsp;margin: 10px auto;

&nbsp;&nbsp;&nbsp;&nbsp;padding: 5px 20px;

&nbsp;&nbsp;&nbsp;&nbsp;font-weight: bold;

}

</style>
Remove the non breaking spaces. &nbsp;
Replace your code with this =)

.newsbar {
    background: #7FA5FF;
    border: 2px solid #FF0000;
    text-align: center;
    text-color: #FF0000;
    margin: 10px auto;
    padding: 5px 20px;
    font-weight: bold;
}