PermaLinkMore on CSS09/09/2004 09:03:58 PM
Written By : Scott Good

I'm two articles into the CSS series now. OK, well, neither is on the newstand (first lesson: November 2004 Lotus Advisor), and Advisor hasn't even seen the second one yet, but I'm through with them.

I mention this because I'm once again blown away with what you can do with this technology. If you know me (and you may not), you know I'm rather amazingly anal-retentive about how things look.

I'd like to think it's my printing background that makes me care so much but, really, I think it's just the way I'm wired. What's cool about CSS is the power--no, control--you can have over the look and feel of a web page. It's really kind of amazing.

Here's an example...

At the end of my first article I introduce a tease I'll satisfy in the second. I won't go into details, but the two screen shots below are both from pages with exactly the same HTML.



Yes, that's right. Exactly. The same. No difference. Not one character is different between the two pages.

And yet, look at the difference in the pages. One is plain and one is, well, nice. Both use CSS, of course, and that is different between them, but not as much as you'd think. The "bad" one has 24 lines of specifications while the good one has 34. Big deal. I could cut the line count a bit if I needed to, but I don't. It took me about five minutes to go from ugly to pretty.

Really. Five minutes. From chump to champ.

More importantly, I could have changed not only this one page but an entire web site in the same amount of time.

That is power. That's CSS. Very cool.


Commentsv

1. Top Dog09/27/2004 04:00:18 PM


Can't wait to read them!




2. Tom Roberts11/04/2004 09:31:11 PM
Homepage: http://www.wwwebfeet.com


Just wait till you see what I have in the plans for my company's public site next year. And if you haven't run across http://www.csszengarden.com you need to check it out.

Now if only Domino would allow a global web setting (per db perhaps) to use css instead of all the font tags and 16 px images it throws in by default!

Tom Roberts




3. Scott Good11/05/2004 09:09:41 AM
Homepage: http://www.scottgood.com


Ooooooo. That is a great idea. I just saw csszengarden for the first time this week and it is amazing. But your idea is even better because it could give all of us the basis to make that kind of CSS markup available in the real world.

If you look at all their markup--not the CSS but the HTML--you can see that the reason they're able to do such amazing things is because the HTML is so comprehensive--there are so many tags to hang your hat on.

Imagine if Domino had an option like you're talking about where it suppressed all the font tags but, instead, inserted <span> and other tags with IDs and classes we could get handles to with CSS. That would open up a whole new world of flexibility.

Man, my head is kind of reeling with the possibilities. You wouldn't think it would be all that hard for them (Lotus) to do (said like a true customer, with no sense of the actual work involved) and it would be...wow.

That is such a great idea. I wonder who we should tell it to?

Rocky...do you know?




4. Tom Roberts11/05/2004 02:36:09 PM
Homepage: http://www.wwwebfeet.com


From a true customer standpoint, it does sound easy. Domino already has styles for font and paragraph settings. And the Domino storage is essentially xml (document truly only contains name & value pairs (and multi)). It seems like it has all the fundamentals needed to have domino spit out an xslt and xml to format individual documents. And force the user to use styles (if db is tagged for css only) or simply create css for all the styles (to an external css of course), and use inline css instead of font tags everywhere else.

Again, it seems simple because it's not a paradigm shift, but it is a rewrite of the html engine.

I haven't signed up for Lotusphere yet but all this talk and idea exchange is making it harder to resist.




5. Scott Good11/05/2004 02:52:51 PM
Homepage: http://www.scottgood.com


Yep, I'm going to be at Lotusphere again this year. With a little luck I'll be speaking again, too.

After my last post I spent some time chatting with Jim Sanders, one of our guys, about the idea. He added a few more twists that would be nice. In our fantasy world...

1. The table dialog would include places to put tags for rows as well as for the table and individual cells. Also, you could define <th> and <caption> elements.

