Blog | Admin | Archives

Correct Me If I’m Wrong…

When I ran in to a CSS/Table conundrum at work, I decided to see what Bernie thought. The links have been achored, and the text prettied, but otherwise the conversation is real.

One of the recurring themes I run into while visiting sites about CSS is how sinful it is to use tables for layout. I tried to take this to heart, but for the life of me I can’t figure out a better way than tables to align items that, to look good and make sense, must be lined up properly both vertically and horizontally.

Here is the page with a table
And my utterly failed attempt to replicate with css

Am I missing something fundamental, or are tables really the better choice in this case?

And while I’m on the line with a CSS guru, what makes it so that the elements with the position: absolute propety set conform to their parent element instead of the browser page as a whole? Is it when I set the position on the parent element that this works? If so, thats kinda dumb, imho…

Having fun with CSS I see ;) One of the things you’ll quickly learn (and seem to be learning already) is that while CSS design can prove to be very rewarding (e.g. bandwidth) it can also prove to be very, very stressful. If you’re trying to make your design look good in more than one browser it gets even more stressful :) Often times you’ll run into situations where you know you could do something in a matter of seconds using a table, or some other non-standard HTML
approach.

I try my darnedest to stay away from tables whenever possible, but as you’ve pointed out, sometimes they are the only option. As far as the sites recommending you avoid tables at all costs go, take that advice with a grain of salt. Tables are still a perfectly valid construct in XHTML 1.0 and 1.1. A lot of the presentational information has just been moved into CSS whereas in HTML 3 you could define most of your table properties in the table tag itself.

I don’t know if you’ve seen it or not, but I wrote something on my site about “tableless tables,” and it seems like an approach you might be able to use for what you are doing. Take a look at this before you decide to go the table route. What I wrote was more a proof of concept than anything else, so it would be cool to see it put to real use.

While I’m not afraid to use tables when they’re absolutely called for, I do try to avoid absolute positioning like the plague. I’ve seen too many problems with page flow when using that type of positioning in my CSS. However, if you’re dead set on it (there are certainly situations where it’s a necessity) give this a look. I believe they answer your question in the first paragraph. There seems to be a good deal of information there, so hopefully that will help.

Good luck, and try not to pull any hair out ;)

I was very impressed with your tableless tables, and I pursued making them work in my situation as well, but I ran into problems. (Correct me if I’m wrong, again…) The biggest deficiency of tableless tables is that in oder for alignment to be maintained vertically, the cells
have to have preset widths that are the same (in your case, 23% did the trick). In other words, there is an inability of cells that are supposed to be stacked veritically to resize together fit the largest content in the column. If you don’t force the “columns” to be certain size, they choose to be whatever is inside of them, and any semblance of tablehood is lost. It seems to me that in this case, CSS does not degrade very well, and tables are indeed the better answer for me at
this time, especially since they are so well supported by so many browsers.

On another note, I had some glimpses of CSS3 today, and all I have to say is that whenever it starts to get seriously supported, designing pages should be quite a bit of fun, especially with the pseudo-selectors like nth-child(2n+1) and all that :-)

It sounds like tables are the way to go for what you’re trying to achieve. If it was me, I’d spend some more time trying to figure out a way to do it in CSS, but that’s just because I like torturing myself ;) I can think of a few options, but like you said, we might as well wait until CSS3 when things become so much easier (like this).

Like a Mask

There are plenty of movies where the characters, and sometimes even you as a watcher, don’t know who is who. Like in Mission Impossible with Ethan and his masks. It makes for interesting film, but I’ve never had to deal with the situation in real-life – until recently. The issue involves AOL Instant Messanger and a particular person who doesn’t seem to realize her friends are sneaky mischiefmakers. Several times over the past few weeks, I have come to the startlng revalation that I’m not talking to who I think I’m talking to, and its atually somewhat disturbing, to say the least. Its not like I’ve said anything I’m embarassed about, but, well, do people get off doing this or what?

