473,770 Members | 4,029 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

almost CSS compliant...

I have 2 pages on a site that will not validate as XHTML 2/CSS 2. They are
http://www.ccmeonline.org/email.html and
http://www.ccmeonline.org/pastpres.html. All the other pages validate
without problem. The validator seems to have an issue with me using the same
box multiple times on the same page.
This is what error it gives me, one for each instance of the box:

Line 71, column 9: ID "box" already defined (explain...).

<div id="box">1974-1975 Mansel Shinerls</div>
^
Line 70, column 9: ID "box" first defined here (explain...).

<div id="box">1972-1974 John Harmes</div>

Any ideas how to fix this to satisfy the validator?

On the president page it would not be a big issue to do the names as a list
instead, but on the email page I need some way to move boxes around when job
positions change.

Also, for some reason Opera 7.05 adds a bunch of space at the bottom of
http://www.ccmeonline.org/pastpres.html. Any idea why?

Also, how does the site look in other browsers? I have IE6, NN7.1 and Opera
6.06/7.1 on my machine.
Jul 20 '05 #1
8 1871

"Larry" <ld************ **@echoesineter nity.com> wrote in message
news:gb******** ************@gi ganews.com...
| I have 2 pages on a site that will not validate as XHTML 2/CSS
2. They are
| http://www.ccmeonline.org/email.html and
| http://www.ccmeonline.org/pastpres.html. All the other pages
validate
| without problem. The validator seems to have an issue with me
using the same
| box multiple times on the same page.
| This is what error it gives me, one for each instance of the
box:
|
| Line 71, column 9: ID "box" already defined (explain...).
|
| <div id="box">1974-1975 Mansel Shinerls</div>
| ^
| Line 70, column 9: ID "box" first defined here (explain...).
|
| <div id="box">1972-1974 John Harmes</div>
|
| Any ideas how to fix this to satisfy the validator?
|
| On the president page it would not be a big issue to do the
names as a list
| instead, but on the email page I need some way to move boxes
around when job
| positions change.
|
| Also, for some reason Opera 7.05 adds a bunch of space at the
bottom of
| http://www.ccmeonline.org/pastpres.html. Any idea why?
|
| Also, how does the site look in other browsers? I have IE6,
NN7.1 and Opera
| 6.06/7.1 on my machine.
|

My understanding is that "id" is to be used for a unique item, so
I'd say to change it to a class identifier.

When I looked at the pastpres.htm page in IE 6 and Opera 7.23 the
space at the bottom was nearly identical.

hth
--
Chet
ng******@NOchar terSPAM.net (remove NO.....SPAM)
Jul 20 '05 #2
Chet is right on the ID's.

I use Opera 7.23 and I see the space.
Try to isolate the problem and i will be glad to take look at it.
The file is too complex to see it immidiatly.
"Chet" <ng******@NOcha rterSPAM.net> wrote in message
news:10******** *****@corp.supe rnews.com...

"Larry" <ld************ **@echoesineter nity.com> wrote in message
news:gb******** ************@gi ganews.com...
| I have 2 pages on a site that will not validate as XHTML 2/CSS
2. They are
| http://www.ccmeonline.org/email.html and
| http://www.ccmeonline.org/pastpres.html. All the other pages
validate
| without problem. The validator seems to have an issue with me
using the same
| box multiple times on the same page.
| This is what error it gives me, one for each instance of the
box:
|
| Line 71, column 9: ID "box" already defined (explain...).
|
| <div id="box">1974-1975 Mansel Shinerls</div>
| ^
| Line 70, column 9: ID "box" first defined here (explain...).
|
| <div id="box">1972-1974 John Harmes</div>
|
| Any ideas how to fix this to satisfy the validator?
|
| On the president page it would not be a big issue to do the
names as a list
| instead, but on the email page I need some way to move boxes
around when job
| positions change.
|
| Also, for some reason Opera 7.05 adds a bunch of space at the
bottom of
| http://www.ccmeonline.org/pastpres.html. Any idea why?
|
| Also, how does the site look in other browsers? I have IE6,
NN7.1 and Opera
| 6.06/7.1 on my machine.
|

My understanding is that "id" is to be used for a unique item, so
I'd say to change it to a class identifier.

When I looked at the pastpres.htm page in IE 6 and Opera 7.23 the
space at the bottom was nearly identical.

hth
--
Chet
ng******@NOchar terSPAM.net (remove NO.....SPAM)

