MyCarta blog facelift: wordpress.com oxygen theme customised with CSS

I recently updated the blog look by switching to the Oxygen WP theme. This is a very good looking theme and I am thrilled by the results.

I made a few changes to the default look using CSS code. Mind you, nothing extraordinaire, in fact I am an absolute beginner. But with a good tip from WP staff member philiparthurmoore, a bit of reading, and a lot of (failed) experiments, I got exactly the look I was after.

These are the changes I made:

first, I removed one of the three columns, the right one, indicated by an arrow in the Oxygen demo below, so as to have more room available for the posts’ content.

demo

Second, and third, I wanted to have both the header and the category menu (indicated by arrows below) fixed in place at the top of the page when everything else is scrolling.

Notice that to accomplish that for the black category menu I had to add an image widget underneath it, with a white image of the same size as the menu. This was to allow the other widgets to start below it. A bit of a pedestrian solution, but it works.

By the way, the black category menu is shown in the demo but it does not come up by default when you first use the theme. You have to create it in the Menus (see below), add your categories to it, then you can shuffle them around by dragging and dropping (very cool).

That’s it, Bob’s your uncle!

And here’s my lightly commented code. Let me know if you like the blog’s look and if you have any suggestions.

/* To create fixed position secondary menu */
.menu-secondary {
 position: fixed;
 width: 180px;
 margin-top: 185px;
 margin-bottom: 190px;
 padding: 0 0 34px;
}
/* Added blank Image Widget with white box 180px x 330px */
/* to keep other widgets below secondary menu */
.widget_image {
 margin-top: 205px;
}
/* To display nothing in the third column */
#tertiary {
 display: none;
}
/* To allow main content to extend into third column */
#content {
 width: 750px;
 margin-left: 215px;
}
/* To create fixed position header */
#masthead {
 clear: both;
 padding: 70px 0 0;
 width: 100%;
 position: fixed;
 z-index: 200;
 background-color: #fff;
 margin-bottom: 10px;
}
#content {
 margin-top: 185px;
}

UPDATE

Reader Ron DeSpain wrote to let me know when not in Full Window mode the fixed secondary menu and fixed header overlapped with the content. Not only that, but some of the text disappeared outside of the right page edge. I tried a couple of fixes, but those then resulted in issues when viewing in full window mode.

So I decided to revert for now to the default Oxygen scrolling menu and header, until my CSS programming skills allow me to get this sorted (taking courses, see below).

RESOURCES: CSS and HTML course on Codacademy

HTML & CSS for Beginners

Coding with style

On a short blogging sabbatical

I just moved with my family to Stavanger, Norway, to work as a Geophysicist for a Danish E&P company.

I am taking a short sabbatical.

I should be able to go back to posting by August.

*** UPDATE after 3 1/2 weeks of vacation in Rome, Italy, I am about to resume activity in October.

MyCarta – 2011 in review

The WordPress.com stats helper monkeys prepared a 2011 annual report for this blog.

Here’s an excerpt:

A San Francisco cable car holds 60 people. This blog was viewed about 2,400 times in 2011 [NOTE: blog started on September 31st]. If it were a cable car, it would take about 40 trips to carry that many people.

Click here to see the complete report.

Welcome to MyCarta!

Hi everyone and welcome. As I mention in the blog header and in my about page, this is Matteo Niccoli’s blog of Topics in Geophysics, Planetary Exploration, Image Processing, Digital Cartography, and Visualization.

POSTS

My goal would be, once established a stable readership, to publish original material at least once a month. Posts will be generally in the form of either tutorials or case studies, often with data and results made available. Although this is not strictly a programming blog I will frequently work in Python or Matlab and share my code.

I plan to publish a number of post series covering topics in the following areas:

– Image processing and analysis

– Perceptually improved colormaps for data visualization

– Geophysical and petrophysical modeling

– Visualization tips for geoscientists

– Geophysics of impact craters

– Semiautomatic filtering of acquisition footprint in seismic data and in digital images (moiré pattern)

– Exploration gravity – data acquisition and processing

– Exploration gravity – data enhancement and interpretation

SUBMISSIONS

I will welcome submissions from readers, with probably one or two calls for submissions a year. You write the piece, I take care of publishing and promoting it. When ready for new submissions I will activate a submission page. Initially I will rely solely on my judgment to select the right pieces. Essentially, if the material is well written, interesting for the blog audience, and original, I will publish it, although I reserve the right to edit it or request additional work, and I will split the content if lenghty. Over time, depending obviously on the success of the blog, I would like this to become a peer-reviewed venue with a panel of editors/reviewers on staff. Please notice however that I am not looking for pure research submissions but rather pieces that can be read and enjoyed by a diverse audience, not just specialists.
Contributions are on a voluntary basis, with no monetary compensation.

NEWS AND REVIEWS

Finally, when time permits, I will post reviews and news on software, resources, books, technology. Planned topics currently include

– Visualizing Plate Tectonics

– Moon and Mars exploration

– Geology in photos and diagrams

So welcome to MyCarta!