This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Stylesheets > September 2005 > Floating numbers in %





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Floating numbers in %
lacibaci

2005-09-14, 11:21 pm

Can I use floating numbers when specifying width in %? For example:
"width: 5.5%"

Lac

Stan Brown

2005-09-15, 4:26 am

On 14 Sep 2005 17:28:03 -0700 in
comp.infosystems.www.authoring.stylesheets, lacibaci favored us
with...
> Can I use floating numbers when specifying width in %? For example:
> "width: 5.5%"


From <http://www.w3.org/TR/CSS21/syndata....-def-percentage>
The format of a percentage value (denoted by <percentage> in
this specification) is a <number> immediately followed by '%'.

And from http://www.w3.org/TR/CSS21/syndata....alue-def-number
A <number> can either be an <integer>, or it can be zero or
more digits followed by a dot (.) followed by one or more
digits.

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2.1 spec: http://www.w3.org/TR/CSS21/
validator: http://jigsaw.w3.org/css-validator/
Why We Won't Help You:
http://diveintomark.org/archives/20...e_wont_help_you
lacibaci

2005-09-15, 7:39 pm

So I guess the answer is yes. If this is the case, then
Mozilla/Firefox doesn't honor it. If I set the with to 99.5% they just
ignore the number after the decimal point. It seems to work correctly
in IE.

Lac

Stan Brown

2005-09-15, 7:39 pm

On 15 Sep 2005 05:38:13 -0700 in
comp.infosystems.www.authoring.stylesheets, lacibaci favored us
with...
> So I guess the answer is yes.


To _what_? We're not mind readers.

http://oakroadsystems.com/genl/unice.htm#googlefu

> If this is the case, then
> Mozilla/Firefox doesn't honor it. If I set the with to 99.5% they just
> ignore the number after the decimal point. It seems to work correctly
> in IE.


That's nice. Now if only we knew what you were talking about, and if
only you had provided a URL.

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2.1 spec: http://www.w3.org/TR/CSS21/
validator: http://jigsaw.w3.org/css-validator/
Why We Won't Help You:
http://diveintomark.org/archives/20...e_wont_help_you
lacibaci

2005-09-15, 7:39 pm

What I was trying to say is that according to w3c draft
(http://www.w3.org/TR/CSS21/syndata....alue-def-number) I should be
able to specify width in % as a real number. For example:
width: 5.5%. Mozilla/Firefox are ignoring the part after the decimal
point. The IE6 works as expected.

Lac

Obvious

2005-09-16, 7:43 pm

On 15 Sep 2005 10:07:25 -0700, lacibaci wrote:

> What I was trying to say


Yes but your still not quoting who or what you are replying to, learn a
little netiquette. Quote the relevant parts of the post you are replying
to!
Obvious

2005-09-16, 7:45 pm

On 16 Sep 2005 07:36:44 -0700, lacibaci wrote:

> If you don't have anything useful to say buzz-off troll.


and if you can't be arsed to play by the rules that the majority of us
adhere to don't expect help.

Maybe I was over estimating you intelligence, but then if your incapable of
using a proper newsreader and have to resort to GG maybe not.
Stan Brown

2005-09-17, 4:27 am

On 15 Sep 2005 10:07:25 -0700 in
comp.infosystems.www.authoring.stylesheets, lacibaci favored us
with...
> What I was trying to say is that according to w3c draft
> (http://www.w3.org/TR/CSS21/syndata....alue-def-number) I should be
> able to specify width in % as a real number. For example:
> width: 5.5%. Mozilla/Firefox are ignoring the part after the decimal
> point. The IE6 works as expected.


Did you read the reference I gave you? Here it is again:

http://oakroadsystems.com/genl/unice.htm#googlefu

If you're not prepared to follow Usenet conventions, many people will
ignore you. I'm one of them, after this.

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2.1 spec: http://www.w3.org/TR/CSS21/
validator: http://jigsaw.w3.org/css-validator/
Why We Won't Help You:
http://diveintomark.org/archives/20...e_wont_help_you
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews