Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

what are the different ways to call this error box class

Posted on 2013-02-04
2
Medium Priority
?
197 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 6

Accepted Solution

by:
nickinthooz earned 2000 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

When writing CSS, there are a few simple rules that will make your life easier.    1. Using ‘* {box-sizing:border-box;}’. Using this will wrap all your elements in a nice little compact box-model that will give you the width you want, like so... …
Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

688 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