Tag Archives: Design

Styling Scroll Bars

Recently I was working on a project at my job at Pierce Communications and decided I wanted to play about with some scroll bar functionality.

Normally we would never advocate changing default browser behaviour — it can confuse users and jar the user experience, but occassionally small changes can be fun and add to an experience.

One such change is to style the scroll bars that appear when you have overflow in your content. By default the scroll bar will appear just as the browser intended, this is because the scroll bar is part of the browser’s chrome, fortunately we can hack around this in most cases.

The first thing a lot of people would do is start looking for a jQuery plugin, and indeed there are a few out there which seem to work quite well. But I have a problem with using JavaScript for style when I shouldn’t need to and I have a big problem with introducing extra code to support just to add some visual fluff. If the design really really needed it then I would look at using a plugin, but for a little bit of visual sugar I don’t think it is worth it.

Of course even if we use a plugin, we shouldn’t rely on JavaScript to do our dirty work, so there are also some CSS hacks we can apply, unfortunately they only work on a small amount of browsers but since this is essentially a bit of visual icing that is fine.

The CSS you need would be something like this;

	/**
	 * This will work for some verions of Internet Explorer
	 * and apparently Opera, although I cannot confirm this.
	 */

	.myCoolDiv {
	    scrollbar-face-color: #000000;
	    scrollbar-shadow-color: #000000;
	    scrollbar-highlight-color:#000000;
	    scrollbar-3dlight-color: #000000;
	    scrollbar-darkshadow-color: #000000;
	    scrollbar-track-color: #D9D1AC;
	    scrollbar-arrow-color: #D9D1AC;
	}

	/**
	 * These will work for some versions of Webkit enabled browsers.
	 */

	.myCoolDiv::-webkit-scrollbar {
	    width: 12px;
	}

	.myCoolDiv::-webkit-scrollbar-track {
	    -webkit-box-shadow: inset 0 0 6px rgba(217, 209, 172, 0.85);
	    border-radius: 10px;
	}

	.myCoolDiv::-webkit-scrollbar-thumb {
	    border-radius: 10px;
	    -webkit-box-shadow: inset 0 0 6px rgba(217, 209, 172, 0.85);
	}

There is plenty of information available online about each of the properties for both Internet Explorer and Webkit.

Remember that with great power comes great responsibility, this should always be used with caution and always with the user experience in mind, colouring in scrollbars for the sake of it is not something we would ever do or recommend anyone do.

With that said, happy hacking!

Share this on

Eoghan McCabe and Des Traynor – Sexy or Meaningful

In my last writeup I mentioned that the content Owen DeLong was covering was a little dry but incredibly necessary.

Eoghan McCabe‘s and Des Traynor‘s (both from Contrast.ie) talk entitled Five Lessons We’ve Learned Sexy or Meaningful builds a lot upon the theme of necessity as they talk about why it is important to not always be chasing the sexy things in life.

They basically go through five areas of business and explain why in most cases the sexy option is the option you want to avoid like the plague.  This was an excellent talk delivered by two fantastic speakers.

With regards to business strategies they discussed things that didn’t work;

  • Filling a hole in another product very rarely works.
  • Being a middle man doesn’t work.
  • Generally relying on third parties for your business model to work isn’t going to work.
  • Being first to market has no real advantage.
  • Creating copy cat apps isn’t going to work (in personally, find that really boring)
  • Trendy businesses never seem to work (SEO companies for example)

And they concluded that we should be looking long term and to focus on the things that aren’t going to change.

With regards to the people you are involved with they mentioned a couple of things;

  • Talent without discipline is bad.
  • Having a friend become a colleague can ruin the friendship.
  • You should always choose people for the right reasons.

Their third topic for discussion was about investments, basically they highlighted the fact that investment is sexy and reminded us that our business doesn’t really need that much start up so why would you really need to chase money in the beginning?

Fourth on their list was the section on design, they warned us to watch out for trends and don’t immediately follow them.  I couldn’t agree more with this, it is so tempting to make all your corners rounded now and have a nice shadow effect around divs, but just because it is the flavour of the moment doesn’t mean you are giving any real value to your users.

They gave an example of a good meaningful website – Craigslist.  They point out that the design hasn’t changed and whilst it isn’t sexy, it is very functional.   I would argue that sites like Amazon and Ebay would be in the same boat, not great to look at but usually easy to use.

Their talk ended with a section on marketing, here they listed some more key points;

  • Build your product first, then look at the marketing.
  • Let the product do the talking.
  • Don’t chase overnight success.
  • Ignore tabloids.
Share this on

Refresh Belfast – The State of Typography on the Web

