Jun 11

Here’s some CSS buttons.

These will stretch to fit any amount of text – even if it gets so large it becomes a banner.
They use just one image – and have a ‘web 2.0′ sheen.
They have an icon (which can be positioned to the left or right)
They have a hover state – the text and the background colour can change.

Continue reading »

May 12

Here’s some tags. They stretch to fit the text and change state on hover:

Here’s the code and image:

Continue reading »

Apr 27

I’ve created a frame for browser shots – it’s the safari browser. All screenshots have to be 300px wide.

Eklog

Here’s a link to the pre-sliced Photoshop image: mac_browser_sml.psd

Add some extra padding to the bottom and a reflection to the bottom of the browser frame to get that web 2.0 look.

Here’s the CSS

Continue reading »

Jan 23

spam I’ve created a presentation about HTML emails.

Contents:

  • Design tips
  • Photoshop/Image software tips
  • Coding tips
  • coding examples
  • Structure
  • Styling for a variety of email clients
  • Rendering bug fixing
  • Email delivery software
  • Testing
  • Examples of newsletters: Evans, Miss Selfridge, BHS, House of Fraiser, ASOS, M&S

Here’s a download link: HTML Email development

Mar 26

HTML Markup:

  • XHTML Strict 1.0 W3C valid markup.
  • Semantically correct markup – e.g. use <ul> unordered lists for any list of items.
  • Common identifiers should be used based on potential HTML classes and hCard microformat.

Cross Browser Valid:

  • Identical (and fully functional) user experience across browsers. (note: browser differences for font anti-aliasing are expected) – Internet Explorer 6, 7 & 8 + Safari 2 & 3 + Firefox 2 & 3 + Google Chrome + Opera 9 for Windows XP | Firefox 2 & 3 + Safari 2 & 3 for Mac OSX.

CSS Styling:

  • CSS styles must be completely unobtrusive with no inline styles.
  • Elements should not be positioned absolutely unless necessary – All main element blocks should normally be positioned relatively so if new content is added the existing elements would automatically reposition in the flow. Also wherever font-size is increased the layout integrity remains.

Continue reading »

Dec 19
menu tree

Testing and evaluating DHTML menu trees.

Each menu included in the list (below) has it’s own testing area. They’ve been tested for full functionality within a working ‘mini site’ and adapted to demonstrate whether it’s possible to open nested levels and display the current location without altering the body tag.

Here’s the list of menus with a link to the test and a link to the original sites:

Link to test area Link to original site
ECMA menu test Juicystudio.com menu
Ecommnet menu test Ecommnet.co.uk menu
PDE menu test Onlinetools.org menu
Splintered menu test Splintered.co.uk menu
DNolan menu test DNolan.com menu
MKTree menu test Mattkruse.com MKTree menu
Simple Tree menu test Dynamicdrive.com menu
Click drop menu test Bonrouge.com Clickdrop menu
CreateMenu menu test Codingforums.com Mike’s tree
Gazingus menu test Site no longer available

Continue reading »

Dec 06
rounded corners title

UPDATE: Schillmaina has produced a new improved solution. See it here.

It seems like there’s a million and one different solutions for creating round corners for boxes. There’s a good summary of many of the rounded corners solutions at www.smileycat.com: CSS Rounded Corners ‘Roundup’

That’s why it’s surprising to find there’s no cross-browser solution for rounded corners using PNG transparent images.

Continue reading »

Nov 26
Liquid Layouts

This is the web: it moves. We have small screens, wide screens, and a variety of needs for the desktop space on any screen. Fixed layouts are for magazines.

If visitors have a 1024 pixels wide screen – and they don’t want to stretch the browser widow across the entire width – any 1024 pixel wide fixed layout means horizontal scrolling – and that’s not very nice.

In order to demonstrate liquid or fixed CSS functionality within the page it’s necessary to have a liquid layout. It’s even possible to have a liquid elastic layout.

Here’s a list of some of the best liquid layout tutorials on the web: CSS Liquid Layouts.

Liquid layouts do need a minimum width to stop the design breaking when the browser is narrowed. CSS or JavaScript can be used to do this (click here for some links.)

O.K., a rant about liquid layouts within a fixed layout design may be the epitome of irony but hypocrisy is this “blogger’s” speciality. This liquid layout for Wordpress: SeaBeast looks great. It doesn’t have a minimum width but uses a drop column technique so the design looks good at narrow widths.

Here’s a couple of liquid layouts with border images to give great flexibility with web page design:

Eklayout1
Eklayout 2

Make like the polar ice caps: go liquid.

Nov 14

This Multiple CSS/AJAX rating bar from http://www.masuga.com/ is the dog’s blox. Everything is set up so you can just stick as many as you like anywhere in your site. The mark-up for any star rating component is a very simple ‘PHP require’ with a unique ID and the JavaScript id pretty unobtrusive. It automatically creates an entry in the MySQL table whenever anyone votes. Looks like a good place for design help at http://www.masugadesign.com/.

Continue reading »

Nov 10

Conditional comments

IE conditional comments ( Websemantics.co.uk – conditional comments )

The format is:
< !--[if "condition" IE "version number"]> Only IE displays this text if the condition is met < ![endif]-->

There are 6 conditions that can be applied (there’s a “logical not” case too):

  1. [if IE] – if above or equal to version 5
  2. [if IE 6] – if equal to version 6
  3. [if lt IE 6] – if less than version 6
  4. [if lte IE 6] – if less than or equal to version 6
  5. [if gt IE 6] – if greater than version 6
  6. [if gte IE 6] – if greater than or equal to version 6

Valid version numbers are 5, 5.5, 6 and 7. (There is support for specific version numbers such as 5.0453.)

For adding a style for IE v5 only:

< !--[if IE 5]> < style type="text/css">@import “IE5_only.css”;< /style> < ![endif]-->

Validators do not check the code inside the comments so take care.

Internet Explorer 6 hacks

Min height fast hack ( Dustindiaz )

selector {
min-height:500px;
height:auto !important;
height:500px;
}

Continue reading »