Re: New layout language.

OK Orion,

Try 2:

I design websites all the time.  And your ideas are not popular with me.
If I (and people like me) are not your target audience then your ideas are
misdirected.  You say that we (the people subscribed to this discussion)
are incapable of really being impartial about this discussion, yet most of
us use the product being discussed every day.  If we can't see a benefit,
then chances are you're barking up the wrong tree.

Ultimately though your statement there is just your excuse to continue
pounding away on what most of us find to be rather pointless.

Concerning the layout mechanics of CSS.  Current mechanics may not be
optimal in your view, but they will, in all likeliness, work increadibly
similar to what you've describe in the near future.  So to me, this issue
is solved, and should be dropped.

As far as seperation of formatting and layout... let's talk about it for a
minute.

As I see it, classes are very adept for formatting, ids for layout.  You've
said as much yourself.  So assume for a moment the following:

I set up a text format:

.class1 {
  color:#0000ff;
  font-weight:bold;
}

And I want it applied to the text inside of this id

#id1 {
  position:absolute;
  top:10px;
  left:10px;
  width:200px;
  height:100px;
}

Currently I need to do this in the html:

<div id="id1" class="class1"/>

yes?  Which we'll all freely admit is more to maintain.  Whether it's worth
it is up for grabs, but this is totally doable currently, you just don't
see it much.

What if we could do this instead?

I have id1, and I wish class1 to apply to it on all pages.  Consistency and
such.

so I do thus:

#id1 {
  class:class1;
  position:absolute;
  top:10px;
  left:10px;
  width:200px;
  height:100px;
}

Now technically my formatting shouldn't ever conflict with my layout...
margins and padding could become semi-problematic in such a system, but
perhaps a little seperation of naming conventions could fix that.  Now I've
satisfied Orion's idea of seperating out my layout, I've given developers
of websites more flexibility, and yeah... I wish I had a 3rd thing to say,
but oh well.

Thoughts???  Can we do this currently?  Am I off base here?

Kris

Received on Thursday, 7 July 2005 13:51:33 UTC