473,395 Members | 1,972 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,395 software developers and data experts.

Need help with 'size' error in validator

I am getting an error from the CSS validator that I don't understand. Here
is the relevant fragment of my CSS:

BODY {
size: 8.5in 11in;
color : #000000;
background-color : #ffffff;
background-repeat : repeat;
text-align : center;
font-family : "Frutiger Linotype", Trebuchet, Verdana, Arial, Helvetica,
sans-serif;
font-size : 90%;
margin : 2%;
}

And here is the error:

Line: 12 Context : BODY
Invalid number: size Property doesn't exist: 8.5in 11in

My use of the 'size' property exactly matches the example shown in the
Blooberry reference at
http://www.blooberry.com/indexdot/cs...print/size.htm so I don't
see why this won't work in my CSS.

Can anyone enlighten me on why my CSS doesn't satisfy the validator and what
I need to do to make the validator happy, short of removing the size
parameter altogether?

--
Rhino
Jan 8 '06 #1
8 1347
Rhino wrote:
BODY {
size: 8.5in 11in; My use of the 'size' property exactly matches the example shown in the
Blooberry


Try the official specification:

http://www.w3.org/TR/CSS2/page.html#propdef-size

Which shows that it applies to the page context.

@page {
size: 8.5in 11in; /* width height */
}

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Jan 8 '06 #2
"Rhino" <no***********************@nospam.com> wrote:
Line: 12 Context : BODY
Invalid number: size Property doesn't exist: 8.5in 11in
The property has been removed in CSS2.1, I assume due to lack of
implementations. Using it seems therefore futile.
Can anyone enlighten me on why my CSS doesn't satisfy the validator


Have you selected the CSS2.1 profile in the advanced options?

--
Spartanicus
Jan 8 '06 #3

"David Dorward" <do*****@yahoo.com> wrote in message
news:dp*******************@news.demon.co.uk...
Rhino wrote:
BODY {
size: 8.5in 11in;

My use of the 'size' property exactly matches the example shown in the
Blooberry


Try the official specification:

http://www.w3.org/TR/CSS2/page.html#propdef-size

Which shows that it applies to the page context.

@page {
size: 8.5in 11in; /* width height */
}

There's a typo in the official spec; it omits the colon after 'size' in its
example:

---
@page { size 8.5in 11in; margin: 2cm }
---

Is it worth notifying the Powers That Be about this typo, even if the
average reader will figure this out for himself pretty quickly? If the typo
is worth reporting, what are the appropriate channels for that?
Rhino
Jan 8 '06 #4
Rhino wrote:
Is it worth notifying the Powers That Be about this typo


The CSS working group is developing CSS 2.1. When features common to
CSS2 and CSS 2.1 are defined differently, please consider the
definition in CSS 2.1 as errata for CSS2. While CSS 2.1 is still a
Working Draft, the errata are to be considered proposed errata.

-- http://www.w3.org/Style/css2-updates...12-errata.html

And that section seems to have been rewritten in the draft of 2.1, with that
example removed entirely.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Jan 8 '06 #5
Rhino wrote:
There's a typo in the official spec; it omits the colon after 'size' in its
example:


What do you consider "the official spec"? In
<http://www.w3.org/TR/CSS2/page.html#propdef-size>, I can't find the
typo you mention.

--
Johannes Koch
Spem in alium nunquam habui praeter in te, Deus Israel.
(Thomas Tallis, 40-part motet)
Jan 8 '06 #6

"Johannes Koch" <ko**@w3development.de> wrote in message
news:43***********************@authen.yellow.readf reenews.net...
Rhino wrote:
There's a typo in the official spec; it omits the colon after 'size' in
its example:


What do you consider "the official spec"? In
<http://www.w3.org/TR/CSS2/page.html#propdef-size>, I can't find the typo
you mention.

It's very close to the end of section 13.2 and just before section 13.2.1.

Rhino
Jan 9 '06 #7

"David Dorward" <do*****@yahoo.com> wrote in message
news:dp*******************@news.demon.co.uk...
Rhino wrote:
Is it worth notifying the Powers That Be about this typo


The CSS working group is developing CSS 2.1. When features common to
CSS2 and CSS 2.1 are defined differently, please consider the
definition in CSS 2.1 as errata for CSS2. While CSS 2.1 is still a
Working Draft, the errata are to be considered proposed errata.

-- http://www.w3.org/Style/css2-updates...12-errata.html

And that section seems to have been rewritten in the draft of 2.1, with
that
example removed entirely.

I'm not quite sure why you say that example has been removed completely; I
suspect that you are not looking at the same thing I am. I was referring to
the example at the end of section 13.2, just before the 13.2.1 section. And
according to the errata you've cited, someone has already noted the error I
mentioned. So my question about notifying the authors of the document
appears to be moot.

Rhino

Jan 9 '06 #8
> "David Dorward" <do*****@yahoo.com> wrote in message
news:dp*******************@news.demon.co.uk...
The CSS working group is developing CSS 2.1. When features common to
CSS2 and CSS 2.1 are defined differently, please consider the
definition in CSS 2.1 as errata for CSS2. While CSS 2.1 is still a
Working Draft, the errata are to be considered proposed errata.

-- http://www.w3.org/Style/css2-updates...12-errata.html

And that section seems to have been rewritten in the draft of 2.1, with
that
example removed entirely.

Rhino wrote: I'm not quite sure why you say that example has been removed completely;


I think David was talking about CSS version 2.1, not CSS version 2. In
CSS 2.1, there is no size property, so there is no need for an example
using this property.
--
Johannes Koch
In te domine speravi; non confundar in aeternum.
(Te Deum, 4th cent.)
Jan 9 '06 #9

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

Similar topics

3
by: Lo?c Mah? | last post by:
Hello I try to use a Validator for a TxtCtrl placed in a Panel with a Button in order to trigger the Validator and test the content of TxtCtrl. I have looked into wxPython documentation and...
12
by: AussieTraders.com.au | last post by:
Should I use <font size=-2> or <font size=1>?? They seem to give the same results... I wish to be able to set the default font family and font size for a website and STILL SUPPORT _fluid_texts_....
7
by: Jon | last post by:
Hi, I have table text set to 85%, I may change that to em's but for now haven't If I have a table nested within the table I get font size of 85% of 85% = 72% - too small. Without...
7
by: Fabian Neumann | last post by:
Hi! I got a problem with font-family inheritance. Let's say I have CSS definitions like: p { font:normal 10pt Verdana; } strong { font:normal 14pt inherit;
8
by: fuzzyman | last post by:
I have a very odd problem that has boggled my head. I've been trying to get a 2 column layout working with CSS. The problem seems to occur with the use of the <script> tag in the document, not the...
0
by: TN Bella | last post by:
Hi, I am trying to get my compare validator to fire properly...Since I have panels the validator wouldn't work properly, the app would fire right but would insert the data regardless and the...
8
by: pmud | last post by:
Hi, I am using a compare validator in asp.net application(c# code). This Custom validator is used for comparing a value enterd by the user against the primary key in the SQL database. IF the...
1
by: Achim Domma (SyynX Solutions GmbH) | last post by:
Hi, is there a possibility to set the font size to a percent value of the "top level" font size? For example: The font size of the body might be 100% and I have a div which should have a...
27
by: 1001 Webs | last post by:
I am trying to make my style sheet as compatible as possible and I'm getting a bit confused here. I've read that the best size for font-size would be 76.1%; due to shortcomings in the way both...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
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
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...
0
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...

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.