Tag Archives: CSS

The Facebook Logo Has Gone Into Hiding

It was reported by several sources this week that after an embarassing affair with a prostitute, the Facebook logo has gone into hiding. Actually, what has been happening for me is that the Facebook logo has been randomly disappearing for me in my browser. In fact, most days, lately, in Opera 9.26, this is what I see:


When I dug around, I found the Facebook logo actually has the “on” and “off” image in one file and uses a CSS and “hover” trick to create the little home icon next to the logo. Neat.

Has anyone else experienced the mystery of the disappearing Facebook logo? Other Opera users maybe?

Tagged , , ,

PHP Lesson 2: Behind the Scenes of Threading

This is going to be a very nerdy post, because I’m going to get into some actual PHP code. I’ve been thinking a lot about efficient threading. The implementation of threading on OSNews is very complex, because it involves lots of math in order to properly construct and align tables. Furthermore, because we don’t use CSS for positioning, it’s accomplished via ‘align’ commands and TWO templates, which is really clumsy, because between flat mode, admin mode, collapsed threading mode, and expanded threaded mode, we have several templates, and since they are all independent, they tend to unintentionally vary, so you might see different things in replies and threads. My goal in writing a threaded display for firsttube.com was to avoid all of the pitfalls in that implementation and come up with something clean. Read on for the gory details.
Continue reading

Tagged , , , , , , ,

firsttube.com gets threads

I understand that some people believe that threading comments are unintuitive, they confuse the user, and that they are ugly. I like ’em. So this site now supports threading in the comments.

Now – as of right now, you can only reply once, like digg, but it supports two deep. This is only because I haven’t found a more elegant way to allow deeper threading in the code. As soon as I do, I will be allowing deeper threading, probably 3 or 4 comments deep for aesthetic reasons.

The entire thing is done in CSS, unlike OSNews which is hard coded to the pixel with very complex code that really makes me uncomfortable when I see it. This is much nicer. It’s all done via templates, and there are only two – one for comments and one for threads, and this will probably change to one soon too.

Tagged , , , , ,

DIVs only


according to css expert eric meyer, large scale tables used for page layout are okay. so stop the presses everyone – tables are okay today. i’m really getting sick of all these “made without tables” buttons on pages. it’s very cool to be able to be good enough with css to be able to layout a page without tables, but it’s definitely not worth much more than cool points. tables are not evil – they just shouldn’t be endlessly nested to control prescise layout.

i’ll phase the new pane in shortly, once it has content.

Update: She flies. Ingest the new ftblog.

Tagged , ,