MyBB Community Forums

Full Version: changing background color in board message mod
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
i installed d board message mod...
how do i change d background color of that area ?
as in this forums homepage has a similar msg board wid green background color..how 2 do that?
Hello there,
2 ways to do that
edit the the template in Admin CP > Templates > Modify / Delete >Global Templates >Expand >global_boardmsg by changing a the class of that board message into a new one you have created in the theme manager.

sec way is also from there, but you can do it without css classes if you want.

regards
actually i cant edit themes in d theme manager..wen i try 2 do that, it gives me admin login box...i dont hav other login probs, but this one persists..pls help
Here is how to make it look like the MyBBoard one:

Admin CP > Templates > Modify / Delete > Global Templates > Expand > global_boardmsg

REPLACE:
<table border="0" cellspacing="1" cellpadding="4" class="tborder">
<tbody>
<tr>
<td class="trow1">$boardmessage</td>
</tr>
</tbody>
</table>
<br />
WITH:
<style type="text/css">
.alert {
	background: #D6ECA6;
	border-top: 2px solid #8DC93E;
	border-bottom: 2px solid #8DC93E;
	text-align: center;
	margin: 10px auto;
	padding: 5px 20px;
	font-weight: bold;
}
</style>
<p class="alert">$boardmessage</p>
<br />

Or you could put the CSS code into the "Extra CSS" box in the Theme editor, its up to you.
thnks a ton...d text is center aligned by default..however if i try aligning it manually using <div align=" "> , d text comes outta d box...nyways...its already aligned d way i want..so thnks again...
Change text-align: center; to whatever you wish it to align to. Smile