473,397 Members | 2,068 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,397 software developers and data experts.

Why is this not validated?

Hello,

Sometime ago I found some CSS code for a form.

It includes the following:

..Form input.CheckBox, .Form input.RadioButton
{
font: normal 100% verdana,arial,helvetica,sans-serif;
margin: 0px 2px 0px 0px;
padding: 0px;
vertical-align: text-bottom;
margin: expression("-1px -1px 0px 0px"); /* IE-Only property */
vertical-align: expression("middle"); /* IE-Only property */
}

The last lines are not validated. What is wrong?
I believe the code lines are related to correct align the CheckBox and
RadioButtons in relation to their labels.
In fact it is common to see a check box not aligned vertically with
its label.

Anyway, could someone help me in solving this?

Thanks,
Miguel
Nov 26 '07 #1
4 1552
On Nov 26, 11:27 pm, shapper <mdmo...@gmail.comwrote:
Sometime ago I found some CSS code for a form.

It includes the following:

.Form input.CheckBox, .Form input.RadioButton
{
font: normal 100% verdana,arial,helvetica,sans-serif;
margin: 0px 2px 0px 0px;
padding: 0px;
vertical-align: text-bottom;
margin: expression("-1px -1px 0px 0px"); /* IE-Only property */
vertical-align: expression("middle"); /* IE-Only property */

}

The last lines are not validated. What is wrong?
You've given the answer to your question in the CSS comments! An IE-
only property is inherently incapable of being valid against the W3C
standard; it's something designed by Microsoft to work only on their
own software.
--
AGw.
Nov 26 '07 #2
rf

"shapper" <md*****@gmail.comwrote in message
news:d3**********************************@s19g2000 prg.googlegroups.com...
Hello,

Sometime ago I found some CSS code for a form.

It includes the following:

.Form input.CheckBox, .Form input.RadioButton
{
font: normal 100% verdana,arial,helvetica,sans-serif;
margin: 0px 2px 0px 0px;
padding: 0px;
vertical-align: text-bottom;
margin: expression("-1px -1px 0px 0px"); /* IE-Only property */
vertical-align: expression("middle"); /* IE-Only property */
}

The last lines are not validated. What is wrong?
The comments say it all. They are IE only properties and are not part of the
specification. The validator validates to the specification.
Anyway, could someone help me in solving this?
Remove them? They only work in IE anyway, and even then only with javascript
turned on.

--
Richard.
Nov 26 '07 #3
On Nov 26, 11:42 pm, "rf" <r...@invalid.comwrote:
"shapper" <mdmo...@gmail.comwrote in message

news:d3**********************************@s19g2000 prg.googlegroups.com...
Hello,
Sometime ago I found some CSS code for a form.
It includes the following:
.Form input.CheckBox, .Form input.RadioButton
{
font: normal 100% verdana,arial,helvetica,sans-serif;
margin: 0px 2px 0px 0px;
padding: 0px;
vertical-align: text-bottom;
margin: expression("-1px -1px 0px 0px"); /* IE-Only property */
vertical-align: expression("middle"); /* IE-Only property */
}
The last lines are not validated. What is wrong?

The comments say it all. They are IE only properties and are not part of the
specification. The validator validates to the specification.
Anyway, could someone help me in solving this?

Remove them? They only work in IE anyway, and even then only with javascript
turned on.

--
Richard.
Ok.

I just thought there was a way to go around this.

Thanks,
Miguel
Nov 26 '07 #4
In article
<ff**********************************@d21g2000prf. googlegroups.com>,
shapper <md*****@gmail.comwrote:
On Nov 26, 11:42 pm, "rf" <r...@invalid.comwrote:
"shapper" <mdmo...@gmail.comwrote in message
[snip]
margin: expression("-1px -1px 0px 0px"); /* IE-Only property */
vertical-align: expression("middle"); /* IE-Only property */
The last lines are not validated. What is wrong?
The comments say it all. They are IE only properties and are not part of the
specification. The validator validates to the specification.
Anyway, could someone help me in solving this?
Remove them? They only work in IE anyway, and even then only with javascript
turned on.
[snip]
Ok.

I just thought there was a way to go around this.
Well, there are a couple: ignore the lack of validation, since you
already know that these are properties unique to IE, and therefore
not part of the CSS specification. Or, you could remove them and
live without them. Finally, you could add them using a conditional
comment in your html page, so that only IE is aware that they exist.
Nov 27 '07 #5

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

Similar topics

2
by: wooks | last post by:
I apologise if this has been asked before, it is a bit hard to search for. I have an xml schema which defines the elements in the namespace "urn:dummy". The schema does not contain any...
5
by: Steve Murphy | last post by:
I'd like to highlight any required fields that don't pass validation by changing their labels to red, and I prefer to do this client-side. I was hoping to do this with a CustomValidator, but the...
1
by: Owen | last post by:
Hi, I have a custom control which comprises a label and a text input box. I add one of these to my web form and call it "MyTextControl". I am trying to havea RegularExpressionValidator which...
2
by: Chris Kettenbach | last post by:
Does a control need to inherit an interface to be "validatable" :)? I have a custom control ascx file. I want to name it as the control to be validated by an asp:validator. When I do that, I get...
2
by: Agnes | last post by:
I created my own usercontrol of textbox and my base from . Every windows will inhertied this mybaseform and every textbox will use that usercontrol. Now, mybaseform got a function "public...
1
by: Simon Verona | last post by:
I'm confused! I have a usercontrol which is basically an extension of the textbox - it is hosted in the user control because there are other controls held on the usercontrol as well. I have...
3
by: sean_tor_on | last post by:
Hi all, Haven't figured out a way to validate the xml below: <root> <e1 e2="type1list_1" /> <e1 e2="type2list_1" /> .... <e1 e2="type2list_m" />
1
by: Tedmond | last post by:
Dear all, I have deployed my windows application to several user PCs with XP and Win2000. However, there is something strange that ONE of the TextBox Validated event doesn’t fire in ONE of...
4
by: VK | last post by:
Can well-formed but non-validated XHTML have extra namespaces? Say <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...

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.