Skip to main content

Blog Template Frustration

I've found several templates that I like for my Townshende blog, and yet every single damned one of them has problems. Some of them have highly technical problems.

One, in fact, — a template that I like a lot . . . this one, called Black Splat — had several problems. The code was designed to work around several problems with Microsoft's Internet Explorer browser (very typical of Microsoft, actually), but it didn't have the code necessary for other browsers to display that template correctly. It took me about 10 minutes of experimentation, along with some very specific searches to figure out the problem.

Most people aren't interested in this crap, but indulge me. Here's the original code:

body {
   position: relative; /* Fixes browser resizing bug in IE6 */
   margin: 10px auto;
   width: 980px;

   font-family: 'trebuchet ms', arial, sans-serif;
   text-align: center; /* IE Centering Technique */
   background: #000;
   }


/* Header and wrapper */
#wrapper {
   width: 980px;
   text-align: left; /* IE Centering Technique */
   background: url(http://2.bp.blogspot.com/_V-IXTBBt1Bg/SVPr5xX58aI/AAAAAAAAAjM/zM8cWJxooC0/s1600/topcurve.png) 40px 0 no-repeat;
   }


You'll notice that there are several comments within the code indicating which items are used to fix certain Internet Explorer problems. The original code also disabled the Blogger navigation bar at the top of the browser window. That's an easy fix. However, the text that I've bolded caused two problems with Blogger's navigation bar. The margin: 10px auto; code put an unsightly 10 pixel margin above the navigation bar. It looks very weird. The width: 980px; code set the width of the navigation bar to that of the template, so that the navigation bar was not stretched to the width of the browser window. Removing those pieces of code, or commenting them out, as I did (see below), got rid of the 10 pixel margin and allowed Blogger's navigation bar to expand to the width of the browser window.

Removing those, however, created a third problem. The body of the template was now aligned left, instead of being center aligned. To fix that, I had to add code to the "Header and Wrapper" container that told browsers other than Internet Explorer to center the body of the blog. That code was this: margin:0 auto;.

In the end, the fix looked like this:

body {
   position: relative; /* Fixes browser resizing bug in IE6 */
   /* margin: 10px auto; */
   /* width: 980px; */
   font-family: 'trebuchet ms', arial, sans-serif;
   text-align: center; /* IE Centering Technique */
   background: #000;
   }


/* Header and wrapper */
#wrapper {
   width: 980px;
   text-align: left; /* IE Centering Technique */
   margin:0 auto; /* to center the body for the rest */
   background: url(http://2.bp.blogspot.com/_V-IXTBBt1Bg/SVPr5xX58aI/AAAAAAAAAjM/zM8cWJxooC0/s1600/topcurve.png) 40px 0 no-repeat;
   }


This is all fine and dandy, but when I tried to get rid of some of Blogger's quick editing tools, this template just wouldn't allow it. Entering this code, .quickedit{display:none;}, didn't do a damned thing (although it worked fabulously for the template you're looking at right now). When I tried to delete the code itself that placed the quick editing tools on the screen, Blogger spat error messages at me. So, as much as I like the template I'm referring to, it's got problems that I can't fix (or don't know how to fix).

I'm tired of dealing with templates that don't work the way they're supposed to. Then again, I've read that Google's code for their blogs isn't up to snuff with W3 standards. It's proprietary. Sounds damned Microsoft-like to me! Hmmph! And grrr, too!

Ultimately, it comes down to either finding another template that I like better, or . . . deciding to put up with those annoying quick edit icons with which Blogger likes to litter my screen.

Comments

Popular posts from this blog

2021/2022 Goals

So, because I have done this for a long time now, I want to do it again now that I am reinstating my personal blog. Do what, you ask? Draw up a new list of goals. This used to be an annual “rite” for me, but it wasn’t a religious thing. It was a goal thing I did in place of what most like to call New Year’s Resolutions . I don’t do resolutions. I do goals. And while this post is tentatively titled “2021/2022 Goals,” it is largely about 2021, although I know that most of these will bleed over into 2022. It is what it is. Here are the goals— Find a Job — As I am out of work, I am in desperate need of an income. I am looking for telecom work as much as I am looking for retail work. A job is a job and an income is an income. I am also seeking to start an online business. 2021 – Write 35,000 Words — It has been a long time since I wrote any fiction, largely because of having to take care of my mum full-time because of her dementia. It is time I get back to it. As it is

Anti-Social…Again

Yesterday, I decided to start making use of my Anti-Social software. I hadn’t used it in so long that I forgot that I not only had to log out of any sites I was logged into that I wanted to block, but I also had to restart my browser before Anti-Social would block those sites. There are four sites I want blocked, because I know they distract me the most. They are— Facebook YouTube Yahoo Amazon Yesterday, I blocked those four sites for four hours, and I was able to get some things done. Not quite as much as I had hoped, but there was progress. I’m certain that if I make this a habit, I will see greater and greater progress with my productivity, and, eventually, as I get used to it, I won’t need to block my access to those sites any more using Anti-Social.

Public Enemies

My, oh my, how the world has changed. John Dillinger, America's first "Public Enemy Number One," is the man whose pursuit pretty much led to the founding, or should I say "funding," of the Federal Bureau of Investigation, which, at the time, was known as the Division of Investigation. The Wikipedia article on Melvin Pervis notes that J. Edgar Hoover became jealous of the fame Pervis gained following the death of Dillinger, "downgrad[ing] him, [which lead to] Purvis leaving the FBI" in 1935. Pervis died in 1960 of a self-inflicted gunshot wound to the head. "The FBI investigated the shooting and labeled it a suicide, though the official coroner's report did not find sufficient evidence to label the cause of death as such. It was later determined that Purvis may have shot himself accidentally while trying to extract a tracer bullet jammed in the pistol. He was 56 years old." Excellent movie.