Hmm, that is an interesting solution. I guess I never really thought about it, but is that what inline style is for? Style that is considered part of the content? I guess I always just thought it was another place to put style (if you don't need it to apply to multiple documents) and that style should never be used to express content. However, it does make sense – there are some times where styling really is part of the content.

-Sam Walker

On Apr 9, 2004, at 1:46 PM, Robert Moser wrote:

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
*****************************************************


***************************************************** 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