Jump to content
πŸ‘‰ Click here to explore Remote Jobs, Work From Home & Global News – USA πŸ‡ΊπŸ‡Έ | UK πŸ‡¬πŸ‡§ | Canada πŸ‡¨πŸ‡¦ | Pakistan πŸ‡΅πŸ‡° Γ—
🚫 Guest Access Notice Γ—

Recommended Posts

Posted

Hello,
For those who want to leave the warnings of his forum most beautiful and attractive, here have some css boxes:

HTML

<div class="mbh-success mbh-notification-box">This is the success box</div>
<div class="mbh-failure mbh-notification-box">This is the failure box</div>
<div class="mbh-warning mbh-notification-box">This is the warning box</div>
<div class="mbh-information mbh-notification-box">This is the information box</div>
<div class="mbh-question mbh-notification-box">This is the question box</div>
<div class="mbh-tip mbh-notification-box">This is the tip box</div>
<div class="mbh-notice mbh-notification-box">This is the notice box</div>

Β 

Β 

Β 

CSS

@import url('//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css');
@import url('http://fonts.googleapis.com/css?family=Open+Sans');

.mbh-notification-box {
  -moz-border-radius: 3px;
	-webkit-border-radius: 3px;
	border-radius: 3px;
	color: #ffffff;
	font-family: 'Open Sans', sans-serif;
  margin-bottom: 25px;
	padding: 10px 14px 10px 44px;
	position: relative;
	width: -moz-fit-content;
	width: -webkit-fit-content;
	width: fit-content;
}
	.mbh-notification-box:before {
		font-family: FontAwesome;
		font-size: 21px;
		left: 14px;
		position: absolute;
	}
.mbh-success {
	background-color: #2ecc71;
}
	.mbh-success:before {
		content: "\f00c";
		margin-left: -2px;
	}
.mbh-failure {
	background-color: #e74c3c;
}
	.mbh-failure:before {
		content: "\f00d";
	}
.mbh-warning {
	background-color: #e67e22;
}
	.mbh-warning:before {
		content: "\f12a";
		margin-left: 5px;
	}
.mbh-information {
	background-color: #3498db;
}
	.mbh-information:before {
		content: "\f129";
		margin-left: 4px;
	}
.mbh-question {
	background-color: #f1c40f;
}
	.mbh-question:before {
		content: "\f128";
		margin-left: 2px;
	}
.mbh-tip {
	background-color: #16a085;
}
	.mbh-tip:before {
		content: "\f0eb";
		margin-left: 2px;
	}
.mbh-notice {
	background-color: #bea474;
}
	.mbh-notice:before {
		content: "\f0a1";
		margin-left: -1px;
	}

Β 

Β 

How to use:

You just need to enter the text editor and go to his source code and insert one of the <div> tags mentioned above.

Β 

To insert CSS:

Put your css code in a <style> tag.

Β 

Β 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Forum Statistics

    2.7k
    Total Topics
    10.2k
    Total Posts


Γ—
Γ—
  • Create New...

Important Information

FundayForum uses essential cookies to run the community. Optional cookies support analytics and advertising. Choose Accept or Reject below. Read our Privacy Policy, Terms of Use and Guidelines. Essential cookies keep this community running. Choose Accept or Reject for optional cookies. Read our cookie policy and manage your cookie preferences.