It's worth noting that displaying an element with a hidden parent is not possible, as previously mentioned. Surprisingly, Facebook's layout turned out to be simpler than expected - you just need to hide the header and sidebar elements if the user is not logged in.
Simply inject this CSS:
#pagelet_bluebar, #rightCol {
visibility: hidden;
}
Here is the result:
https://i.sstatic.net/QOJqk.jpg
And this is the result if the user is logged in:
https://i.sstatic.net/xaY5d.jpg
If you want to hide the chat sidebar, include #pagelet_sidebar
in your CSS:
#pagelet_bluebar, #rightCol, #pagelet_sidebar {
visibility: hidden;
}
In conclusion, focus on hiding the main components rather than everything on the page, or utilize jQuery to target all elements except for your specific one, as suggested by @MaVRoSCy.