2. While the Domino engine (when asked) would spew out a standard CSS-tagged HTML for all the elements it currently tags for fonts and such, you could also highlight things like a paragraph or word or character and apply classes and ids to directly to it (more or less like you can to a table cell). These would be converted into <span> or other tags and spewed along with the rest of the HTML, giving developers HUGE flexibility in building CSS applications.

Seemingly minor additions like this could push Domino to be an incredible shortcut--and an incredible tool--for the increasing number of people moving to CSS-based application development.

What I'm starting to wonder is if I can write something to convert Domino HTML to CSS tags. Hmmm....




6. Tom Roberts11/05/2004 04:47:19 PM
Homepage: http://www.wwwebfeet.com


I'm wondering the same thing. My first (admittedly ugly) thoughts were an agent that calls a GetDocumentByURL then starts doing finds and replaces on text. It's ugly and slow already and I haven't even tried writing it.

My next thought was time to learn more about Domino's XML processors. Seems that you could theoretically pipeline the data to html, and bypass the html engine that puts the unwanted stuff in there altogether. I know Rocky's book is supposed to have some good stuff D6 XML processing. Still haven't found a copy at 1/2 Priced Books so I might have to pay full price for it this weekend...

ALSO,
If you haven't picked up any Eric Meyer books (Eric Meyer on CSS and More Eric Meyer on CSS), they're worth getting. He does a great job explaining css stuff and walking through demos of marking stuff up. His latest is this site (http://www.meyerweb.com/eric/tools/s5/ ) with a CSS based slide show system. The HTML behind it is just drop dead simple and gorgeous. It'd be so easy to create a Notes App with each doc being a slide and a view being transformed into one of those pages. Interested in writing a paper or article together on that?




7. Scott Good11/08/2004 09:12:29 AM
Homepage: http://www.scottgood.com


A) YES, I have three or four of Eric Meyer's books and I agree...he is terrific about explaining CSS in ways mortals can understand. He was my inspiration for bringing this same stuff to Lotus Advisor.

B) YES, let's do the database and article on slide shows...that would be fun, interesting and probably a cool thing to put out on OpenNTF or some such place. Good conversation for lunch this week.




Enter Comments^



Email addresses provided are not made available on this site.





You can use UUB Code in your posts.

[b]bold[/b]  [i]italic[/i]  [u]underline[/u]  [s]strikethrough[/s]

URL's will be automatically converted to Links


