MyBB Community Forums

Full Version: MyBB Forum Announcement Bar
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello!

I recently decided to add announcements to my forum. Ones that are similiar to the ones used by MyBB (the coloured ones at the index)

[Image: KD09pJe.png]

I got them working with the Announcement plugin, but I'm wondering, what are the HTML colour codes used for the:
Yellow background & borders
Green background & borders
Blue background & borders
Red background & borders
(I know there isn't a red one but I can't seem to perfect mine, really bad with HTML colours..)

Thanks all.
http://www.colorpicker.com/ - there are many many sites and applications like this where you can easily get color codes. Just search. Also you can check the colors on any page with tools like Firebug.
These are the style declarations for the bars:

Class: alert (Yellow)

.alert {
background: #FFF6BF;
border-top: 2px solid #FFD324;
border-bottom: 2px solid #FFD324;
}

Class: notice (Blue)

.notice {
background: #ADCBE7;
border-top: 2px solid #0F5C8E;
border-bottom: 2px solid #0F5C8E;
}

Class: notice2 (Green)

.notice2 {
background: #D6ECA6;
border-top: 2px solid #8DC93E;
border-bottom: 2px solid #8DC93E;
}

For RED you can use:
Class: notice3 (Red)

.notice3 {
background: #FFC5C5;
border-top: 2px solid #FF5959;
border-bottom: 2px solid #FF5959;
}

... and the common declarations (for all):

.alert, .notice, .notice2, .notice3 {
text-align: center;
margin: 10px auto;
padding: 5px 20px;
}
Thanks!