Archive for the 'XHTML' Category

15
May

New Project Launch : Winston Riley

I recently launched a site for Winston Riley, a New Orleans based writer, producer and director of documentary films. The site is a simple clean large format site with embedded Flash YouTube and jQuery LightBox in the gallery section.

Please visit his site and browse his gallery or still and watch the clip from his documentary: Walter Anderson: Realizations of an Artist.

18
Sep

jQuery + Lightbox

Not to beat a dead horse, but it’s been figured out. Thanks man! jQuery + Lightbox =
jQuery Lightbox Version 0.3. It was brought to my attention yesterday by Warren himself, and I would appreciate it if you took the time to visit his site.

Thanks.

17
Sep

jQuery Brand UI

jQuery’s own set of UI components for their javascript framework.  Mouse Effects, Widgets, and Effects downloadable and themeable for creating highly interactive and engaging web applications. Learn more about jQuery UI.

11
Sep

jQuery 1.2 Finally Out

New release of jQuery is finally out. They can rebuild it. They can make it stronger, lighter, faster. Click here for full documentation release notes. Notably jQuery now supports css color fades for extra double fresh goodness! Also added, %/em animation, relative position animation, and simultaneous and extensible animations. The list of updates to jQuery 1.2 goes on: selectors, attributes, traversing, manipulation, css, ajax, effects, and events!

10
Sep

Resume Update & Contact Form Adjustment

Please take the time to peruse my freshly amended resumé. I believe you will find it more than satisfactory.

Thank you,
— Mgmt.

P.S. Please take the time to leave a comment or visit my contact page to email a message.

27
Aug

jQuery v1.1.4 & Light Box v2.03.3 Updates

2 of the most useful internet readymades (webbymades?); jQuery and LightBox. jQuery is one of the more prominent javascript frameworks, and now even faster than before. LightBox is a javascript and css web application for pop ups and galleries; currently being used in a previous iteration on my site.

11
Jul

This Not Your Father’s Lightbox

LightWindow v2.0, the “Ultimate light-’whatever’.” Unfortunately the downfall of this killer popUp replacement is that it’s run with Prototype and Scriptalicious. If someone could port this over to the smaller, faster jQuery I would be much more apt to suggest/adopt its use.

05
Jul

jQuery 1.1.3 is Lighter and Faster. Tastes Great, Less Filling. Now With Ginseng.

Not only is the compressed jQuery only 20k compressed now it’s running at 800% faster than previous incarnations of this fantabulous Javascript framework. It’s like a carb free energy drink! What’s not to love?!

When your done checking that to download your own copy, run over here to Interface elements for jQuery. Now this is something that doesn’t suck. Some more than fantastic to enrich your web experience.

03
May

CSS Attribute Selectors and Pseudo-Classes and Pseudo-Elements

It is necessarily better for sites code to be semantic and accessible to all browsers in all platforms, however it is asinine to withhold any added functionality or design that can gracefully degrade. CSS can add backwards compatible, gracefully degrading, and future proof improved user experience and navigation. Utilization of attribute selectors and pseudo-classes can add functionality and aesthetic user experience to a website.

Attribute selectors

Attribute selectors allow CSS to further traverse the document tree using HTML tag attributes to increase specificity. Support by modern browsers and CSS 2/3 allow you to specify context based portions of document: meaning, the later gives you the ability to dole out CSS in a quasi dynamic context based fashion using attribute logical conditions. The three following examples are possible the most powerful and the most useful.

Logical attribute “Begins With”

[Attr^=”value”]{
property:value;
}

This snippet will make all anchor tags within a page that have an ‘href’ attribute beginning with “http://” the color red.

a[href^=”http://”]{
color:#ff0000;
}

With this attribute you can create visual cues to alert users to secure pages, FTP sites, or sub-domains.

Logical attribute “Ends With”

[Attr$=”value”]{
property:value;
}

This snippet will give all anchor tags within a page that have an ‘href’ attribute ending with “.PDF” the background color of green.

