Jump to content

saila.com

Online media matters

Living Can Kill You

Flush borders with Netscape 4; Nando Times closes

I think I’ve found a solution to a problem that’s been bugging me for a long time: adding a border flush with the background in Netscape 4.x. Although it requires an extra element, it’s worth it:

  .background { background: #FFC; border: none; }
  .nn4border { border: 1px solid #000; }

Which would appear like:

Lorem ipsum

The key point is to apply the background to the outer element, and the border to the inner element. To make the text flush against the left margin, apply the margin-left: -10px; /*/*/margin-left: 0;/**/ trick (shown with Caio’s Hack) to both rules.

Although this should work in most browsers, I’d like to get further confirmation. Once I do, it’ll be posted as a Web Building Tip.

In related news, Steve Clay has posted to the css-discuss Wiki some guidelines on what is and is no a good CSS hack (which the above is).

Peter-Paul Koch points out some of the fallacies in the argument that Web standards ensures forward compatibility, which, in turn, ensures that sites will always be usable in any browser.

One of the first true online news sites is closing. Almost every serious news Web site exisiting today — from CANOE to CNN.com — owes a debt to the Nando Times. Although it has drifted from its early internationaly focus, its nine years online helped convince the traditional media powers that this medium had potential. (Via E-Media Tidbits.)