need help to remove unwanted div
Unanswered
Blue Picardy Spaniel posted this in #help-forum
Blue Picardy SpanielOP
want to remove this div. its making my layout un fit.
32 Replies
Blue Picardy SpanielOP
un named/ class div
show me your layout.tsx
Blue Picardy SpanielOP
ok
hello ?
is this root layout?
@Blue Picardy Spaniel want to remove this div. its making my layout un fit.
and please provide enough so that they can help you
Blue Picardy SpanielOP
@Blue Picardy Spaniel want to remove this div. its making my layout un fit.
show me full screenshot
or give me the url
Blue Picardy SpanielOP
this is the layout component
inside layout compoent nothing
all empty
the empty div coming over the layouts
i have check docuemt and _app file. no sign of div assginment
show me the project folder structure
are you using page router?
Blue Picardy SpanielOP
yes
@Blue Picardy Spaniel i have check docuemt and _app file. no sign of div assginment
unless you provide enough, no one is able to help you
thx
Blue Picardy SpanielOP
ok
thank you
you are saying I checked this and this but you couldn't solve
how can we help you even without being able to see what you have checked?
how can we help you even without being able to see what you have checked?
Blue Picardy SpanielOP
ok i will share my project on sandbox. you will see all component
@Blue Picardy Spaniel want to remove this div. its making my layout un fit.
You want to remove the
That said, the best solution here is to change your css so that it doesn’t rely on whether the app is wrapped in a
__next div? Use the app router. The __next div is forced in the pages router, you can’t remove it if you use that router.That said, the best solution here is to change your css so that it doesn’t rely on whether the app is wrapped in a
__next or not.I think he is talking about a blank div after script tag inside __next div
Blue Picardy SpanielOP
yes @James4u
now
i just fix to reinstall fresh next js. a nd moved project files inside it
i just fix to reinstall fresh next js. a nd moved project files inside it
@joulev You want to remove the `__next` div? Use the app router. The `__next` div is forced in the pages router, you can’t remove it if you use that router.
That said, the best solution here is to change your css so that it doesn’t rely on whether the app is wrapped in a `__next` or not.
Blue Picardy SpanielOP
got fixed thank you for your help
@Blue Picardy Spaniel did you mean
__next div?Blue Picardy SpanielOP
no under this div