CSS Primer on Centering

Tuesday, December 11th, 2007

Here’s a handy primer on centering things using CSS.

Remember, the <center> tag is sooo 20th century.

Horizontal centering isn’t very difficult, though vertical centering could use a little better support.

Via: CSS: centering things
[tags]css, center, html, align, alignment[/tags]

Why Aren’t My CSS Changes Showing Up in Firefox??

Saturday, August 25th, 2007

Firefox icon

No, this isn’t an “Internet Explorer is crap” article.

This was very frustrating. I was rewriting the CSS for the web site I’ll be opening up later today, doing a first test of the changes in Firefox, and none of the changes were showing up on the page.

Using Firebug and XRAY, the changes weren’t even appearing in the CSS as they reported it.

I started out tweaking the CSS and became more and more confused as the changes I was doing failed to make any impact on the appearance of the page. Once I found that they weren’t being recognized I thought that Firefox must be caching the CSS file and not reloading it… I found an extension to give me a handy “clear cache” button… that didn’t do it… I went into the preferences and cleared the cache by hand… no good.

I tried the page under Safari and it rendered the way I expected it to. I tweaked the CSS and saw the effects of the tweak. That was good news… but why wasn’t Firefox working? I’d never run into this kind of problem with it before.
(more…)

Embedding Geographic Information in Web Pages

Saturday, July 14th, 2007

The Map is not the Territory

The main project I’m currently working on is a web site about food in the area I live in. It’s currently in testing and I’m quite a bit further behind on fixing it up to the point of opening it to the world than I’d like to be.

One feature that’s important to me to have in it is to mark pages that are associated with restaurants or other food-related organizations with their coordinates.

It turns out that there are several different ways to do this.

I’m currently using META tags in the HEAD section to specify geo.position, like this:

<head>
<meta name="geo.placename" content='Quechee, VT' />
<meta name='geo.position' content='43.645995,-72.416711' />
</head>

There are at least three other ways to do this:
(more…)

Sponsored Links