473,320 Members | 1,951 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Assigning css properties.

When i assign some css properties should i allways use the postfix like
measurment units (so use: 150px instead of only 150).
Please answer. Waitin.

Nov 23 '05 #1
5 1149
Luke Matuszewski wrote:
When i assign some css properties should i allways use the postfix like
measurment units (so use: 150px instead of only 150).
Please answer. Waitin.


All length values must have units unless they are set to zero (0).

"The format of a length value (denoted by <length> in this
specification) is a <number> (with or without a decimal point)
immediately followed by a unit identifier (e.g., px, em, etc.).
After a zero length, the unit identifier is optional."
<URL:http://www.w3.org/TR/CSS21/syndata.html#length-units>
--
Rob
Nov 23 '05 #2


Yes. Unless is a zero value

Danny
Nov 23 '05 #3
RobG wrote:
<URL:http://www.w3.org/TR/CSS21/syndata.html#length-units>


CSS 2.1 is currently a Working Draft inappropriate to cite
as reference material.

<URL:http://www.w3.org/TR/CSS2/syndata.html#length-units>
PointedEars
Nov 23 '05 #4
Thomas 'PointedEars' Lahn wrote:
RobG wrote:

<URL:http://www.w3.org/TR/CSS21/syndata.html#length-units>

CSS 2.1 is currently a Working Draft inappropriate to cite
as reference material.


Aww, come on Thomas :-)

While you are strictly correct, I don't see the harm in pointing to CSS
2.1. It is a replacement for (and a cleanup of) CSS 2 and is a "Last
Call" Working Draft, the deadline for comments was 15 July 2005. It
should become a Candidate Recommendation pretty soon, I guess once the
test suite is completed.

The W3C link to it from their CSS page rather than CSS 2.


<URL:http://www.w3.org/TR/CSS2/syndata.html#length-units>


Or:

<URL:http://www.w3.org/TR/REC-CSS2/syndata.html#length-units>


--
Rob
Nov 23 '05 #5
RobG wrote:
Thomas 'PointedEars' Lahn wrote:
RobG wrote:
<URL:http://www.w3.org/TR/CSS21/syndata.html#length-units>
CSS 2.1 is currently a Working Draft inappropriate to cite
as reference material.


Aww, come on Thomas :-)

While you are strictly correct, I don't see the harm in pointing to
CSS 2.1.


I do, if it is referred to other than as "work in progress".
It is a replacement for (and a cleanup of) CSS 2 and is a "Last Call"
Working Draft, the deadline for comments was 15 July 2005. It should
become a Candidate Recommendation pretty soon, I guess once the test
suite is completed.
As the CSS2 Errata clearly state, CSS 2.1 should be considered
only proposed errata for CSS2 if it is still a working draft.

In fact, CSS2.1 already was a CR (as of 2004-02-25, if you followed
the "Previous version" link), which also was determined by itself to
be inappropriate to cite as reference material etc. pp. At least
now you know why.
The W3C link to it from their CSS page rather than CSS 2.


Yes, sometimes they do not follow their very own standards.
<URL:http://www.w3.org/TR/CSS2/syndata.html#length-units>


Or:

<URL:http://www.w3.org/TR/REC-CSS2/syndata.html#length-units>


That is not the same thing. Once CSS 2.1 becomes a REC, it
will be probably available through the former URI reference.
PointedEars
Nov 23 '05 #6

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

Similar topics

0
by: vanGogh | last post by:
I have generated classes based on an Xml schema file (xsd) using the XSD.exe tool. My goal is to: - write an application that can parse XML documents - fill objects (based on the generated...
0
by: vanGogh | last post by:
I have generated classes based on an Xml schema file (xsd) using the XSD.exe tool. My goal is to: - write an application that can parse XML documents - fill objects (based on the generated...
20
by: weston | last post by:
I've got a piece of code where, for all the world, it looks like this fails in IE 6: hometab = document.getElementById('hometab'); but this succeeds: hometabemt =...
1
by: weston | last post by:
So, the following apparently works as a method of grafting a method onto an object (using the squarefree JS shell): obj = { x: 1, inc: null } result obj.inc = function () { this.x++ } result...
3
by: Froefel | last post by:
Hi group I am creating a web application that uses a simple DAL as an ObjectDataSource. To retrieve data from the database, I use a DataReader object from which I then assign the various fields...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.