a[ href$=”.pdf”]{
background-color:green;
}

This is extremely useful to demarcate .PDFs, .DOCs, image files, organization links, or country sites. A simple feature such as this can save users the grief of trying to open a PDF document from within the browser.

Logical attribute “Contains”

[Attr*=”value”]{
property:value;
}

This snippet will make all image tags within a page that have an ‘title’ attribute containing the word “home” a blue border.

img[title*=”home”]{
border:1px solid blue;
}

Pseudo Classes

Pseudo classes are traditionally used to further style the nature and history of anchor tags. With CSS2/3 style design can add interesting levels of usefulness and application. Pseudo-classes like ‘:hover’ and ‘:focus’ are common to use. There are in CSS3 and in modern browsers are a list of supported pseudo-classes that have yet to be utilized for user experience and design.

:target

Will select the incoming target of any URI (page link)

This example will highlight the span, ‘light,’ when the link is clicked.

<style>
#light:target{
background:#ff0000;
}
</style>
<p>Lorem <a href=”#highlight”>ipsum</a> dolor set amet <span id=”light”>sit</span> concesutor. </p>

:focus

‘:focus’ is similar to the ‘:hover’ class of an anchor tag. The style is active when an element content box becomes the recipient of keystroke events and ends when it no longer accepts them.

input:focus{
color:#333333;
}

This example will alter the color of all input fields when they receive the cursor for typing.

:only-child

<style>
span:only-child{
background:#66ff00;
}
</style>
<p>Lorem ipsum dolor set amet <span>sit</span> concesutor. </p>
<p>Concesutor <span>sit</span> set amet <span>ipsum</span> dolor concesutor. </p>

This pseudo-class will select the only(single) decedent of a node in the document: e.g. the only anchor tag in a paragraph or the only h3 tag in a body tag.

:not ()

This pseudo-class represents a logical ‘not.’ Can be very powerful when used creatively.

:not(p){
color:#666666;
}

This bit of code will make all text that is not within a paragraph tag dark grey.

The Point

These samples are in no way stretching the functionality of the snippets you see here above. The useful engineering of the code comes in creative combinations of the multiple tags here.

a[href]:not([href^=”http://www.yoursite.com”]){
background: url(/images/external.gif) no-repeat right center;
padding-right:-8px;
}
a[src^=”#”]{
border:1px solid black;
}
span:only-child{
background-color:#333333;
}
input:not(:focus){
color:#999999;
background-color:#CCCCCC;
}

This snippet of code will attach an iconic image representing an external link to all anchor tags with href attributes that are do not begin with the url of your site. The logic being that all external links in your website will have an icon next to them alerting users of navigation away from your site. The snippet will also outline in black any in-page links or URIs. It will apply a grey background to any orphaned span tags. And the snippet will gey out the text and the back ground of any input field that does not have the cursor focus.

There is no reason not to use advanced CSS 2 and 3 code to compliment the functionality and aesthetics of the web. Active use of this code will encourage support of these technique in browsers. It should be used regularly and documented as often as possible. Take care to use this CSS code were applicable and to not hinge major functionality on this code, but use it to extend functionality were possible.

Creative use of CSS supported by IE7 and the “modern browsers” can extend usability and experience to people who have adopted newer more advanced browsers and technologies. It is more proper to create a site for the most advanced browser and the most advanced monitor, then through proper markup allow for clean degrading code and visual design. Everyone wins.

24
Apr

Summer Slump

Sorry for the lack of posts. Freelance has come to a screeching halt and all leads have basically evaporated. Thing are slow, so if you are aware of any work needing to be done, please contact me.

I am currently working on a few articles that will be posting soon. Some CSS work, gallery updates, portfolio additions, asides and more links.




 

July 2008
M T W T F S S
« May    
 123456
78910111213
14151617181920
21222324252627
28293031  

Badge Farm

  • Firefox 2
  • CSSEdit 2
  • Textmate
  • Powered by Redoable 1.0