In article <qS%oi.10858$4A1.8290@news-server.bigpond.net.au>, rf
<rf@invalid.comwrites
Quote:
>
>"Alan Silver" <alan-silver@nospam.thanx.invalidwrote in message
>news:CPqiOQOO8HpGFwbY@nospamthankyou.spam...
Quote:
>Anyone have any idea on this? I'm pretty sure it's not the 3-pixel jog,
>mainly as the gap has now been seen to be one pixel, not three.
>
>
>Unmaximize your browser window. Pick up an edge and very slowly move it left
>and right. You will notice that the artifact appears and disappears,
>depending on the width of the browser canvas, probably the users font size
>and if the dog is barking as well.
Well, it's actually there about 99% of the time. Just occasionally it
disappears, although the dog wasn't barking, so that might have affected
it.
Quote:
>It's due to the fact that you are trying to position things with pixel
>precision and also using percentages for width.
What pixel precision? I'm trying to get the bottoml and bottomr divs to
sit right up against the left and right margins of their containers.
That's hardly trying to position with pixel precision. I've done this
many times before, and seen plenty of other example of it too.
Quote:
A percentage of what?
What percentage? The only percentage in that whole bottom set of divs is
the 100% width for the container div. All of the CSS on the html and
body tags could have been removed. I should actually have taken it out
for this example, but forgot.
So I'm left with one single percentage, which is 100%. What's the
problem with that?
Quote:
>The
>browser canvas, and what if that percentage is not an integer? IE does not
>like this sort of stuff. It'll round up, or down, or whatever and sometimes
>it will leave an artifact there.
Well, this would be fine if I were trying to position with percentages,
but I'm not. The bottomr div, which is the one causing the problem is
positioned absolutely, and has a top and right property of zero. Even
with IE's buggy rendering, I don't see why that would cause rounding
errors. Zero is zero. Sure, if I was specifying a percentage of
something, then rounding could occur, but there's nothing to round.
Quote:
>From what I can see you are starting a page that would be better drawn with
>some paint program and destined to paper, and not the web. Rethink the
>design. You already have WAY too much CSS, trying to control things with way
>too much precision.
I have been designing web sites for about 12 years. I produce 100% valid
and compliant sites that adhere to web standards. I know how to design
web pages. What I am doing here hardly falls into the dee-ziner category
that you describe.
As I pointed out, you can ignore the CSS for the html and body tags
(which I've now removed from the sample page). What you are left with
are three fairly simple CSS declarations. How is that "way" too much
CSS, and how am I trying to control things with "way" too much
precision?
Quote:
>Hint: If you really know what you are doing and if you really understand all
>the implications then you then may use position: absolute. not before.
Yes I do know what I'm doing. I have been using absolute positioning for
years and never had a problem with it before.
I understand your point of view. I have seen plenty people trying to do
pixel-perfect design, without understanding the nature of the web. You
were not to know that this does is not my situation. However, your
criticism does not seem justified. A quick look at the CSS would show
that I'm not doing a lot of what you suppose.
Anyway, I have found a hack that fixes the problem, but I would still
like to know why it is happening as I don't like using hacks. If you
have any suggestions about the actual problem, as opposed to telling me
that I am doing it the wrong way, I would be glad to hear them.
--
Alan Silver
(anything added below this line is nothing to do with me)