Rick Strahl's Weblog  

Wind, waves, code and everything in between...
.NET • C# • Markdown • WPF • All Things Web
Contact   •   Articles   •   Products   •   Support   •   Advertise
Sponsored by:
Markdown Monster - The Markdown Editor for Windows

Graphically challenged


:P
On this page:

I'm one of those people that is graphically challenged, at least when it comes to creating graphic images. I can 'compose' things together to some degree and make it look nice, but when it comes to actually creating the  art itself, I just am not wired this way. Graphics programs like PhotoShop or even PaintShop give me the willies if I have to do anything more complicated than crop an image <g>… not quite, but close.

 

There are a number of things that I need to do all the time however, and I'm sure if you do any Web development you probably find you need to do the same few tasks over and over again:

 

  • Create Image Buttons and Tabs etc.
  • Create Gradients for backgrounds
  • Create rounded corners 

I'm winding down on an internal project here and I'm going through some of the layout and adding some graphics elements to the layout to make it look a bit nicer.

 

While looking around today I ran into a few useful sites and a couple of cool products that might be handy for a few other people.

 

http://www.buttonator.com/

This is a down and dirty online site that lets you create buttons online in a variety of different formats. It's a nice interface, although the quality of the buttons isn't exactly stellar. Still in many cases the output from here is still a lot nicer than stock buttons or plain text buttons.

 

http://tools.dynamicdrive.com/gradient/

I was just about to sit down and create something like this myself when I ran into this site. It basically lets you input a set of colors and it will generate an image with a gradient for you. There are several different options for how the gradients are generated and you can easily select colors from a color palette (which is a pretty slick implementation for a Web interface BTW). You can export images to GIF or PNG and the quality of and size of the PNG files especially is excellent…

 

Alpha Button

This is a Java Desktop applications and it’s not free, but after looking at a handful of programs like it because it seems to have all the options that really matter in generating buttons and shapes effectively, quickly and most importantly consistently. You can apply backgrounds, gradients, fills, apply borders and shadows, change the lighting, control the background transparency or color and it lets you generate buttons in a large variety of common shapes (like rectangular, rounded, Tabs of various directions etc.). It also has a fairly large library of preformatted templates, but I was able to create new buttons from scratch in a few minutes. What's also really nice about this tool is that you can lock a design setup and then create any number of buttons or other controls that all have the same style and export everything all at once. It just works and it's really easy to see what you're doing while allowing tons of control that even I can make sense of <g>…

 

Unfortunately the free demo is 'watermarking' the buttons pretty brutally so it's hard to see what the final output looks like in your own apps, unless you buy the tool. You can preview in the tool itself though and I thought this utility was useful enough to spring for the $50 of buying it… I know this will come in real handy in a variety of applications! In fact, I’ve already used a number of features to update some graphics content on a couple of my sites.

 

Rounded Corners

The one thing I'm still missing is a decent and hopefully reusable way to generate rounded corners for tables. Actually now that I think about I can probably coerce Alpha Button into creating the rounded corners with Tabs and then clipping off the edges.

 

Rounded corners are a pain in the ass anyway even with explicit images. I’ve been mucking around with trying to come up with some sort of generic solution not using tables, but I’ve not had much luck. The only decent way I seem to be able to get rounded corners to work is with table code like this:

 

<table width="100%" border="0" cellpadding="0" cellspacing="0">

<tr>

    <td><img src="images/Corner_ul.gif" style="height:30px;width:20px;"/></td>

    <td class="menuband" style="padding:0px;width:200px;text-align:center;">Shopping</td>

    <td><img src="images/Corner_ur.gif" style="height:30px;width:20px;" /></td>

</tr>

</table>

 

I’ve played around with div and images, div backgrounds and other than using nested divs with multiple image backgrounds I’ve not been able to make this work with pure CSS. It sure would be nice if you could specify more than one background image style so you could specify images for the right and left sides.

 

The above works just fine, but it’s a bit of code to insert every time you need a rounded corner. I’d like to build something I can reference through a CSS tag, but I don’t see this happening with images.

 

