Web Design

 

About Classic Color Choices

Here is a website dedicated to color inspiration from the masters of painting. It clarifies master paintings down into a five color palette. A significant amount of the emotional nature of the painting is reflected in the choice of color. What do you want your work to say? Did you choose the right colors to do that? These aren't hard and fast rules of course. Just because Monet used a color palette to paint something serene, doesn't mean you can't use the same palette to show excitement. It is a good spot for inspiration however. See how someone else worked, and build upon the inspiration you find there.

h/t Basement.org

On Intuitive Naming

What did I name that? How many times have you asked yourself that? I know I've been there more than I care to think about. The way to get out of this rut is using intuitive naming. In both my graphic design and my web design work I've taken to being very careful about naming files. I have come up with simple file naming and storage location rules that make sense to me, and I follow them carefully. There are a lot of ways to do this, but the important part of me is that it has to be intuitive. Even if I can't remember a project, it takes just a little bit of information about it, and I should know where the file is stored, and what it's called. The same methods can be used for the HTML coding. I've recently been spending a lot of time doing HTML 508 compliance work on long and complex documents. This results in dozens of HTML pages with hundreds of figures, each with linked ALT Text, complex graphs and tables linked to pertinent information, multiple tables of contents, references, and appendices. The trick to keeping this all organized is coming up with a simple naming structure which allows the designer to always know what an anchor or link needs to be, without looking up the other half of the equation each time. The image for Figure 1 is figure-1.jpg, which links to the anchor alt-figure-1, which links back to the original. The same theme continues with chapter and section heading links, tables and graphs. Each name can be predicted by it's purpose. It allows for the complete job to be done sequentially, rather than having to keep all of the files open at once to match links and anchors. So can you remember what that file is called? Was the file name and location intuitive? It should be.

Site Testing Tools

Basement dot org is linking to a nice collection of web testing tools. Fairly comprehensive, and very helpful.

Safari on Windows

That's right, Safari is now available for Windows. It's about time.

Class, Style and Span

What is the difference between the CSS Class selector and Style property? It's both a big difference, and a small one. While they use the same style rules, and can often create the same effects, there are different reasons for using each of them. They are both used to attach characteristics to an HTML element, but the Class selector is used when those characteristics are common to your site. For instance I would use a class selector if I were defining code, like this:

.blue { font-style: italic; color: #000099 }

I use this "code" class, which I have previously defined in my CSS, to show HTML and CSS code, throughout my site. Since this style is reoccurring, placing it in my CSS saves me time and effort each time I use it. I don't have to re-type the style rules for that style each time, as I would if I were using the style property. I just add class="code" to the paragraph tag, and my predefined style is applied. The style tag, as I mentioned in the previous paragraph, could do the same job with two major differences. One, it would take more code. Instead of class="code", I would have had to add this to the paragraph tag:

style="margin-left: 1.5em; padding-left: 10px; font-weight:bold; font-style:italic; color:#666666;"

Obviously using the code class saved me typing, but there is one other reason to use class for repetitive styles. A Class selector is defined in only one place per site if you are using a remote CSS file. So if I want to change the color of my "code", I only have to change it in one place. Change the definition of the "code" class in my CSS, and my whole site changes to reflect this change. If I'd used the style property, I'd have had to go to each instance of it's use, and change that instead. On this site, that would have been dozens of changes, and I'm not a particularly prolific writer. So why use the Style property? Use it when something is unique. Rather than define a style in your CSS that will only be used once, use the Style property and define it for that one use. You can also benefits from the fact that it's not controlled remotely. If I was describing aspects of a site, I might mention that it had red links. Which makes sense if the links actually were red. If that site changes its theme however, they might not be red the next time. My comment might not make sense in that new context. I could instead, use the style tag to define an example of the red link I was discussing. Then not matter how my own CSS changes, the example I used would still be appropriate. So while one of the Style property's limitations is that it's not remotely controlled, one of it's benefits is also that it's not remotely controlled. I'll also take this opportunity to mention the Span element. In addition to applying Class and Style to common elements like paragraphs, DIVs, links, etc., you can also apply it to the Span element. This allows you to change the style in-line. Using either Class or Style within the Span element, you can apply a style to a section of content, without altering the style of the larger block. Like using Strong or Emphasis, I could use Span to change a block of text in the middle of a sentence, without changing the text characteristics of the rest of the sentence. Another very useful tool. Here's what you take away from this. You should use the Class selector to add styles that you use repetitively. You can use the Style element to apply unique styles. You can use the Span element to apply either of these within a larger block of content.

A Different Approach

Go read Dan's post on A Different Approach to Design . It's well worth your time.

That’s when I realized I succeeded as an artist, but failed as a designer.

Web Site Testing

Here are 31 Free Online Tests that you can run on your site. Test for validation, syntax, links, load time, etc. You can even check for who's linking to you, and your search engine optimization status. A great list of resources for web designers. How does your site fare?

h/t Church Communications Pro

CSS Backgrounds

I've received several questions about css backgrounds in the last week or so. I've answered them as they've come in, but I thought a post on the subject was in order. Rather than reinvent the wheel, here's some CSS background resources that are already available.

What is that?

Basement.org: The Richer Web & The Death Of Design

Each of these platforms have their pluses and minuses. And as we assess this or that platform we're left with an oddly empty feeling: what is all this stuff?

I'm constantly amazed by all of the new "best software ever" products that are available to web designers. We're expected to use the newest, biggest and best, in a constantly evolving of world of products. Five minutes ago I'd never heard of Product A, now I need to know it. I'm expected to completely ignore the fact that this product will be off the market and never supported again five minutes from now. Why can't I just design?

70 CSS Tips

A must read for anyone learning CSS, or anyone who wants to know it better. 70 Expert Ideas For Better CSS Coding | Smashing Magazine. The Organization section is particularly good I thought.

Syndicate content