Posted by Tim Milstead on 11/23/79 11:41
In principle I like the idea of CSS. I want my content to be separate
from my formatting, but my experience of CSS is not a good one.
I guess it is not a criticism of CSS itself to say that different
browser implementations and levels of support are a pain, but there
comes a point when one has to take a pragmatic rather than idealistic
decision to ditch something right for something that works.
I also have a guilty secret - I miss tables. I know it's wrong but
things were so much easier back then...
Here are two things I find difficult in CSS.
1. The width of an object being width+margin+border+padding as opposed
to being just the width property! Suppose I want two columns one 25%
wide the other 75% wide. I want each column to have a margin of 5px a
1px border and padding of another 5px. I would like to do all this with
just two divs but I can't because the margin, border and padding make
the columns wider than 25% and 75% which means they appear under each
other. There appears to be no way of subtracting the 11px round the
edges off the percentage width of the column (an expression in my css).
I have done something wrong?
2. I find that I just end up having to add divs to get the layout right
which means that my document now contains formatting instructions mixed
with its content - exactly what CSS was meant to avoid.
It seems that JSP and XML with translation are the only ways to keep the
layout separate. Neither of these are particularly handy for simple web
page creation and hosting.
What do people think?
Tim.
Navigation:
[Reply to this message]
|