Sam Walker wrote:
Granted, the graphs are very nice. However, wouldn't this be considered the /wrong/ way to use CSS? The graph is part of the basic information of the page, isn't it? So it should not rely on CSS to generate it. CSS is for styling, (X)HTML is where the content goes. It seems like the only way to do this the right way is to use an image for the graph.

This might be an appropriate time to use inline styles. So instead of having the #bargraphX .used and #bargraphX .unused selectors setting the width, the divs would have a style attribute attached like this:


<div id="bargraph0" class="bargraph">
  <div class="used" style="width: 45%;">45%</div>
  <div class="unused" style="width: 55%;">55%</div>
</div>

Then the basic information is in the page and not in the CSS.
*****************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
*****************************************************




Reply via email to