![css color codes for royal blue css color codes for royal blue](https://rgbcolorcode.com/color/images/dark-midnight-blue.jpg)
After that come the hexadecimal digits of the color code. If you use the single-digit notation, the final color is computed by using each component's digit twice that is, "#D" becomes "#DD" when drawing.Ī color in hexadecimal string notation always begins with the character "#". All components must be specified using the same number of digits. Each color component can be represented as a number between 0 and 255 (0x00 and 0xFF) or, optionally, as a number between 0 and 15 (0x0 and 0xF). It may also include a fourth component: the alpha channel (or opacity). Hexadecimal string notation represents a color using hexadecimal digits to represent each of the color components (red, green, and blue). There are three ways to represent an RGB color in CSS. For example, if the box's text is being rendered right-to-left, then the border-inline-start-color is applied to the right side of the border. Which side this is will vary depending on the writing-mode, direction, and text-orientation properties, which are typically (but not always) used to adjust text directionality based on the language being displayed. These let you color the edges of the border closest to the beginning and the end of the start of lines of text within the box. border-inline-start-color and border-inline-end-color This differs from the inline start and end, which are the left and right edges (corresponding to where each line of text in the box begins and ends). In a left-to-right writing mode (such as the way English is written), the block start border is the top edge and the block end is the bottom. With these, you can set the color used to draw the borders which are closest to the start and end of the block the border surrounds.
![css color codes for royal blue css color codes for royal blue](https://cssgradient.io/images/shades/shades-of-blue-0b3bd5ae.jpg)
border-block-start-color and border-block-end-color Lets you set the color of the corresponding side of the element's border.
![css color codes for royal blue css color codes for royal blue](https://vivadifferences.com/wp-content/uploads/2020/01/Cobalt-Blue.jpg)
border-left-color, border-right-color, border-top-color, and border-bottom-color Specifies a single color to use for every side of the element's border. You can use the border shorthand property, which lets you configure everything about the border in one shot (including non-color features of borders, such as its width, style (solid, dashed, etc.), and so forth. See Box properties in The box model to learn about the relationship between elements and their borders, and the article Styling borders using CSS to learn more about applying styles to borders. A basic element border is a line drawn around the edges of the element's content. BoxesĪny element can have a border drawn around it. This is only useful in elements that are editable, such as and or elements whose HTML contenteditable attribute is set. The color to use when drawing the caret (sometimes referred to as the text input cursor) within the element. This is used primarily when drawing text for East Asian languages. The color to use when drawing emphasis symbols adjacent to each character in the text. However, you can override that behavior and use a different color for them with the text-decoration-color property. text-decoration-colorīy default, text decorations (such as underlines, strikethroughs, etc) use the color property as their colors. See Text drop shadows in Fundamental text and font styling to learn more. Among the options for the shadow is the shadow's base color (which is then blurred and blended with the background based on the other parameters). background-colorĬonfigures a shadow effect to apply to text. The color to use when drawing the text and any text decorations (such as the addition of under- or overlines, strike-through lines, and so forth. Whenever an element is rendered, these properties are used to determine the color of the text, its background, and any decorations on the text.