HighDots Forums  

Floating numbers in %

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Floating numbers in % in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
lacibaci
 
Posts: n/a

Default Floating numbers in % - 09-14-2005 , 08:28 PM






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

Lac


Reply With Quote
  #2  
Old   
Stan Brown
 
Posts: n/a

Default Re: Floating numbers in % - 09-15-2005 , 12:49 AM






On 14 Sep 2005 17:28:03 -0700 in
comp.infosystems.www.authoring.stylesheets, lacibaci favored us
with...
Quote:
Can I use floating numbers when specifying width in %? For example:
"width: 5.5%"
From <http://www.w3.org/TR/CSS21/syndata.html#value-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.h...lue-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/200..._wont_help_you


Reply With Quote
  #3  
Old   
lacibaci
 
Posts: n/a

Default Re: Floating numbers in % - 09-15-2005 , 08:38 AM



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


Reply With Quote
  #4  
Old   
Stan Brown
 
Posts: n/a

Default Re: Floating numbers in % - 09-15-2005 , 12:13 PM



On 15 Sep 2005 05:38:13 -0700 in
comp.infosystems.www.authoring.stylesheets, lacibaci favored us
with...
Quote:
So I guess the answer is yes.
To _what_? We're not mind readers.

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

Quote:
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/200..._wont_help_you


Reply With Quote
  #5  
Old   
lacibaci
 
Posts: n/a

Default Re: Floating numbers in % - 09-15-2005 , 01:07 PM



What I was trying to say is that according to w3c draft
(http://www.w3.org/TR/CSS21/syndata.h...lue-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


Reply With Quote
  #6  
Old   
Obvious
 
Posts: n/a

Default Re: Floating numbers in % - 09-16-2005 , 07:59 AM



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

Quote:
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!


Reply With Quote
  #7  
Old   
lacibaci
 
Posts: n/a

Default Re: Floating numbers in % - 09-16-2005 , 10:36 AM



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


Reply With Quote
  #8  
Old   
Obvious
 
Posts: n/a

Default Re: Floating numbers in % - 09-16-2005 , 11:38 AM



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

Quote:
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.


Reply With Quote
  #9  
Old   
Stan Brown
 
Posts: n/a

Default Re: Floating numbers in % - 09-16-2005 , 05:08 PM



On 15 Sep 2005 10:07:25 -0700 in
comp.infosystems.www.authoring.stylesheets, lacibaci favored us
with...
Quote:
What I was trying to say is that according to w3c draft
(http://www.w3.org/TR/CSS21/syndata.h...lue-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/200..._wont_help_you


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.