Tag Archive for 'css'

Blog updated

I decided my blog needed to be tinkered with. I didn’t do an overhaul or anything, just messed with fonts and added some more CSS3. I uploaded two more headers into the rotation, too.

I need to start writing more about what I’m working on. People are always asking me and I never know where to begin. Here’s the thing: I’m always working on something. What it is can be totally different each day. Although right now I’m pretty focused on Zinger!. We’re closing in on the deadline for the Fretta Contest and we’re really excited about it. Not much is left, actually we’re just finishing up a few odds and ends.

I’m going to be writing a few articles related to Lua soon so you can look forward to seeing those. Actually I’ve already started… I just need some spare time to finish the first one (work has kept me so busy lately!). Technically I shouldn’t even be writing this now, I should be writing those… GOTTA GO!

Internet Tips & Tricks #2

I started this series with an article discussing some basic tips to help the casual intertubes surfer. Today let’s talk a little about web design.

1. CSS

css logoOne of the more important tools for designing a good website is CSS. Believe it or not people still find this as an optional component. Technically it is, but to put together a website that really pops out to the user its easiest to make use of this. There are certain abilities that CSS grants you that I do not believe can be accomplished with any other method. Overlapping images and absolute positioning of elements being two examples. I think (less of using javascript) there is no other way of accomplishing this. Yes it means you have to learn another “language”, but its really not an entire language. Its mostly an extension to HTML.

2. Validation

One of the important maxims of computer programming is: “Be conservative in what you produce; be liberal in what you accept.”

Browsers follow the second half of this maxim by accepting Web pages and trying to display them even if they’re not legal HTML. Usually this means that the browser will try to make educated guesses about what you probably meant. The problem is that different browsers (or even different versions of the same browser) will make different guesses about the same illegal construct; worse, if your HTML is really pathological, the browser could get hopelessly confused and produce a mangled mess, or even crash…

That’s quoted directly from the W3D Markup Validation Service help page. The reason why we make validated sites is to ensure our site looks right across all platforms and browsers. Its naive to think you can develop a site on Firefox and assume it will work on all browsers, especially if you have used improper markup.

While you’re at it, you’ll want to validate your CSS too. Checking yourself for errors only helps you get better and learn from your own mistakes. Once you’ve validated your page, they give you some nifty little badges as a reward.

3. Kuler

Kuler LogoAdobe makes a great product called Kuler. This can be an invaluable tool when designing a website and inventing a new color scheme for it. There are two versions available: one is an online version and a standalone version (which requires Adobe Air).

4. Web 2.0

The Web 2.0 movement is one of the greatest things to happen to the internet. Its a multifaceted concept; but my favorite part about it is utilizing the internet as a platform, instead of regarding it as a limitation. Prior to this idea, developers focused on the limitations that came with developing applications on the web and trying to find ways around it. Instead, you maximize the services that are only available when developing on the web.

Aside from that, we’ve seen a trend in the overall design (as far as layout and graphics) in modern websites. The sites are designed around the content instead of trying to jam content inside the design. We have brighter colors, flashier graphics, and a prominent KISS ideology.

There really is a lot more to it, which would require an entire blog post if I wanted to go into it in detail, so read that Wikipedia entry if you’re interested.

5. AJAX

AjaxPart of the Web 2.0 moment has included a exponential growth in the usage and progressional development of AJAX. This is really neat because it increases your ability to provide dynamic features on your website, but decrease the amount of page refreshing that it requires.

Instead of going to a website to upload an image, press upload, get redirected to another page while it uploads, then finally get redirected to a summary page, everything can happen on the same page. Inline moderation, instant font or color adjustments, and toggling preview captions are just a few examples of what AJAX can do.

AJAX is mostly accomplished with the use of well designed Javascript working with elements inside your site. There are already tons of prebuilt libraries to make many of the AJAX features you may be looking for readily available. One of the more popular being jQuery.

Using divs and stuff

Recently I’ve been trying to better my HTML style. One of the main things I’ve been focusing on is using divs instead of tables. WHRY? Because if you know how to use them, they are much more powerful.

Protip: divs are useless without CSS. So learn that first. If you don’t already know CSS and you’re still designing sites without it… leave website design alone and spend your free time knitting sweaters. And by “knitting” I mean “kicking“… and by “sweaters” I mean “midgets“.

When you’re laying out a site, you can setup a div class for lets say.. um… a logo. Then you can set an absolute position of said div inside the CSS class. What does this do? Well it gives you full control over the position of the image… even positions in negative numbers. Which means you can have images overlapping containers and other cool shit like that. It really helps to make your website look tricked out.

The other cool shit about divs is you can have them act like tables, and yet you don’t need to have them nested all fucked up like tables need to be. Oh and they seem to be more XHTML friendly. Seems like most websites that aim for meeting standards use divs over tables.

Another interesting thing is using CSS to skin standard HTML blocks. You can do anything from defining your own “strong” tag, or completely overriding the standard look of an “hr” tag.

So far the new site design is coming along great. It didn’t turn out to be a complete redesign, but its enough to be a big change and bring back the attitude the community misses.