• Home
  • About George
  • Contact Me
Blue Orange Green Pink Purple

Posts Tagged ‘CSS’

You can use the search form below to go through the content and find a specific post or page:

Apr 23

Design Considerations

So a few days ago a friend sent me this link from A List Apart that I found very useful In Defense of Eye Candy.  I found it a good read, and right on point.  There’s a lot to think about when it comes to good design.  I mean, when do we every see a bad looking site – aside from the original Plenty of Fish see this old version from the Internet Archive.  It worked because it was free.  Sometimes that helps out.  But I’m a developer – I can understand what the guy who designed Plenty of Fish was thinking.  Let’s get it working and take it from there.

To tie into this, I was recently reminded of an article I’d read quite some time ago when Hal Helms twitted about a design for developers article he’d come across.  It’s got some really good points in it.  Reset your styles so you’re forced to do things for yourself – which removes some of the unpredictability.  Set some line-height, etc.  I really enjoyed reading through it again.  I highly recommend it if you’re a developer and don’t know for sure what you’re doing when it comes to design.  My favorite point from the article by Stefano’s Linotype is when it mentions that most developers can look at two different designs and tell you which one is better.  We generally just don’t know how to do it for ourselves.

On a related note – if you’re as design challenged as I normally am, I recommend looking at templates to get an idea of what designers think looks good.  And then if you’re really feeling like taking the easy route – use the Skins from the YUI for your site.  Will give you some basic style without having to worry about what you’re truly doing.   They also have a reset stylesheet and a base stylesheet if you’re interested.

Apr 01

CFDocument Style Fixes

Okay – so I had spent a good bit of time working on a few pages that I rendered as both HTML and PDF and they worked like champs, made it through one round with the client even.  Came back the next season – this week – to prep them for the next go round, add the changed fields, clean up some other code, and wouldn’t you know it but the HTML rendered fine and the PDFs didn’t.  This threw me for a total loop.  I wasn’t sure what had happened.  I found this post – cfdocument post by rip – and thought that may be the solution, but it wasn’t working either.  I got the pages to be XHTML strict even!

Then a co-worker suggested we just copy all the CSS into the pages.  Wouldn’t you know it but putting the CSS in a style tag on the page itself rendered the items as they should be.  So to preserve reusability I snapped them inbetween the style tags with a cfinclude.  That’s my suggestion for anyone else having trouble with this kind of thing. And make sure you have the media type with print in there too for your style declaration!

Web Development By George

  • About
    About me. Edit this in the options panel.
  • Photo Stream
  • Categories
    • ColdFusion
    • coldspring
    • Databases
    • Design
    • Flash
    • Flex
    • Internet
    • JavaScript
    • jQuery
    • Model-Glue
    • Personal
    • Subversion
    • Uncategorized
    • YUI
  • Recent Articles
    • Radios and JQuery and IE8
    • Coldfusion, Flex, and SSL
    • Leaving it to the Experts
    • CFAjaxProxy Problems or RTFM
    • I love the Internet
    • Interesting ColdFusion Survey
  • Archives
    • November 2011
    • May 2011
    • May 2010
    • April 2010
    • March 2010
    • February 2010
    • January 2010
    • November 2009
    • October 2009
    • August 2009
    • July 2009
    • June 2009
    • May 2009
    • April 2009
    • March 2009
    • February 2009
  • Search




Add to Technorati Favorites

  • Home
  • About George
  • Contact Me

© Copyright Web Development By George. All rights reserved.
Designed by FTL Wordpress Themes brought to you by Smashing Magazine

Back to Top