[WSG] Standards way of getting div background color?

2008-11-27 Thread Dennis Suitters

Dunno, if this has been asked before.

I've been looking wherever I can for a way to get a div's or any 
element's background color in a sementic friendly way (ie. works in IE 
and FF) using javascript.


so far i've tried the below:

document.getElementById('element').bgColor;



document.getElementById('element').style.backgroundColor;

TIA


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



Re: [WSG] Fw: The Great Firewall of Australia

2008-11-26 Thread Dennis Suitters
Yes, real, definitely. But think about it, the government would already, 
and in some part already do filter information. If they went to the 
extremes outlined though, don't you think that generally the public (not 
just the web development community) would put up such a stink about it, 
the government would be forced into taking several steps back.


Unfortunately though, even though the government is supposed to work in 
the best interests of it's people, they don't in the long run.




Blake wrote:

On Thu, Nov 27, 2008 at 4:04 PM, Anthony Ziebell
[EMAIL PROTECTED] wrote:
  

Oh, it's certainly not spam. It's been all over news, whirlpool, everywhere.



Yes, it's definitely real. I feel ashamed of being Australian right there.

--
Blake Haswell
http://www.blakehaswell.com/ | http://blakehaswell.wordpress.com/


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***

  




***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



Re: [WSG] your best practise for CSS sprites for elements that have no height declared

2008-11-24 Thread Dennis Suitters

Check out
   http://www.alistapart.com/articles/sprites
and
   http://www.alistapart.com/articles/sprites2
I think this what your trying to achieve, or at least close to either 
one of those articles.


I haven't played much with horizontal sprite images, but usually use 
vertical ones, and I haven't tried them using lists.


Dennis, www.eyemaxstudios.net



Robert O'Rourke wrote:

tee wrote:
I am trying to optimize a site, though the file sizes of the overall 
images aren't so much of a problem but the http requests. So I am 
attempting to put 10 icons in one gif file, the individual icon size 
is merely 600b and the dimension is 18px by 12px.


I made a 18px by 150px to hold 10 icons vertically, that makes the 
size a mere 4kb, problem is, there is no width declared in the list 
element that the icon is declared as background image, so when I make 
the font size bigger, the 2nd icon in the vertically order see 
through; one more increasement, I can see the 3rd and half of the 4th 
icons. so I estimate I have to give a least 80px space in height to 
prevent this from happening, by doing so, the file size is double.


I guess this is alright as it reduces 9 http requests, but for other 
big images, I estimate I might have to make the height over 1500px to 
solve the problem that occurs when font size increases. I guess this 
is a twofold question: 1) How do you do to prevent the above issue 
from happening, if possible?; 2) Does this method really justify the 
reduces of http requests?



Thanks!

tee


If I remember rightly if you are able to save the image with a 
transparent background it keeps the file size lower because a 
transparent pixel takes less space than a pixel with colour 
information. You can put a coloured outline around the sprites 
themselves to avoid jagged edges in IE.


-Rob



***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***





***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***