Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

what are the different ways to call this error box class

Posted on 2013-02-04
2
Medium Priority
?
198 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 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
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 style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
Suggested Courses

971 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