Sublime Forum

Simple problems

#1

Hey everyone, for some reason Sublime isn’t letting me set a background color in my css file. If I set the color in my html file with css, then it works somehow. Can someone explain this? Thanks

0 Likes

#2

Could you provide more information? I assume your html/CSS isn’t showing as desired in your browser, in which case this problem has nothing to do with Sublime Text.

0 Likes

#3

Yeah, I mean that if I made a style tag in my html tag and set the body color to blue, the url would respond accordingly, but if I set that same style tag in my CSS file, nothing would happen.

0 Likes

#4

You need to study up on CSS. This site will help you.

0 Likes

#5

hey man, I spent some time sharpening up on css. The solution didn’t seem to be there. Maybe you can tell me where I’m going wrong? Thanks!
2020-04-02%20(1)|406x500

0 Likes

#6

0 Likes

#7

CSS files shouldn’t have <style> tags in them; that’s what you use if you’re inlining your CSS in the HTML file.

0 Likes