In article <timstreater->,
Tim Streater <> wrote:
> In article <dorayme->,
> dorayme <> wrote:
>
> > In article <timstreater->,
> > Tim Streater <> wrote:
> >
> > > In article <dorayme->,
> > > dorayme <> wrote:
> > >
> > > > In article <timstreater->,
> > > > Tim Streater <> wrote:
> > >
> > ...
> > > >
> > > > What you are seeing as underlining, btw, is actually border on the
> > > > span. When you float, the element makes like a block, a fortress where
> > > > intruders are not welcome, the whole thing is a block and the border
> > > > goes all around it (rather than the span remaining its default
> > > > display: inline and so all its lines have the focus taken off it.
> > >
> > > So the originator of this class was just after a side-effect then.
> > > Always a bad idea to do that, IMO.
> >
> > The person who used this class might have had other things he wanted,
> > I don't know without seeing his original. What is a side effect and
> > what is not is a slippery concept in CSS. People sometimes have use
> > floats for their shraxpand to fit properties, its *just styling*, they
> > could use a table cell which also shraxpands (if the author does not
> > go specify a width, if it is 'width: auto' in other words). Now, a
> > conscious use of a table *just for this* would be a bad idea.
> >
> > Much interesting styling is smoke and mirrors and the bread-and-butter
> > attitude that is appropriate to HTML is not so appropriate with CSS.
> > Beaut things are negative margins, columns made from borders, and in
> > fact, everything in CSS that is not quite what it seems to be! If it
> > ever became completely tame and predictable and teachable to an Adobe
> > robot then that would be a sad day. Whereas in HTML, everything should
> > be exactly what it is.
>
> Hmmm. You realise this is just what puts people off CSS? That may be OK
> is you like fiddling with CSS *for its own sake*. But personally I
> object to smoke and mirrors stuff because it takes time away from the
> main business.
Well, I respect the attitude of liking properties that have names and
behaviours that sound like what they do. And I respect, but with
severe limitations, the practice of only using them for the purposes
they were originally created for. There are - maybe - a few formally
minded mechanics that have this attitude towards tools. However, my
own experience is that the best of them find creative uses for their
tools. (I know what I do in the garage to cars! You would be
absolutely appalled - even though my cars and motor bikes have always
run nicely. <g>).
If anyone thinks that CSS has been as precise as mechanical tools in
their purpose and effect, they might seriously be misjudging the
reality.
> Well - never mind, and I'll say thanks again to avoid
> appearing ungracious.
You never appear ungracious Tim. Please don't feel obliged. I post
here because I find the issues interesting, in the hope that people
will discuss these things. Not only to help with practical problems.
You did ask a rather interesting question about why something worked
and I tried to answer this as best as I could. But there are other
issues that this leads onto and which you have no obligation at all to
be interested in.
Your idea of "the main business" of web pages and your concept of
being interested in CSS "for its own sake" deserves a comment or two.
Simple communication and not trying to be too arty about it is a fine
thing. But aesthetics is something that is important to a lot of
people, it makes things interesting and yes, for its own aesthetic
sake. Sometimes the aesthetics is the main point.
It is fine not to be interested in this aspect much. It is fine not to
be interested in paintings or photos or films for their own sake but
just for the practical message they communicate.
But for many of us who are interested in more than the practical
message of many things, aesthetics is important, it is an end in
itself.
Few good painters are uninterested in the properties of their
materials and equipment who are also shy of veering from the
instructions and ideas printed on their labels. I can't imagine my
life as a keen photographer for so many years without being really
interested in how my materials and equipment worked and thinking about
how to use them in different ways, both in and out of the darkroom.
Try useful absolute positioning without slapping on 'position:
relative' on some container you want to position in relation to. The
style is precisely for its side effect.
<
http://dorayme.netweaver.com.au/abso...earest_positio
ned_ancestor.html>
Seriously, Tim, CSS is riddled in more ways than you maybe are
imagining with the usefulness of "side-effects" even for very
practical purposes.
--
dorayme