473,545 Members | 1,878 Online
Bytes | Software Development & Data Engineering Community
+ 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 1474
On 14 Sep 2005 17:28:03 -0700 in
comp.infosystem s.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#va lue-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.infosystem s.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.infosystem s.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
7830
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 long int to store the value, and the precision (number of decimal points) is variable (it's a templated class): template <size_t _decimal_places =...
4
3291
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 interact with a rich 3D environment. Seem to be 90% of the way there! My problems are related to calculations where the result tends to zero (or...
687
22974
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 believe that. in pieces of the application where speed really matters you can still use "normal" functions or even static methods which is...
10
2243
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 problems with floating point arithmetic and I am looking for a way to solve it. See the code below... Given a certain amount of change (below...
3
3769
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 programmers who don't range- check their data can e.g. multiply two very tiny values and end up with a very large one. This is (AFAICT) quite fine...
7
3379
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 discuss about ways to emulate floating point calculations with just long int or long long int. For eg., if i've a formula X=(1-b)*Y + b*Z in floating...
15
3902
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 the EPSILON? I know in float.h a FLT_EPSILON is defined to be 10^-5. Does this mean that the computer cannot distinguish between 2 numbers that...
32
4056
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 ); } int main() { std::deque<double> pt ;
11
2052
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 added and Divided by the number of ints to return the average, a float. Can someone see why I get for example: if the total is 227 then divided by...
0
7416
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7932
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7776
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
4965
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3473
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3456
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1905
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1032
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
729
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.