I'm not really sure why my italic text has a black bg, but p { }
is not getting it done and Google just tells me how to make italic text. full css // full html *Edit: You'll see I had to specify background-color
for the headers, or they would have #000;
bg's as well.
Asked
Active
Viewed 1,088 times
-1

pillow
- 3
- 3
-
1Welcome to Stack Overflow _ With reference to your edit "_You'll see..._" there is nothing to see in your post. Please add the code specific to your issue. For guidelines on this please read >>> https://stackoverflow.com/help/minimal-reproducible-example – inputforcolor Dec 14 '19 at 02:01
2 Answers
1
The reason you have black background for all the elements even when you don’t specify anything is
- { background-color: #000; color: #C3CCD3; font-family: 'Roboto', sans-serif; box-sizing: border-box; }
Essentially this means that any element in the HTML should have the above properties.
Also remove any #0b0b0b background color from your css. Since this too is almost like black color.
Making text is possible using the tag. And the css should then be written for it as
i {
background-color: red; }

Divneet
- 648
- 4
- 18
-
Ahh, okay thank you. I do want [dark backgrounds](https://files.catbox.moe/xv4xek.png) but I need my text to all have `#0b0b0b;` as their bg color to match the div boxes. I think I should have originally used `body: { background-color: #000; }` for the black website bg. I had already tried `i` as a tag by itself and it didn't change anything, unfortunately :/ – pillow Dec 14 '19 at 04:49
0
Your question isn't clair at all please provide html with your css not just a screenshot.
All I can see is the * { background-color: #000;} the * stands for Select all elements. So you are basically making eveything with black background.
Also : p { background-color: #0b0b0b; you are making your p elements with black backgrounds since #0b0b0b is also black.

Nicole
- 134
- 15
-
Whoops, thank you. `* { }` is #000;, which is the background of the page and not the divs. I had to make `p` a color to match the divs. – pillow Dec 14 '19 at 03:30