Next.js Discord

Discord Forum

Css Helpp

Unanswered
Schneider’s Smooth-fronted Caima… posted this in #help-forum
Open in Discord
Schneider’s Smooth-fronted CaimanOP
why this, automatic put the margin and the display and i dont know how i can remove it.

17 Replies

@Schneider’s Smooth-fronted Caiman why this, automatic put the margin and the display and i dont know how i can remove it.
it might be a default of some extension or your browser. You can remove it by setting the margin, padding and border to 0 in your body tag like:
body {
  border: 0;
  margin: 0;
  padding: 0;
}
Schneider’s Smooth-fronted CaimanOP
I check in other browser, pc`s friends and it stay, i have it and also i added !important but it didn work
Schneider’s Smooth-fronted CaimanOP
@Schneider’s Smooth-fronted Caiman Click to see attachment
do it without the .. You can easily copy exactly what I shared
@B33fb0n3 do it without the `.`. You can easily copy exactly what I shared
Schneider’s Smooth-fronted CaimanOP
i tried it before and it show me error
@Schneider’s Smooth-fronted Caiman i tried it before and it show me error
which error? Please share the full error
@B33fb0n3 which error? Please share the full error
Schneider’s Smooth-fronted CaimanOP
@Schneider’s Smooth-fronted Caiman Click to see attachment
great a normal .css file and put it there. Then import this new .css file into your page
Schneider’s Smooth-fronted CaimanOP
what?
i import my css in the index
put it inside your globals.css
@Schneider’s Smooth-fronted Caiman what?
1. Create a file called global.css if you don't have any yet
2. Put the mentioned code in there
3. Import that global.css into your page
Schneider’s Smooth-fronted CaimanOP
how i can import the global css in my page
@Schneider’s Smooth-fronted Caiman how i can import the global css in my page
like this:
import './globals.css'; // use the path, where your global.css is
@B33fb0n3 like this: tsx import './globals.css'; // use the path, where your global.css is
Schneider’s Smooth-fronted CaimanOP
I fixed it with chat gpt, it was silly, thank you very much anyway! ♥️