DEV Community

Shrawan Kr Sharma
Shrawan Kr Sharma

Posted on

Is grid on body container is not best idea on css ?

Top comments (7)

Collapse
 
shrawan2015 profile image
Shrawan Kr Sharma • Edited

I could see in most of the website, every section uses grid.There is no single website which uses grid on body. Does it impact performance of website ? In one of the blog of #css-trick has suggested to avoid to use grid in body.

Collapse
 
jwp profile image
John Peters

I use it, with no problems.

Collapse
 
shrawan2015 profile image
Shrawan Kr Sharma

Can you share website link where you have seen body as grid.

Thread Thread
 
jwp profile image
John Peters

No, its internal use only. sorry

Collapse
 
shrawan2015 profile image
Shrawan Kr Sharma • Edited

css-tricks.com/full-width-elements...

On the footnote of above link you can see author has given emphasis on not using grid on body.

Collapse
 
thebuildguy profile image
Tulsi Prasad

Maybe keeping the websites future compatibility in focus, this might be a good practice.

Collapse
 
gass profile image
Gass

Thanks for the info!