PermaLinkDomino as a CSS generator?06:13:35 AM
Written By : Scott Good

Tom Roberts and I have been having a brainstorming session deep in the bowels of this site about using Domino as a CSS generator.

This is Tom's idea and it's a good one--no, it's a great one. It's time to bring it up to the front row.

In simple terms, here's the premise: Domino already has an engine built into it to convert rich-text to HTML. That's what puts all the <FONT> tags and such into our pages. That's all well and good but we're all learning how limiting hard-coded fonts and sizes and such can be.

A much better solution, in many cases, is pages tagged for CSS which are then related to style sheets. This makes making global changes fast and easy. The rough part though is getting all the tags in in the first place.

Enter Tom's idea, stage left.

The original inspiration was this comment: "...Now if only Domino would allow a global web setting (per db perhaps) to use css instead of all the font tags...."

Reading that, I had what my friend Dick Gorelick calls a Brilliant Flash of the Obvious: If Domino can serve up all those <FONT> tags, why couldn't it just about as easily create tags for CSS?

Today, from Domino, we get stuff like this:

<font size="2" face="Arial">Annoyed by how Netscape renders a font size differently than Internet Exlorer...or how a Mac renders different from Windows? Domino has a feature no other Web platform offers, computed text! Its easy to fix these browser and platform differences with CSS. Here's how...<br> </font><b><font size="2" face="Arial"><br> Code</font></b><br> <br> <font size="2" face="Arial">Modify your exisitng CSS to use Computed Text where ever the differences occur. (Your CSS will need to be a page or form and not an Image Resource in order to do this.)</font> <p><font size="2" face="Arial">Since the prime differences occur in frame spacing and font sizes, I've provided examples for both.</font> <p><b><font size="2" color="#000080" face="Arial">FONT SIZE DIFFERENCES:</font></b><font size="2" face="Arial"><br>

But it seems like it wouldn't be that hard to make it come out like this:

<style type="text/css">
bodyText1 {
   font: 9pt Arial, sans-serif;
}
bodyText2 {
   font: 9pt #000080 Arial, sans-serif;
}
</style>

<span class="bodyText1">Annoyed by how Netscape renders a font size differently than Internet Exlorer...or how a Mac renders different from Windows? Domino has a feature no other Web platform offers, computed text! Its easy to fix these browser and platform differences with CSS. Here's how...<br> </span><b><span class="bodyText1"><br> Code</span></b><br> <br> <span class="bodyText1">Modify your exisitng CSS to use Computed Text where ever the differences occur. (Your CSS will need to be a page or form and not an Image Resource in order to do this.)</span> <p><span class="bodyText1">Since the prime differences occur in frame spacing and font sizes, I've provided examples for both.</span> <p><b><span class="bodyText2">FONT SIZE DIFFERENCES:</span></b><span class="bodyText1"><br>

Yes, I know there are redundant calls here, but that's the same way Domino deals with the font tags. I could write it cleaner by hand, yes, but wouldn't it be better if you didn't have to?

Ideally, the actual style specifications would be stored separately--not in the same page as I'm showing them here--so you could make your own modifications. Maybe I'm missing the picture, but it doesn't seem like this would all that hard to do.

If it CAN be done, suddenly Domino would become an incredible CSS generator. Users wouldn't need to know CSS, they'd simply edit rich-text fields, inserting italics, weight changes, colors, and so on, while the Domino engine underneath did the heavy lifting.

More to the point, web designers--that's us!--could fiddle with the CSS rules hanging out behind the scenes to control the overall look and feel of the website separate from the users' fiddling (but subject to their guidelines as specified by italics, bold, and so on).

Are we doing drugs here, or is this even remotely possible? Does anyone know?

Comments :v

1. Tom Roberts11/09/2004 08:48:22 AM
Homepage: http://www.wwwebfeet.com


<drooling>drool... drool... drool</drooling>

Thanks Scott. You hit it right on the head.

Tom




2. css dersi06/29/2008 11:24:09 AM
Homepage: http://css-dersleri.ucoz.com/index.html


css Font examples , Properties , Attribute - - //
http://www.css-lessons.ucoz.com/font-css-examples.htm




3. sezer07/05/2008 10:46:07 AM
Homepage: http://orgu-ornekleri.blogspot.com


HI i need your help i really want to create my own website/web page but i dont know how to go about doing it so can you please help me out




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
bold italic underline Strikethrough





Remember me    

Disclaimer & Copyright
Monthly Archive
Contact me...
Racing sponsors and such...

Thank you sponsors!

GABlogLogo.jpg

GOODAero

GOODAero specializes in building aerodynamic products for racing cars. Our first product, the GOODAero Raptor wing is available at a surprisingly reasonable price (under a grand) for a full carbon, full-sized, racing wing. Check it out.


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
Lotus Domino ND6 RSS News Feed RSS Comments Feed Geo URL RSS Validator Blog Admin Lotus Geek Open Notes Picture Database OpenNTF BlogSphere
Calendar
February 2012
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
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 IBM Lotus Notes, Domino, and related technologies. 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.



GTSLogoSm.gif
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.

In support of my habit, I am the NASA Great Lakes Region's GTS (German Touring Series) Director.

I'm also a Nationally-Certified Instructor for the Porsche Club of America and am in charge of classroom sessions for the Mid-Ohio region when we are doing high performance driving events.

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?

Facebook