User agent style sheet

hello , I’m new here so I look forward for your advices, recently all of my html project style sheets are override by user agent style sheet and I didn’t find any solution to it. this here is sample image of my code

<!DOCTYPE html>
<html lang="en">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Css Level 3</title>
    <link rel="stylesheet" href="style.css" >
    <h1>Position Playground</h1>
    <div id="box1">box1</div>
    <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Quam ullam praesentium quos, laudantium doloribus dicta quibusdam eos aliquid, soluta neque quidem nihil ducimus saepe sed ab expedita perferendis in id.</p>
    <div id="box2">love Nature</div>
    <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Hic praesentium ut accusamus, sequi sit quaerat earum nihil deleniti quidem voluptates possimus a quisquam esse, voluptatum ipsam velit quam repudiandae atque!
    Rem excepturi aliquam delectus ex nesciunt! Voluptatem, tempore voluptatum. Odio, illo iusto! Cum, dicta, ea qui consequatur dignissimos exercitationem molestias ducimus quod est consectetur enim iusto! Ratione suscipit quos nobis?</p>
    <div id="box3">box3</div>
    <div id="box4">box4</div>

/* Css */

    height: 100px;
    width: 100px;
    background-color: aqua;
    border: 2px solid rgb(0, 0, 0);
    display: inline-block;
   background-color: pink;
   background-image: url("projects/images/image1");
   background-size: cover;
    background-color: violet;
   background-image: url("projects/images/image2");
   background-size: cover;
   position: fixed;
   right: 0px;
   top: 0px;
    background-color: purple;
    background-image: url("projects/images/image3");
    background-size: cover;
    background-color: plum;
    background-image: url("projects/images/image4");
    background-size: cover;


Please post your code instead of a screenshot. Thanks.

1 Like

if you are working in the freeCodeCamp environment, the name of the css file is slightly different, it should be styles.css

1 Like

oh it because Its copied after i tried on my local editor

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.