Re: Flicker



Well bust mah britches and call me cheeky, on Wed, 21 Nov 2007 18:24:38
GMT Shelly scribed:

XXpadding: 3px 0 0 0;

/* padding: 3px 0 0 0; */

It's just a cheater way of removing the line from counting.
Browsers don't parse malformed css so this is like eliminating it.
I wouldn't advise publishing the page that way; remove the line or
change it so it no longer has the bad effect. -And you're quite
welcome.

Using comment markers to 'remove' it is better. <g> Doing so leaves
no doubt as to your intentions, and also protects you from next
year's browser, which might disregard /all/ CSS from that point on.

Agreed. I use it only for "easier" preliminary testing on browsers
whose reactions I know from experience. (Saves keystrokes.)

For any permanent change, the line should be dealt with correctly.

What I normally do to eliminate a line but not remove it is to enclose
it in a /* */ set.

That's the right way to comment-out a line in the <style> element.

As far as handling it correctly, what was wrong with the line:

padding: 3px 0 0 0;

that caused it to flicker?

I can only guess, but first of all, ie handles margins and padding
differently than standards-compliant browsers. Whether that is relevant
may not be pertinent in any case; it just might be simply a matter of ie
redrawing the page with margins/padding included on hover styles and
execution.

Maybe someone here knows more about it. I just chalk it up to the
"brokenness" of ie.

--
Bone Ur
Cavemen have formidable pheromones.
.



Relevant Pages

  • Re: Flicker
    ... Browsers don't parse malformed css so this is like eliminating it. ... I wouldn't advise publishing the page that way; ... For any permanent change, the line should be dealt with correctly. ...
    (alt.html)
  • Re: Border at top of the page
    ... then layouts are calculated by the browsers default settings. ... Some different doctypes trigger different layouts. ... You should set a doctype. ... margins and paddings on body, ...
    (comp.infosystems.www.authoring.stylesheets)
  • Re: Margins
    ... browsers as almost all of the prospective clients looking ... margins completely - the ... >> still continued to show Brower Compatibility problems. ...
    (microsoft.public.frontpage.client)
  • Re: lists
    ... list markers - even when they are absent. ... then apply the desired padding and margins to each element. ... browsers are applying the same padding and margins as each other (bugs ... this rather bugs me... ...
    (alt.html)
  • Re: Can I force the form to extend to 90% of the body height?
    ... Using your suggestion to use margins I used the following: ... will cause my display to not use all of the availabe browser height and use ... but I'm sure you know about some of the weird things browsers sometimes do ... The yellow table fills the table between those two green areas. ...
    (microsoft.public.dotnet.framework.aspnet)