Text justification & NS 4.77

I’m inserting this relatively simple style sheet in the head of an html page:

<style type=“text/css”>
<!–
P {
text-align : justify;
}
TD {
text-align : justify;
}
A:LINK {
text-decoration : none;
}
A:ACTIVE {
text-decoration : none;

}
A:VISITED {
text-decoration : none;
}

–>
</style>

I want every paragraph justified.

In Netscape, the text is showing up aligned to the left. I want it justified.

I’ve checked to make sure that javascript and stylesheets are turned on. I’ve tried saving it as .htm rather than .html. I’ve even frickin’ copied it <b>directly</b> from the source of another page that I know works. It looks fine in IE. WTF?

Please, don’t tell me that I should switch to Microsoft products. I prefer Netscape, for more reasons than I feel like listing here.

Here it is:

http://neussubjex.net/issue/ns38/neus.html

Rather strong language, so cover your ears.

Netscape doesn’t like the mix of images and text in a single table cell. move the image at the top to a new table cell and you’ll be fine.

Netscape it just buggy like that.

If your going to use stylesheets, you might as well use them cimpletely. Consider removing your fonts tags and use styles for all text information.

If you have a lot of pages in your site, throw all that style information onto a linked stylesheet, and then link that page and all other pages of the site to it.

Then later if you want to make changes you can edit the one stylesheet file as opposed to making lots of little changes on every page of your site.

Thanks, but it doesn’t seem to be working.

I’m gonna go bang my head against a wall for while.

If it’s any consolation, it’s justified under Opera. It’s all squished together, but it’s justified. It’s probably just bad (or buggy) support for CSS in your version of Nutscrape.

[bump]

Sorry to tell you this, but Netscape 4.* just doesn’t fully support of CSS.

If you are so fond of Netscape, why don’t you limit yourself to programming that is supported by it. Or better yet why don’t you download Netscape 6, which supports many more aspects of CSS.

Lance:

Because I am writing CSS to Netscape specs. The same stylesheet works in NS4.77 on other pages I’ve written. Just not this one.

I’ve got NS6, but I hardly use it, mainly because it sucks and I hate it. Besides, I’m not writing the page for myself.

If it were up to me, everybody would use Opera. But what’s the number two browser in the world? Netscape 4.x. Hence my frustration.

I feel your pain and frustration. I make web pages, and I’ve pretty much given up on getting style sheets to work on Netscape 4.. There are a lot of things that won’t work at all in Netscape 4.. There are some things that sometimes work and sometimes don’t. (Even when programmed to Netscape specs) I’ve said “f*ck it” to the whole thing and given up on that version of Netscape. I rarely use style sheets because of this and the popularity of that browser.

Amen to your view of Netscape 6, but it doeas handle style sheets a whole lot better. Now if it would only not mess up my tables.

Apparently, this bug tends to pop up most often when the text is in a table.

I decided to chuck the tables and hamfistedly mess with marginwidth and left margin. I put a justified divider with a style setting the width to that of my header image to achieve something of the same effect. It ain’t pretty, and it directly contradicts both the W3C’s and bcullman’s advice, but it works… for now… And I’m praying that it works in IE.

For my next trick, I’ll grab some coffee and a cigarette.

Thanks, everybody.

I’m sorry to rant, but this NS crap is bringing me down a lot lately. The only good thing about NetScape is Andreesen, and he bailed years ago. I.e. there is zero good about NetScape.

Style Sheets? Forget about it. Anything useful will not work in NS. And that’s CSS1; don’t even try any CSS2 stuff.

Tables? Tables are HTML 101. And NS barfs on anything but the simplest tables.

XML? The only good thing here is that there is zero support in NS, so you don’t go through the horrific dance of trying to make it work, like you do with CSS.

Somebody somewhere on the board recently wrote that “if you only write in compliant XHTML, your code will be beautiful everywhere”. Bull. I’m so sick of NS, I’m disgusted. Why won’t that damn thing die?