September 27, 2006

CSS 101 - Selectors

Filed under: CSS, Web Design — Douglas T @ 7:27 pm

The first part of a style is the selector. A selector is that element of the style that defines where the style is applied in the document. There are several different types of selectors:

Type Selector: - Any HTML element can be used as a type selector. A selector in this context is just a defining or redefining of a particular HTML element.

Example: p { color: #000000 }

This use of the HTML paragraph element (p) as a CSS selector defines all uses of the paragraph element as having black #000000 text. All instances of the paragraph element in a document will be effected by this.

Class Selector - While the Type Selector targets every occurrence of an HTML element, the Class Selector allows you target a specific instance.

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

This is a Class selector named blue (the period before the name identifies it as a class selector) which defines text as both italic and blue.

<p class=”blue”>hello</p>

<div class=”blue”>hello</div>

In both of these instances (if they were using the style blue defined above) the text would be italic and blue. Instances of those elements that did not contain class=”blue” would be unaffected.

ID Selector - ID Selectors are very much like Class Selectors, except that they can occur only once in a document. They are very helpful when used in CSS layout. By defining each major section of the layout (Header, Footer, Sidebar, etc.) and applying ID Selectors, you can more clearly define the contents of those sections.

#footer {width: 100%; clear: both; background-color: #000000;}
#footer a {color: #FFFFFF;}

<div id=”footer”><a href=”http://www.douglast.com”>home</a></div>

In this example the ID Selector could be used to define the size, margins, background color and positioning of our footer. Then, by using the Footer ID along with “a” the Type Selector we can make sure that any link inside the DIV containing the ID “footer” is white. All other links would be unaffected.

By using the different types of selectors, a designer is able to clearly define the elements of a CSS file. If properly defined, CSS will control the appearance of all elements the designer intended, and no others. If not defined clearly enough, these styles have the potential to both control unintended elements, and to leave intended elements uncontrolled.

PhotoShop Tutorials

Filed under: PhotoShop — Douglas T @ 6:09 pm

This is far an away the best list of PhotoShop tutorials I’ve seen.

Today (actually it has taken me about a week) I have put together a huge list of Adobe Photoshop tutorial resources as well as Photoshop directories & search engines. Since Adobe Photoshop is the premiere Image Editing software that almost all graphic designers and web designers use, I feel it is important to make a list of the Adobe Photoshop sites where you can find quality Photoshop tutorials, tips, and techniques. - Graphics N Graphic Design Blog

September 26, 2006

Improved web design workflow

Filed under: CSS, HTML, Software, Web Design — Douglas T @ 5:32 pm

As everyone knows, there are software products available that can really increase your productivity. I thought I would list a few that I use regularly.

September 25, 2006

CSS Bullets

Filed under: CSS, Web Design — Douglas T @ 5:54 pm

If you’ve ever had trouble with bullets in CSS, here is the best explanation of them I’ve seen. It’s several years old, but still very useful.

A List Apart: Articles: CSS Design: Taming Lists

In this article, I’ll demonstrate how to use CSS to bring unwieldy lists under control. It’ time for you to tell lists how to behave, instead of letting them run wild on your web page.

September 23, 2006

IE7

Filed under: CSS, Web Design — Douglas T @ 6:02 pm
We are currently locking down IE7 for shipping - IEBlog : Details on our CSS changes for IE7

Internet Explorer 7 (IE7) is coming and I’m not really looking forward to it. I have it loaded on a machine for testing my current sites, and that process is going to start soon. I’ve done a few spot checks and it doesn’t look too bad. I don’t use hacks to get my CSS to work, but I do see a couple of problems I’ve going to have to fix.

In all, we made over 200 behavior changes (bug fixes or new features) under strict mode to improve CSS2.1 compliance.

What I’m concerned about is that IE7 is still going to be non-compliant, but in a different way than IE6. It’s hard to tell how bad it’s going to be since IE7 is still evolving at this point. For now, I’m keeping everything as up to date as I can, and leaving some space on my calendar.

September 22, 2006

Welcome

Filed under: About this site, CSS, Computers, Graphic Design, HTML, Photography, Software, Web Design — Douglas T @ 1:58 am

Welcome to my new site. I’m going to be using this site as a repository for online resources and news about the interrelated fields of graphic design and web design. I’m a professional graphic designer with thirteen years of experience in print publications. I started to add web design to my repertoire about five years ago, and for the last two years have been doing forty to fifty percent web design work.

I’ll also be writing about photography, computer, and design software. These subjects are dear to my heart and integrally linked to my design work.

Thanks for stopping by. Before you go, please check out the links on the sidebar, there are only a few now, but they’re good ones. I’ll be adding to that list and to this site as time provides, so please come by again and see what’s changed.