3 ms·
I always thought it was weird when people have websites like this, anyways, for those phased away and want to read this article while centered, execute in the c
by muattiyah 3y ago
I always thought it was weird when people have websites like this, anyways, for those phased away and want to read this article while centered, execute in the console:
document.getElementsByTagName('body')[0].children[0].style.margin = '0 auto';
- lloydatkinson 3y agoThat's a good tip! I also think its just as weird when sites have zero links to their home page. On what planet is "go to the address bar and delete the last part of the url and hit enter to go to the index" good user experience?
- Monadic-Cat 3y agoAgreed. It was a good tip. My goal in leaving out the link to my home page was to make the Writing Gaggle home page more prominent than my personal blog. (I manage hosting both, see.) I only added my blog index page as an afterthought when I saw a ton of 404 errors on my server a few months ago because people were manually navigating to it. I'll consider adding actual navigation to my page template though, so maybe you'll be less annoyed ;)
- Monadic-Cat 3y agoI'll go ahead and promise to leave the '#wrapper' id on that element in my blog template, so this can be shortened to: document.getElementById('wrapper').style.margin = '0 auto'; Though if you're in the habit of customizing sites you read, I'd personally recommend using a browser extension like Stylus (https://add0n.com/stylus.html https://add0n.com/stylus.html) to do CSS, so you could write it like this: #wrapper { margin: 0 auto; }