The Netscape DevEdge website has been redesigned and unveiled with valid code. The new design boasts XHTML 1.0 Transitional and CSS, along with many goodies. The site was released as of February 11, 2003. The DevEdge team is quite proud of their new work and well deserved. Much work obviously went into this project.
They did a nice job of implementing some other features as well. The navigational menu, structured with lists, uses JavaScript and CSS for power. It, of course, works in multiple browsers and remains available to those who are out of date. There is also user-selctable style sheets and font-size that are available with a quick switch in the right hand navigation panel. This, obviously, allows users to adapt the site to their liking.
The designers also took advantage of using stylesheets to control 'printer-friendly' pages. You may also want to read Eric Meyer's article on how the CSS redesign was done.
DevEdge claims this list for their browser compatibility:
Eric Meyer and Susie Wyshak took some time to outline for us their reasoning and an in-depth look at the new design. They help support the perks of using such valid, structured code. All in all, I think the DevEdge team has done a great job in moving foward. Their site shows how it's done.
Comments
Not bad ... but not great
3 points
it works!
Then set up your stylesheets so they all have the line
#url {display:none;}in them - this prevents the URL from being seen. Go to your printer stylesheet though, and put in the line#url {display:inline;}instead. When you now print the page, it should show the URL after each link!Why do I use
<nolayer>you ask? Because Netscape 4 doesn't recognise#url {display:none;}, so it would show the URL text on screen. You can hide anything from Netscape 4 this way.Choices
I thought I'd share a few brief thoughts on some of our design choices in the hopes of answering the points commenters have raised.
nolayerbecause it will prevent validation.Thanks for the comments!
Moving Foward
These are features that add to the user experience; style, printed links, spiffy menu; they are additional, they do not take away from the content only add to it. What reason are we giving users to upgrade if we continously kneel down to service their outdated browser needs. If they aren't missing out the content, that is sufficient. We need to think twice when we start to worry about NN4 and old IE. They are long gone, whether half our visitors use them or not. If we do our job right (valid) and our content is accessible to all, we have done our job.
Eric Meyer and the DevEdge team have done that and they are rewarding those of us who surf with an up-to-date browser, with features such as optional style, nifty menu, so on and so forth.
Very good points ...
.. and my apologies if my initial remarks were a bit scathing - I am generally impressed with what's been acheived.
My critisism was rooted in the way the user-style and font control is presented as an accessibility feature, when very little accessibility benefit is gained - for example, why is one of the options not light text on a dark background, or dark text on a tinted background (many people find a tinted background much easier to read against than white).
That IE doesn't resize pixel text might be a bug ... but that really is irrelevant. Sure, it's counter-productive to concede to netscape 4 and ie4, but not to ie5 and ie6 - these are the majority browsers, however buggy they are; you can't ignore something so fundamental, especially when you flag what you've done as a good example to others.
As it goes - I find % font-size pretty reliable - consistent between ie5/6 and mozilla, at any rate, and only marginally smaller in Opera.
Re: it works!
Classes would probably be better to use than DIVs, since you're likely to have more than one URL on a page.
Netscape 4 does support display: none.
I have this HTML (excerpt):
<p>We'll put the swamp here:</p><div class="url"><a href="#">www.here.com</a></div>In testNS4.css:
.url {display: none;};In testCSS2.css (using @import):
.url {display: block;};The .url DIV does not appear in Netscape 4, and does in IE 5.5.
in reply
{display:none;}. If it does, that means you don't need the<nolayer>tags, so Eric Meyer can have the pages validate!Since the majority of surfers use IE, I'd have thought it prudent to make sure things like printable URLs work in that browser, and as a luxury, Mozilla and Opera, etc. But then we're talking about the Netscape DevEdge site here! :-)
Kirkaracha - "Classes would probably be better to use than DIVs, since you're likely to have more than one URL on a page.".
It doesn't matter how many divs you have, they can all reference the same CSS. Or is that breaking any rules? The main reason I don't use classes is that I once had a page with several divs on that would fail to display one of them properly. After much testing and frustration, I eventually concluded that I had too many classes on the page. Sounds crazy? Well I replaced them all with "id"s instead, and the page then worked. So now I avoid divs with classes.
Also, I would replace your class in testCSS2.css with
.url {display:inline;};as this helps to keep the printed URL with the surrounding text.Eric - "Navbar links too close together-- IE/Win bugs in inline layout are to blame for that. We're thinking about lightening up the borders between the links for visual reasons.".
No, the links are too close on all the browsers I looked at the site in. It looks like a sentence of words, rather than a set of links. However, only later did I notice the black borders inbetween them! On my screen, you can barely see them due to the dark blue background. All you need to do is add some padding at the left and right to space the links out.
One last thing. The Print Preview in Opera 7 on Windows 98 gives me a first page that's completely blank! The second page has the text, but no borders! You might want to look into that. Could be a browser bug or the code needs tweaking.
re: in reply
Sorry, I meant "classes would probably be better to use than IDs," not DIVs. Too much coffee...or not enough?
probably the wrong place to ask - but...
yes i do have japanese language support installed, but it doesn't happen on other sites, nor on devedge in other browsers...
...btw i can't read japanese :)
"id"s instead of classes
generally thats a bad idea, afaik it even violates xhtml standard as the id must be unique for the whole document and things like document.getElementById(id) and <label for="id"> shouldn't work anymore.
you got me wrong