Another option – rather than using images – is to use dynamic code to generate the corners for you at runtime. The ATLAS Toolkit Rounded Corners corner control does something like this in a crude way (it basically adds div tags with padding). It works in some situations if you don’t care about the exact size or placement of text. For the most common scenario for me – header captions of tables (for example: http://www.west-wind.com/wwstore/) where you have a slim header the control doesn’t work well.

 

I did run into another JavaScript library that works dynamically as well at runtime but does a bit better of a job than the ATLAS control here:

 

http://www.html.it/articoli/niftycube/index.html

 

This is a small library, some CSS tags and a few related images that automatically work against any control on the page. You do something like:

 

Nifty('div#header','small');

 

And it will mark all tags that match this CSS signature. What’s nice is that you can apply it globally. It works pretty well, although it’s doing a bit of work so on a slow machine (or even on a fast one if you have a few elements that render rounded corners) you see the rendering occur.

 

There’s some complexity to set this up – you have to make sure to include the .js, .css and image support files and add the appropriate includes to the page, but you can do that generically using a MasterPage I suppose.

 

The downside to these automatic solutions is that they don’t work if you have image backgrounds. These solutions figure out the background color of the parent element and then set the background for the corners to this color. If you have a colored background you run into issues where you have white corners showing over the image.

 

Anyway, I’m posting all of this here because it might be useful to some, but more importantly I’m curious what others are doing and what tools you are using in hopes to find a few shortcuts. These days I’m spending a fair amount of my time on renewed boning up of CSS and DOM skills and I’m finding myself picking up a number of things that I’ve glossed over for some time and many entries here have brought some enlightening comments and notes.


The Voices of Reason


 

Ben Strackany
June 05, 2006

# re: Graphically challenged

I'm in the same boat -- I'm more of a programmer than a designer. Here are some of my design faves:

Free design templates
----------------------------
http://www.openwebdesign.org/
http://www.oswd.org

Free ajax loading animated gifs
----------------------------
http://www.ajaxload.info/

Free, attractive icons for buttons et al
----------------------------
http://somerandomdude.net/srd-projects/sanscons
http://www.famfamfam.com/lab/icons/
http://www.ndesign-studio.com/resources/pixel_icons.htm

Jason Mauer
June 05, 2006

# re: Graphically challenged

There's a newer version of the Nifty routine that accomplishes the rounded corners look without any images, check it out:

http://www.html.it/articoli/nifty/index.html

Shaun Kester
June 05, 2006

# re: Graphically challenged

Rick,

Thought I'd share some resources I use when I hit the graphically challenged wall (twice today already for me).


Icons: http://www.yellowicon.com/index.php
CSS: http://www.dynamicdrive.com/style/
Windows: http://blogus.xilinus.com/beta/doc/index.html
Misc 1: http://www.barelyfitz.com
Misc 2: http://www.brainjar.com/
Misc 3: http://webfx.eae.net/

I second http://www.buttonator.com



Doug Osborne
June 06, 2006

# re: Graphically challenged

Rick,

I've had success with the following CSS

<style type="text/css">
<!--
body
{
margin-left:0px; margin-right:0px; margin-top:0px; background-color:#fff; background-image:url(images/background-page.jpg); background-repeat:repeat-y, repeat-x; background-position:center top
}
a span {
background: url(images/right-tab.gif) right top no-repeat;
padding-right: 10px
}
a {
color: #000;
background: #fb0 url("images/left-tab.gif") left top no-repeat;
text-decoration: none;
padding-left: 10px;
}
--></style>

and then implementing it simply as
<a href="#"><span><b>Incident</b></span></a><a href="IncidentSupervisor.html"><span>QA</span></a> using the bold to signify the selected tab/button.

Best,
Doug

gkeeara
June 06, 2006

# re: Graphically challenged

thanx rick.

i found buttonator.com really helpful. so far i have been using regualar buttons. i will replace all of those with new ones from buttonator.

thanx for sharing those really helpful resources.

alison
June 07, 2006

# re: Graphically challenged

Scott Mitchell posted an article on 4 guys from rolla about rounded corners, its probably way out of date now, but I've used it on my sites and it seems OK, just thought I'd throw it into the mix!

http://aspnet.4guysfromrolla.com/articles/072804-1.aspx

Darrell
June 07, 2006

# re: Graphically challenged

here's another online utility for creating rounded corners

http://tools.sitepoint.com/spanky/

sitepoint.com also is a great resource for web development in general. I've bought some of their CSS and Javascript books and found them really useful.

Manuel Abadia
June 08, 2006

# re: Graphically challenged

I know how to use graphic programs like photoshop pretty good but that does not make me a "good designer".

For me it is very difficult to come up with a decent combination of colors, fonts, images and such things that make a web site look professional, so most of the time I end buying a template.

That usually gives excellent results (take a look at my website) and you save a lot of time for the little money you spent.

Darrell
June 08, 2006

# re: Graphically challenged

Manuel,

I agree completely with you. There are a lot of good inexpensive templates and also some good free templates available on the web.

For me, I'm still trying to build some better design skills to go along with my programming skills. I get ideas from other websites and templates and I try to stick as much as possible with the keep it simple method. That's not always easy though.

Rick Strahl's Web Log
October 07, 2006

# Rounded Corners with CSS - Rick Strahl's Web Log

It's not exactly intuitive but with a little work you can encapsulate a rounded corners layout with image references in pure CSS and little bit of markup that is reasonably readable.

web design company
June 15, 2016

# re: Graphically challenged

Welcome you Design Parichay Company offering web design and SEO, SMO, Graphic Design And printing service provider in Faridabad Delhi /NCR. http://www.designparichay.com/

West Wind  © Rick Strahl, West Wind Technologies, 2005 - 2024