473,480 Members | 2,967 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Floating numbers in %

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

Lac

Sep 15 '05 #1
8 1471
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.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
Sep 15 '05 #2
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

Sep 15 '05 #3
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/200..._wont_help_you
Sep 15 '05 #4
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

Sep 15 '05 #5
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!
Sep 16 '05 #6
If you don't have anything useful to say buzz-off troll.

Sep 16 '05 #7
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.
Sep 16 '05 #8
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.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
Sep 16 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
7823
by: Roger Leigh | last post by:
Hello, I'm writing a fixed-precision floating point class, based on the ideas in the example fixed_pt class in the "Practical C++ Programming" book by Steve Oualline (O' Reilly). This uses a...
4
3283
by: Dave | last post by:
Hi folks, I am trying to develop a routine that will handle sphere-sphere and sphere-triangle collisions and interactions. My aim is to develop a quake style collision engine where a player can...
687
22779
by: cody | last post by:
no this is no trollposting and please don't get it wrong but iam very curious why people still use C instead of other languages especially C++. i heard people say C++ is slower than C but i can't...
10
2229
by: Shawn | last post by:
Hello all, I apologize as I am sure this has probably been dealth with before... but I am doing an exercise from "Practical C Programming" and I have been unable to get it to work perfectly due to...
3
3758
by: Mark L Pappin | last post by:
<puts on Compiler Vendor hat> I've recently discovered that our compilers don't make any attempt to handle floating point overflow in add/subtract/ multiply/divide, with the result that...
7
3369
by: Vinoth | last post by:
I'm working in an ARM (ARM9) system which does not have Floating point co-processor or Floating point libraries. But it does support long long int (64 bits). Can you provide some link that would...
15
3889
by: michael.mcgarry | last post by:
Hi, I have a question about floating point precision in C. What is the minimum distinguishable difference between 2 floating point numbers? Does this differ for various computers? Is this...
32
4041
by: ma740988 | last post by:
template <class T> inline bool isEqual( const T& a, const T& b, const T epsilon = std::numeric_limits<T>::epsilon() ) { const T diff = a - b; return ( diff <= epsilon ) && ( diff >= -epsilon );...
11
2042
by: Peter | last post by:
I have written this small app to explain an issue I'm having with a larger program. In the following code I'm taking 10 ints from the keyboard. In the call to average() these 10 ints are then...
0
7037
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7080
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6735
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
6895
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4770
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4476
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
2992
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
2977
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
558
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.