Solved

what are the different ways to call this error box class

Posted on 2013-02-04
2
190 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
In this tutorial viewers will learn how to define a gradient in CSS. Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Gradient. Define the background as "linear-gradient(to right, #ee3668, black)". Ensure you …
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…

706 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

17 Experts available now in Live!

Get 1:1 Help Now