Skip to main content

Dashboard

In the code for this template, the three columns of links at the bottom part of this blog are called the "dashboard." The left column is "dashboard1," the middle column is "dashboard2," and the right column is "dashboard3."

One problem I've had with this template from the start is that the title for each set of links butted up against the last link in the set above it. So, I've been pouring over the code trying to figure out how to fix this. I noticed that this problem did not exist in the sidebar to the right, that there was plenty of space between the small block of text with my photo and brief description and the "Writer-Speak . . ." quote. With that as my guide, I tried to find the code that spaced them apart. I found some code that read:

.sidebar .widget{margin-bottom:1.5em;}

I know a little about CSS (Cascading Style Sheets), so I know that a dot preceding a name defines a "class." "Classes" are used in conjunction with HTML code to give a blog's contents a uniform appearance. In the following code, for example, . . .

<p class="name_of_class">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>

The class name is inserted within the paragraph tag (<p class="name_of_class"> insert_text_here </p>), and the class name tells the browser to refer to the class defined in a blog or web site's cascading style sheet. Style sheets are sometimes embedded within an HTML page, but more often they are separate, thus saving on the file size for each page of HTML code: one page of CSS describing all the layout and text attributes and more for a blog or web site (instead of having all that CSS code embedded on each separate page of HTML code) and then separate pages of HTML code for each page in a web site. It makes not only for less file space, but also for easier blog/site management.

The point of all this detail is to say that ".sidebar" and ".widget" are classes. The information in the code following ".widget" — namely, {margin-bottom:1.5em;} — tells the browser how much space is be placed below each widget. That's what each block of text in the sidebar and each list of links in the dashboard are: widgets.

(In "1.5em," "em" is a typographical term. It is, in fact, used in the proper name of the long dash (—), known as the "em-dash." The "em" refers to the letter "M"; an em-dash is the width of the upper-case "M" in any typeface. There are three distinct dashes in a typeface and most folk don't call them correctly. There's the hyphen "-"; the en-dash "–"; and the em-dash "—". When put side-by-side, the difference between them is obvious: - – —. Hyphens are used to hyphenate words and to break up a word between syllables when it breaks at the end of a line. En-dashes are used in numbers, typically between dates: 19 Mar 2001 – 31 Mar 2001. Em-dashes are used, per Strunk and White, "to set off an abrupt break or interruption, and to announce a long appositive or summary." They explain, "A dash is a mark of separation stronger than a comma, less formal than a colon, and more relaxed than parentheses." It is used "only when a more common mark of punctuation seems inadequate.")

So, taking the code mentioned above as my cue, I searched for the code for the widgets at the bottom of this blog, and that's how I discovered those three columns are called the "dashboard." I took the code and changed it — .dashboard .widget{margin_bottom:1.5em} — placed it along with the other "dashboard" code, saved the template, refreshed the blog page, and . . . it didn't work. Something was wrong. I knew it had to be the class name. After more searching through the code, I found what I believed was the correct class name, ".col3_content," which is an abbreviation for "column 3 content." I replaced ".sidebar" with ".col3_content," saved the template, reloaded the blog, and . . . violà! . . . it worked!

I enjoy messing with code like this, but I don't know if I could do it for a living or not. For one thing, it would require some training that I don't have.

My next goal is to figure out how to do the same thing to place space between the end of a blog post and the comment and label links below it. With this post, you can see just how little space there is. I hate it. It must be changed. [EDIT: This is now fixed.]

The goal I have after that is to increase the leading in my blog posts. "Leading" is another typographical term. It refers to the space between lines of text. In this blog, the lines are too close together for my tastes. I hate it. It must be changed, too. (Sometimes, I wonder what the hell some of these designers are thinking. :P) [EDIT: This is now fixed, too.]

[EDIT: It would appear that a lot has changed since I last did any major muckin' about with Cascading Style Sheets! o.o I've been able to slowly, but surely, decipher the mess, but while I recognize a lot of the code, there's a lot of new shit swimming around in that pool that I don't recognize. It's made me understandably cautious, lest my muckin' about should bite me in the arse by way of screwin' up this blog.]

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.

Abatement

It would appear that my blog template frustration has been abated. I have found a template that is . . . obedient to my every command, appears to have no problems (miracle of miracles), and is a template with which I can live (although there is one minor item I'd like to fix; I've got to figure out where the problem lies first, however). Amazing, isn't it? [EDIT: That one minor item? It's been fixed. Life is good. :P ]