I was emailed about this event a couple of days ago and I have decided to sign up for it.

Very basically Christopher Murphy and Nicklas Persson are going to spend an evening (an evening on the 21st September in the Black Box in Belfast) talking about and showing us a few of the new typography-centred services that are floating about these days.

I have mentioned in a previous post that I just don’t get typography, so hopefully it won’t be too over my head but even more hopefully I hope to learn a lot from it.

For those of you who don’t know about Refresh Belfast I have cleverly hidden a link to their site somewhere in this post.  In case you can’t find it here is some blurb from their site.

Refresh is a monthly event for designers, developers, coders, geeks & nerds to get together to talk design, debate the web, share ideas and meet new & interesting people. Every third Monday of the month, we organise a couple of presentations from local industry experts to be enjoyed over a few beers in the The Black Box.

If anyone is free on that Monday and wants to come along they need to sign up in advance, it is completely free and the registration was insanely quick.  If you are coming along be sure to say hey!  I will be the one with the beard looking confused and angry!

Share this on

Acronym and Abbreviation Tags

I think these are two of the most under used tags in HTML, which is a shame because really quickly you can provide some excellent functionality and really help your users out with very little effort on your part.

So, what are they?

The Acronym tag or <acronym> to it’s friends is a tag that should encapsulate all acronyms used on your website.  If you don’t know what an acronym is I would have to lol at you and pass you across to this website.

The Abbreviation tag, which has been nicely shortened (I see what they did there!) to <abbr> is a tag which should be used around any text that is an abbreviated form of a longer word.  I can’t think of anything even slightly funny, so if you don’t know what an abbreviation is then go here.

w3.org have the following to say on the subject of acronyms and abbreviations.

The ABBR and ACRONYM elements allow authors to clearly indicate occurrences of abbreviations and acronyms. Western languages make extensive use of acronyms such as “GmbH”, “NATO”, and “F.B.I.”, as well as abbreviations like “M.”, “Inc.”, “et al.”, “etc.”. Both Chinese and Japanese use analogous abbreviation mechanisms, wherein a long name is referred to subsequently with a subset of the Han characters from the original occurrence. Marking up these constructs provides useful information to user agents and tools such as spell checkers, speech synthesizers, translation systems and search-engine indexers.

The content of the ABBR and ACRONYM elements specifies the abbreviated expression itself, as it would normally appear in running text. The title attribute of these elements may be used to provide the full or expanded form of the expression.

So now you know what they are and when they should be used, I guess I should write about why you should use them.

First off you would be scoring a really quick win as far as WCAG is concerned, checkpoint 4.2 to be exact.

Specify the expansion of each abbreviation or acronym in a document where it first occurs. [Priority 3]

Secondly, it is semantic – You could argue that this is getting really pedantic in your markup, but it makes sense because the words we encapsulate with these tags are different from normal text.

My third and final point on why I think you should be using it is because it is useful to the end user, accessibility aside it is just nice to get a really quick definition of what an acronym on your site is.

In the past I have found a lot of websites that would use a fairly specific acronym to their area of interest and they would wrap an <a> around it and link off to wikipedia, when I think <acronym> along with the context the actual acronym is mentioned in would be more than enough for most users, and those that still don’t know – there is always google!

I guess it is time I actually mentioned how you use them, it is really straight forward.

<acronym title=”This is my Acronym”>TIMA</acronym>

<abbr title=”Personal Identification Number”>Pin</abbr>

That is it, easy eh?

I would like to know people’s opinions on this, but my thoughts are that you shouldn’t do too much extra styling to these elements other than what you would normally do to the text on your site.  Let the browser handle it the way it wants to, which is normally with a dashed line underneath which I think is fairly universal and looks pretty nice.

Share this on

Damn this guy can wireframe!

Wireframing is something that both designers and developers should really learn how to do well, a good wireframe could potentially save you a lot of time when it comes to immediately chucking out bad ideas and it also helps to bring the client in early on in the process. Knocking up a wireframe (as you are about to see) can be an incredibly quick task and it gives you something you can take to the client for early feedback and opinion.

There are plenty of tools out there for wireframing, my personal choice is Balsamiq; whilst it has been dismissed by a lot of designers due to the childish nature of the sketches I love it because as a complete novice at design I can quickly and easily put my thoughts onto paper.

Anyway, watch this video and be impressed at the speed at which Clay Parker Jones has knocked out this design (and enjoy the music too, nothing wrong with a bit of MJ!)

How to Wireframe from Clay Parker Jones on Vimeo.

Thanks to Designbit for posting this video originally.

Share this on