Jul 20 '05 #3
Quoth the raven named Larry:
I have 2 pages on a site that will not validate as XHTML 2/CSS 2. They are
Your doctype says XHTML 1.0 Transitional. If this is a new document,
why not go for Strict?
http://www.ccmeonline.org/email.html and
http://www.ccmeonline.org/pastpres.html. All the other pages validate
without problem. The validator seems to have an issue with me using the same
box multiple times on the same page.
The issue is "id" can only be used once per page. Use "class" if you
want the style multiple times.
<snip errors>
On the president page it would not be a big issue to do the names as a list
instead, but on the email page I need some way to move boxes around when job
positions change.
The prespage is definitely a list. <ul><li>
Also, for some reason Opera 7.05 adds a bunch of space at the bottom of
http://www.ccmeonline.org/pastpres.html. Any idea why?
Probably can't say until you fix all the errors. A guess might be the
seemingly unnecessary <br clear="all" /> down there. AFAIK, clear can
only be left, right, or both. Not "all".
Also, how does the site look in other browsers? I have IE6, NN7.1 and Opera
6.06/7.1 on my machine.


I'm not a designer, so I'll pass.

--
-bts
-This space intentionally left blank.
Jul 20 '05 #4
Quoth the raven named Chet:
When I looked at the pastpres.htm page in IE 6 and Opera 7.23 the
space at the bottom was nearly identical.


On my PC, in Win2K IE6, "2004-2005 Ed McKenney" and the bottom of the
div is quite close to the bottom of the page, just above the
copyright. Same in Firebird.

In Opera 7.23, there is a whole viewport's worth of empty white space
between last name and bottom of div.

--
-bts
-This space intentionally left blank.
Jul 20 '05 #5
Thanks, I changed the id to class and the page now validates as strict. I
will change the president page to a list when I get the chance. I removed
the <br clear="all" /> but Opera 7.05 still has a large space at the bottom.
"Beauregard T. Shagnasty" <a.*********@ex ample.invalid> wrote in message
news:vQ******** ***********@twi ster.nyroc.rr.c om...
Quoth the raven named Larry:
I have 2 pages on a site that will not validate as XHTML 2/CSS 2. They are

Your doctype says XHTML 1.0 Transitional. If this is a new document,
why not go for Strict?
http://www.ccmeonline.org/email.html and
http://www.ccmeonline.org/pastpres.html. All the other pages validate
without problem. The validator seems to have an issue with me using the

same box multiple times on the same page.


The issue is "id" can only be used once per page. Use "class" if you
want the style multiple times.
<snip errors>
On the president page it would not be a big issue to do the names as a list instead, but on the email page I need some way to move boxes around when job positions change.


The prespage is definitely a list. <ul><li>
Also, for some reason Opera 7.05 adds a bunch of space at the bottom of
http://www.ccmeonline.org/pastpres.html. Any idea why?


Probably can't say until you fix all the errors. A guess might be the
seemingly unnecessary <br clear="all" /> down there. AFAIK, clear can
only be left, right, or both. Not "all".
Also, how does the site look in other browsers? I have IE6, NN7.1 and Opera 6.06/7.1 on my machine.


I'm not a designer, so I'll pass.

--
-bts
-This space intentionally left blank.

Jul 20 '05 #6
It seems "Larry" wrote in
comp.infosystem s.www.authoring.stylesheets:
Line 71, column 9: ID "box" already defined (explain...).
<div id="box">1974-1975 Mansel Shinerls</div>
Line 70, column 9: ID "box" first defined here (explain...).
<div id="box">1972-1974 John Harmes</div>

Any ideas how to fix this to satisfy the validator?


Yes -- don't use the same ID for two different elements.

This is not a stylesheet issue; is there a reason you posted it here
instead of an HTML group?

--
Stan Brown, Oak Road Systems, Cortland County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
2.1 changes: http://www.w3.org/TR/CSS21/changes.html
validator: http://jigsaw.w3.org/css-validator/
Jul 20 '05 #7
What do mean it is not a stylesheet issue? If I erroneously use ID instead
of class then that is a style sheet issue.
Anyway, I fixed the problem.

"Stan Brown" <th************ @fastmail.fm> wrote in message
news:MP******** *************** *@news.odyssey. net...
It seems "Larry" wrote in
comp.infosystem s.www.authoring.stylesheets:
Line 71, column 9: ID "box" already defined (explain...).
<div id="box">1974-1975 Mansel Shinerls</div>
Line 70, column 9: ID "box" first defined here (explain...).
<div id="box">1972-1974 John Harmes</div>

Any ideas how to fix this to satisfy the validator?


Yes -- don't use the same ID for two different elements.

This is not a stylesheet issue; is there a reason you posted it here
instead of an HTML group?

