Scribbled notes while watching last night’s episode of Lost. Spoilers, obviously, so only read further if you want to…
Enthusiastically Ambiverted Hopepunk
Scribbled notes while watching last night’s episode of Lost. Spoilers, obviously, so only read further if you want to…
I’m working on setting up a print stylesheet for the site. I’ve got it about, oh, 98% done — done enough that I could leave it as-is, except that there’s one little thing that’s bothering me that so far, I’m not able to fix. Any and all help would be greatly appreciated.
Because hyperlinks are essentially useless on the printed page, in the print stylesheet, I’m using CSS2 selectors as outlined in this A List Apart article to insert URLs after links in the text. This way, instead of links simply printing as colored and underlined text, the destination address of the link is printed out after the link text.
Here’s the code I’m using to accomplish this:
a:link, a:visited {
text-decoration: none;
}
.entry-body a[href]:before,
.entry-more a[href]:before,
.trackback-content a[href]:before,
.comment-content a[href]:before {
content: " [";
color: #000;
text-decoration: none;
}
.entry-body a[href]:after,
.entry-more a[href]:after,
.trackback-content a[href]:after,
.comment-content a[href]:after {
content: " " attr(href) "] ";
color: #000;
text-decoration: none;
}
So far, so good, it’s doing exactly what it should. Here’s a sample of what it looks like when printed from a browser that understands CSS2 declarations (that is, pretty much everything except IE):
However, I often insert images into my posts that are linked, either to larger versions as in the above screenshot, or to the Flickr pages for the original images. In that instance, I’d prefer that the target URLs not be inserted, as they are less relevant, and tend to muck up the final printed page in odd ways.
Example number one: the panoramic image that appears at the beginning of the Cal Anderson Park post from earlier today:
Example number two: the Flickr imagebar from the bottom of the same post. The web version shows five thumbnails side-by-side, but once the URLs are appended for the print version…
…only two of the thumbnails can even appear on the page.
Okay, sure, so these things aren’t exactly major disasters, but I’m just anal enough that I’d like to fix them. What I’d like to do, then, is figure out just what CSS code I’d need to use to exclude images from the code shown above.
Of course, I haven’t got a clue how to do this (obviously, or this post wouldn’t even exist). I’ve been poking at it all morning, and I’m stuck. Any ideas?
Anyone?
Bueller?
NOTE: Possible Safari Bug? In the original A List Apart article, the example code used a combination of a:link:after and a:visited:after to ensure that the links were inserted after all the links — if the code was only attached to a:link:after, then any links that the user had visited would not get the link appended when the page was printed.
While I was working on this, I started with that code. However, I was noticing an odd bug that was only appearing in Safari (at least, it wasn’t appearing in Firefox or Opera, the other browsers I have available to test with) — Safari would pick one URL of the URLs on that page and insert it after every link. In other words, if one link on the page pointed to www.example.com, then no matter how many other links were on the page, they would all display as www.example.com.
I wrote that off as something to worry about later, and kept fiddling around trying to get my images to do what I wanted. In the process, I skimmed over a more recent ALA article on print stylesheets and noticed that Eric Meyer had presented slightly different code: instead of combining a:link:after and a:visited:after, he simply wrote a[href]:after, and that took care of both instances. I swapped out my old code for the new, more concise version, and not only did it work as it should…but the repeating URL bug disappeared. Now, when printing from Safari, all the correct links print out just as they should.
Weird…but good to know.
Another excursion for me yesterday, as I went down to Capitol Hill to explore the newly re-opened Cal Anderson Park.
Tangentially related to my being asked to delete photographs I’d taken of children last 4th of July, a rather absurd situation from New York: a woman was ticketed for sitting on a park bench because she didn’t have any children.
It’s an only in New York story. A woman was given a ticket for sitting on a park bench because she doesn’t have children.
The Rivington Playground on Manhattan’s East Side has a small sign at the entrance that says adults are prohibited unless they are accompanied by a child. Forty-seven-year-old Sandra Catena says she didn’t see the sign when she sat down to wait for an arts festival to start. Two New York City police officers asked her if she was with a child. When she said no, they gave her a ticket that could bring a one thousand dollar fine and 90 days in jail.
The city parks department says the rule is designed to keep pedophiles out of city parks, but a parks spokesman told the Daily News that the department hoped police would use some common sense when enforcing the rule.
The spokesman told the paper that ticketing a woman in the park in the middle of the day is not the way you want to enforce the rule.
Yes, of course, pedophilia is a terrible thing. But this approach of assuming anyone who so much looks at a child that isn’t theirs is a pedophile is paranoid to the point of ludicrousness, and incredibly offensive to boot.
(via Joel Blain)
In other news, I’ve got a job!
Starting on Thursday, I’ll be working at the Kits Cameras store in the Northgate Mall. Better pay than I expected at first, the people I’ve met so far seem really nice, hours that work quite well with my going back to school in January, and fun toys to play with. All in all, seems to be a pretty good deal.
So now I’ve got tomorrow, Wednesday, and Thursday morning to goof off — guilt free! — before I’m back in the realm of the working class.
Go me!
![]()
“Revolutionary Generation” by Public Enemy from the album Fear of a Black Planet (1990, 5:43).
Word came out this week that Seattle’s Northgate Mall was finally going to be getting an upgrade, part of which is going to involve demolishing the Medical Office Building and the Northgate Theatre that have long stood empty and unused.
Since I had some time to kill yesterday, I wandered down to the Northgate Mall and spent some time wandering around the old buildings. I was able to shoot my way around about three quarters of the soon-to-be-demolished buildings before mall security took noticed and asked me to stop. To their credit, the guy that spoke to me was very polite, just letting me know that the mall didn’t allow photography on mall property, and told me that I’d be welcome to take photographs from the street if I wished.
True then, and true now:
If we confuse dissent with disloyalty — if we deny the right of the individual to be wrong, unpopular, eccentric or unorthodox — if we deny the essence of ratial equality (sic) then hundreds of millions in Asia and Africa who are shopping about for a new allegiance will conclude that we are concerned to defend a myth and our present privileged status. Every act that denies or limits the freedom of the individual in this country costs us the … confidence of men and women who aspire to that freedom and independence of which we speak and for which our ancestors fought.
— Edward R. Murrow, Ford Fiftieth Anniversary Show, CBS and NBC, June 1953, “Conclusion.”
Found on Wikipedia while looking up information on Edward R. Murrow and Senator Joe McCarthy after watching the trailer for Good Night and Good Luck — which, by the way, looks very interesting.
Scribbled notes while watching last night’s premiere episode of Lost. Spoilers, obviously, so only read further if you want to…