for the property values that can be set to true / false is it better to set them as
closeonclick=1;
closeonclick=true;
closeonclick='true';
Is there a difference? Is one particular way accepted by more browsers?
thanks
true false 1 or 0
-
- Advanced
- Posts: 18
- Joined: Wed Mar 21, 2007 3:46 pm
Hi,
You have it backwards. In the style area anything that is more than just a numeral takes quotes, i.e. fontsize=14; fontsize="14px"; and in the aI string there are no quotes. So let's say in one item you want to have fontsize set to em or pts for whatever reason, it would be fontsize=1.5em;
As to why it's like that.... it has something to do with programming, strings and such, not something I really know about.
Ruth
You have it backwards. In the style area anything that is more than just a numeral takes quotes, i.e. fontsize=14; fontsize="14px"; and in the aI string there are no quotes. So let's say in one item you want to have fontsize set to em or pts for whatever reason, it would be fontsize=1.5em;
As to why it's like that.... it has something to do with programming, strings and such, not something I really know about.
Ruth