--
Stan Brown, Oak Road Systems, Cortland County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
2.1 changes: http://www.w3.org/TR/CSS21/changes.html
validator: http://jigsaw.w3.org/css-validator/

Jul 20 '05 #8
It seems "Larry" wrote in
comp.infosystem s.www.authoring.stylesheets:
What do mean it is not a stylesheet issue? If I erroneously use ID instead
of class then that is a style sheet issue.
Neither id nor class is a CSS keyword: they are both HTML keywords.
In addition you had errors from your HTML validator, not your CSS
validator.
Anyway, I fixed the problem.


That's nice.

For the future, please don't post upside down.

makes it harder to follow discussions.
before the material you're commenting on, it
When you put your comments

http://oakroadsystems.com/genl/unice.htm#upside

--
Stan Brown, Oak Road Systems, Cortland County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
2.1 changes: http://www.w3.org/TR/CSS21/changes.html
validator: http://jigsaw.w3.org/css-validator/
Jul 20 '05 #9

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

Similar topics

6
413
by: Edward Diener | last post by:
Does anyone know the correct naming conventions for CLS compliant code ? The doc points to a really obscure and difficult to digest document on the web about Unicode names, and I am looking for simpler rules that tell me what names are CLS compliant. Here are some simple questions: 1) Can a CLS compliant name start with an underscore ? 2) Is there a limit to the length of a CLS complaint name ? With a full namespace name ?
1
3921
by: Pieter | last post by:
Hi, I have this Warning for several forms when using the DockPanel Suite of Weifen Luo in VS.NET 2005. I read a lot about this CLS-compliant stuff, but I don't now how to chech actually which part of the class is not CSL-compliant? Any body knows what to look for? I just want to get rid of these warnings :-) Thanks a lot in advance,
5
1688
by: fm | last post by:
We would like to consider using ASP.NET for our portal development. A requirement is that the pages are 508 compliant. http://www.section508.gov/index.cfm?FuseAction=Content&ID=3 All I have been able to find on the net is a KB article that says a framework rollup now has the grid producing 508 compliant HTML. http://support.microsoft.com/default.aspx?scid=kb;en-us;823030 I also found a blog that says VS2005 will produce 508 compliant...
2
2836
by: Rob R. Ainscough | last post by:
When I use the DataSet wizard to create an .xsd I get a "...is not CLS-compliant" warning -- now this is code generated by VS 2005 (aka Microsoft) -- why would it generate none compliant code?? Do I care about CLS compliant code? Rob.
10
6175
by: moondaddy | last post by:
I converted a vb.1.1 web service project to 2.0 and .net 2.0 created / replace some datasets. The code it automatiacly generated gets a warning message as follows: Warning 150 Name '_ClassColumn' is not CLS-compliant. C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\wsvipn2006\4b065968\dadaeae0\Sources_App_Code\wsvipn2006.dsuser.xsd.8a6308fa.vb 2606 38 http://localhost/wsVIPN2006/ I'm trying to go through all my...
12
2464
by: nicdude | last post by:
There is a Comeau C++ compiler special offer at http://www.comeaucomputing.com Is it really as compliant as it seems to imply? In terms of Standard C++, what is it missing? Can it handle templates well?
1
12919
by: Slindee | last post by:
I am getting a warning message: Type of parameter 'nodParent' is not CLS-compliant on the following statement. Anything I can do to satisfy the warning? Public Sub LoadDirectoryNodes(ByVal directoryName As String, _ ByVal nodParent As Crownwood.DotNetMagic.Controls.Node)
1
6054
by: e_man_online | last post by:
Hi, I get the following warning when building a VB .NET 2.0 project: "Type of member 'CrystalReportViewer1' is not CLS-compliant" What can I do to make the class CrystalReportViewer CLS compliant? Why is this class not compliant? Your help with this will be greatly appreciated.
3
29604
by: Glenn Palomar | last post by:
Hi, I just migrated my application to VS2005 and I get 2 warnings saying: "Type of parameter 'app' is not CLS-compliant." "Return type of function 'AppInventor' is not CLS-compliant." Can anyone help me understand what these warning errors mean and how to fix?
15
4356
by: Zhang Weiwu | last post by:
http://www.w3.org/MarkUp/2004/xhtml-faq provided a trick to serve xhtml webpage to IE as application/xml I used that trick and now every one of my xhtml webpage have following first 4 starting lines: <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/xsl" href="curseIE.xsl"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml">
0
9439
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10237
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9882
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8905
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7431
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5326
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3987
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
2
3589
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2832
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.