:-) :cry: :-\ :huh: ;-) :cool: :grin: :emb: :laugh: :-p :lips: :-( :rolleyes: :-o :-D :angry: :-x






Remember me    

Disclaimer & Copyright
Monthly Archive
Contact me...

or IM: JSG1901
SMRT Racing Team

Thank you sponsors!

Infinite Fiberworks Co, a great source for high-quality Porsche fiberglass parts

Infinite Fiberworks Co.

If you are looking for fiberglass for Porsches, IFC is the place to go. I have used parts from most of the major suppliers and IFC's are easily the highest quality and the most reasonably-priced. Contact Mike at Infinite Fiberworks for more information.

Located in Racine, OH (so far Southeast they're almost in West Virginia), IFC's goal is to be The Best. Give 'em a try.


Bent or ugly wheels? Call Wheel Medic!

Wheel Medic & The Round House

Whether you need to repair, repaint, refinish or just replace your wheels, the guys at Wheel Medic/Round House can get you back on the road in no time!

Wheel Medic, Inc is a family-owned company which specializes in the repair and restoration of aluminum wheels.

The Round House was founded to service Wheel Medic's clients looking for more than just repair work...from custom wheel colors to high-end wheel applications and body kits, the Round House is there to serve the discriminating automotive enthusiast.


Used Porsche parts, great prices!

A Part Above

Looking for used parts for 944s, 924s, 968s or other late-model water-cooled Porsches? Contact John at A Part Above.

Located in Strongsville, OH (20 miles south of Cleveland) their goal is to provide top quality parts and services. I can tell you, John is great to work with and the prices? Very hard to beat.


SMRT Motorsports wants you!

SMRT (that's short for Skid Mark Racing Team), a very-

loosely organized band of fun-loving friends who enjoy auto racing (heck, cars in general), and the occasional adult beverage, wants you to be a part of our team.

Go here to find cool T-shirts, sweatshirts, caps and mugs with the SMRT team logo.

The BlogRoll
Speaking engagements, etc.
January 20-24, 2008
Lotusphere 2008 (Orlando, FL)
  • AJAX and JSON for IBM Lotus Domino Applications (JumpStart session)


  • Moving IBM Lotus Notes applications to the web (with Henry Newberry)


  • Implementing AJAX and JSON in Domino Applications (hands-on, with Henry Newberry)


  • A look under the hood at a world-class IBM Lotus Domino Web application (with Henry Newberry)
April 11-13, 2008
Mid-Ohio race course (New Lexington, Ohio) May 15-16, 2008
Mid-Ohio race course (New Lexington, Ohio) May 17-18, 2008
Putnam Park race course (Mount Meridian, IN) June 7-8, 2008
Grattan Park race course (maybe) (Mount Meridian, IN) July 11-13, 2008
Mid-Ohio race course (New Lexington, Ohio) August 15-17, 2008
Mid-Ohio race course (New Lexington, Ohio) September 13-16, 2007
Mid-Ohio race course (New Lexington, Ohio)
  • Racing for the NASA GTS2 National Championship
October 11-12, 2008
Putnam Park race course (Mount Meridian, IN)
Lotus Domino ND6 RSS News Feed RSS Comments Feed Geo URL RSS Validator Blog Admin Lotus Geek Open Notes Picture Database OpenNTF BlogSphere
Calendar
January 2009
Su
Mo
Tu
We
Th
Fr
Sa
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
By Category
What I do for a living


I am the President of Teamwork Solutions a long-time Lotus, now IBM, Premier Partner.

With offices in Columbus and Cincinnati, Ohio, we specialize in custom application development for Notes, Domino, WebSphere and Workplace. Our software product, ProcessIt! (see below), is quite possibly the world's best, most powerful and easiest-to-use workflow tool for Notes and the web.

Our clients are some of the world's largest corporations along with others that aren't so big.

We do excellent work, quickly, and often on a fixed-fee basis. We'd love to talk to you about your next project.




I am a Contributing Author to Lotus Advisor Magazine, with more than 40 articles under my belt.

I've written how-to series (serieses?) on LotusScript, JavaScript, Cascading Style Sheets (CSS), and now, AJAX (Asynchronous JavaScript and XML), as well as a bit on miscellaneous web development topics.


TheView.jpg

I also write for The View as of the July/August issue where I showed how to take an ugly Notes applications and make it beautiful with just a few minutes' (careful) work.



I am the chief architect and one of two primary developers for what many consider the best all-around workflow tool for Notes/Domino, anywhere, regardless of price.

It's called ProcessIt!, and you can read all about it at www.notesworkflow.com but the bottom line is this: ProcessIt! is fast and easy to learn, extremely powerful, and can be used by mortals. Even--dare I say it?--common users.

You can spend a lot more on a workflow tool but you won't be able to do a lot more for all the extra money.

Don't believe me? Download and try it for free for 60 days.



Copyright Porsche and NASA...not me!

I race a Porsche 944 S2 in National Auto Sport Assocation events and am the 2008 National Champion in NASA's GTS2 class.

Blame this event, a few years ago, for starting that particular money drain all over again.

I'm also a Nationally-Certified Instructor for the Porsche Club of America and am active in teaching high performance driving for them and other enthusiast groups at race track events throughout the Midwest.

In a prior racing life, I was the Midwestern Regional Formula Atlantic Champion and, in 1991, the Ohio Vally Region of SCCA's Regional Driver of the Year (but that, alas, went away when my credit cards let go of the rope!).




I'm writing a book...or at least trying to.

It's murder mystery in which, not too surprisingly, the main character runs a small software company and races cars for fun. Oh yeah, and lives near where I do.

Just where do they come up with these crazy ideas?