The background-color property sets the background color of an element. The background of an element is the total size of the element, including padding and border (but not the margin). Tip: Use a background color and a text color What you need to do is to change Margin to Padding and then you can change background-color in this object. This applies only if you are OK with changing background-color for the whole object. padding: 10px; background-color: #000; If not then, as suggestested, set a Border or only Border-top/Border-bottom. Set width solid/dotted/dashed color. I set the background color of the outer div to blue but it is not displayed. Why? Element opacity but not border. ... Use rgba syntax both for color and background and not use opacity for whole element. ... opacity background but not border css. I'm not sure what I'm doing wrong but having trouble applying background color for #content. But it works fine if I set the height value to let say 800px. CSS border-color Property ... Specifies the background color. Look at CSS Color Values for a complete list of possible color values. Default color is black: CSS Margins. The CSS margin properties are used to create space around elements, outside of any defined borders. With CSS, you have full control over the margins. background-clip lets you control how far a background image or color extends beyond ... semi-transparent light blue border. The background-position property in CSS allows you to move a background ... center 10% is not the same as 10% center. ... background-color; background-image; Area with margins doesnt display background color . ... but it's not. Top. Hi people, i'm new at this forum. I got a huge problem here, the background-image attribute just doesn't work. The background-color CSS property sets the background color of an element, using either a color value or the keyword transparent. Hi people, i'm new at this forum. I got a huge problem here, the background-image attribute just doesn't work. The below code works in Firefox but not in IE. Its a table with alternate row colors. In IE the background row color is not visible. CSS background-color Property. The background-color CSS property sets the background color of an element. ... (but not the margin). CSS Compatibility in Internet Explorer. ... Microsoft Internet Explorer 6 was the first fully Cascading Style Sheets, ... { background-color: sColor } Learn how to set HTML page properties and CSS properties, such as font, background color, and background image properties, for your Dreamweaver page. Hi. If you have a table with some rows and columns, and set the background color on the s like this: table.mytable tr { background-color CSS background-color Property. The background-color CSS property sets the background color of an element. ... (but not the margin). margin and padding are the two most commonly used properties for spacing-out elements. A margin is the space outside something, whereas padding is Background CSS background images ... 6 CSS Shorthand Tricks Every Developer Should Know. CSS Margin. CSS Margin property is used to define the space around elements. It is completely transparent and doesn't have any background color. CSS background color not showing up? (HTML) - Codedump.io. ... red and in child div I give width 100% and background blue and margin top 100px. That's no problem. With CSS you can give every single element their own background color or image, if you want. You can read about CSS here.