On the right side is a preview of the site. When you specify CSS styles inside the @keyframes rule, the animation will gradually change from the current style to the new style at certain times. Determine the background color you want to use. To change text selection color and background, you can use ::selection CSS selector that applies the effect when we select the text content. Know all properties in CSS & the way to use them from SlightBook. To use the jQuery method and create hover effect, you have to give background color initially using CSS. share | follow | asked Dec 21 '15 at 3:49. It can be applied to all HTML elements. Next, let's get to know more about this property. ; Using different prefixes, these classes can be used for both Bootstrap text color and background color, as well as coloring elements. It applies solid colors as the element's background. I want it just behind the text. I watched in the forum but I do not find the right answer. Minus the image on the left. Read about initial: Play it » inherit: Inherits this property from its parent element. 10% opacity. When you use the Appearance (CSS) options, Dreamweaver creates corresponding styles for the body tag automatically. inherit the same transparency. javascript change background color of div. CSS Backgrounds and Borders Module Level 3 Die Definition von 'background-color' in dieser Spezifikation. But what if we only wish to set the opacity on the background color whilst keeping the content (such as text and images) opaque? If you do not want to apply opacity to child elements, like in our example above, use RGBA color values. This is an interesting task considering the project.