Or Not…

Well, the mail held no correspondance from the UW today, so it’ll be at least another day before I find out. And if the past rate of progression continues, I won’t know until the end of August. The NRA, on the other hand, keeps sending me mail: A magazine a month and constant renewal reminders.

And as for my other problem, it turns out Windows wasn’t the problem at all. I followed some of the links you guys sent me, and they didn’t hold any particular new information, but they did drive home that Windows only creates Thumbnails when it is in the Thumbnail view. And I was experiencing slowdowns opening folders even when I wasn’t in the thumbnail view. Something else was up. And it just so happened that I stumbled upon the answer – right clicking on a jpg, I saw a “Photoshop Image” tab. Over there was a checkbox – “Thumbnail Images”. I unchecked it. Next time I loaded the folder it was lickity-split fast. WTF was Adobe thinking!?

Now I have to undo all the damage I wreaked yesterday trying to “fix” Windows when Windows wasn’t the problem. Long live Microsoft (as long as they fix their security holes). Oh, and screw their browser. Hahahahah.

Moments away!

I should be sleeping, but instead I went to check my application status with the UW. For the past many months, it has said, unchanging, that my application had been preliminarily reviewed and was awaiting the decision. Today, however, it said something very, very different:

Your application has been reviewed. All applicants are informed of admission decisions by mail when results of the review process become available.

That means that in the time it takes mail to get from there to here (they probably sent it Friday, so I imagine it’ll arrive tomorrow), I will know if I have been admitted to the UW. Wish me luck.

Windows XP Woes

Occasionally, I will get on a stint to fix something on my computer that’s been bothering me. Today I decided that I just had to fix the fact that it takes me a long, long time to navigate though folders wit lots of images because Windows Explorer decides it needs to thumbnail all the images. Well, what seems like it should be an easy feature to turn off is anything but. After changing all sorts of normal and hidden options, messing with the registry, renaming system DLLs, and searching for hours on google, my system still goes to work to create all the thumbnails – even when it isn’t going to display them because I’m in detail or list view mode. It will contnue to drive me nuts when I’m opening a file in a folder with many large images (read: digicam download), taking minutes sometimes to get my system bak under control. Bah!

My brother was kind enough to run some tests on Mac OS X checking out the same functionality. OS X also creates thumbnails on local files, but it seems to do this truly in the background (XP’s takes over the system) and it doesn’t seem to try to do this over network connections (thank goodness). MS should start taking some ques from their Appletosh friends.

Starting to like CSS

For me, CSS was like climbing a wall. When I came to the wall, I looked for a way around it, under it, or a door through it. I had been out of the loop for so long that the wall became stange and uninviting (the last time I really studied the state of HTML I was in 8th grade!) However, due to a new project at work, I decided that learning CSS was in order to create a compliant web site. And after climbing the wall of learning rudimentary CSS, I’ve decided I like the view from the top.

Here is the result of my first day of dabling in CSS. Let me know what you think. Its pretty cool to be able to create tabs just by having some CSS change the way certain links are created.

On a related note, the project that I am working on at work now is going to be open sourced, as soon as I get around to it. So I will be paid to develop some open source software. Not such a bad deal.

I didn’t sleep much yesterday, and I don’t plan on repeating that mistake again tonight. So I bid thee farewell, my friends.

Out of the Blue

orkut, the by-invitation-only online community network that seems to get slower and more bogged down every time I log on every few weeks, gave me a surprise today. Out of the blue, I got a message from Eli, an old friend from high school days. Apparently, he tracked me down in orkut and decided to send me an email. I promptly responded, and four replies later, we’re stil going at it, catching up on the 4 years since we last saw each other. He’s seen a lot of what life has to offer, but it sounds like he’s doing pretty well, all things considered. And it surprised me how happy I was to hear from him after all this time. I could care less for a lot of the features on orkut – communities, for example, are sporadically interesting, but can never keep me for long – but if orkut provides a few more experienes like this, I may become a believer.