Solved

what are the different ways to call this error box class

Posted on 2013-02-04
2
192 Views
Last Modified: 2013-02-04
how to call this class
.error{
background-color: #F2DEDE;
				    border-color: #EED3D7;
				    border-radius: 4px 4px 4px 4px;
				    color: #B94A48;
				    margin-bottom: 20px;
				    padding: 8px 35px 8px 14px;
				    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}
                                            

Open in new window

0
Comment
Question by:rgb192
2 Comments
 
LVL 6

Accepted Solution

by:
nickinthooz earned 500 total points
ID: 38853385
just put class="error"

<div class="error">test</div>
<p class="error">paragraph</p>
<pre class="error">pre</pre>
<span class="error">span</span>

Open in new window


look here to see it in action:  http://jsfiddle.net/xzMEv/
0
 

Author Closing Comment

by:rgb192
ID: 38853539
I like the jsfiddle demo
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Re-position sub-options beneath the TAB 7 75
How can I make a css class read only with jquery? 2 37
Host asp.net pages 5 25
Error on link 14 37
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
This article discusses four methods for overlaying images in a container on a web page
In this Micro Tutorial users will learn how to embed custom fonts into websites using @font-face in CSS Select a font: Ensure the EULA allows you to use @font-face: Download the font: Get the browser-compatible files you need: Edit your CSS       - Name …
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

911 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now