For a saving of ~250 bytes, I’d say if you want transparent, have transparent. True, bytes can add up, but before optimizing you should consider whether or not the saving is significant compared to the sacrifice.
All I’m doing is blending everything with the black background color which is black.
One way is making it all #000000
The other is using transparent .
This is my template:
Do you see how I have transparent all over the place. I can either keep it as that, or change transparent to #000000
In this situation would you keep all those spots as transparent, or change them to #000000?
Right now the only thing that’s stated black on there is the background color, all the parts I want blended in with the background are set to transparent.
When you say “I have transparent all over the place”…what place are you talking about? Is the filesize you’re referring to a stylesheet or the image/template?
If you’re talking about the image, then it’s more future proof to use transparency as you’ll otherwise have to update the image anytime you want to change the background (for example, going from #000 to #333). If you’re talking about the stylesheet, then you should be using a minifier anyways.
Code comparing examples: solid: #000000 is seven characters soid #00000000 is eight characters soid
black is five charactersä solid #000 is four characteres sloid #0001 is five characteres solid
transparent;
transparent is eleven caracters. #0000 is five characters (fourth is the alpha channel, 0=transparnt) #0000000 is eight characters solid