Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting color in a CSS class doesn't work

Tags:

html

css

colors

I can't set this CSS class, the color instruction doesn't work, but the text-shadow does. Help me?

.jumbotron {
    position: relative;
    padding: 40px 0;
    color: #6495ed;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0,0,0,.4), 0 0 30px rgba(0,0,0,.075);
}

I tried to delete the text-shadow, but it also didn't work.

like image 650
Black_Ram Avatar asked Jan 19 '13 12:01

Black_Ram


People also ask

How do you change color in CSS?

Simply add the appropriate CSS selector and define the color property with the value you want. For example, say you want to change the color of all paragraphs on your site to navy. Then you'd add p {color: #000080; } to the head section of your HTML file.

What are the 3 ways CSS color be specified?

Colors in CSS can be specified by the following methods: Hexadecimal colors. Hexadecimal colors with transparency. RGB colors.


1 Answers

Use !important to override other color styling.

like: color: #6495ed !important

like image 72
Wilq Avatar answered Oct 13 '22 01:10

Wilq