Solved

HTML Error on Coding

Posted on 2012-12-27
4
455 Views
Last Modified: 2012-12-27
Hi Everyone,

I have syntax errors in this source coding that I can't seem to find an answer to.  I have something indicated wrong in the coding.

The Coding:  <div style="background-color: #000000; filter: progid DXImageTransform.Microsoft.Alpha(opacity=40) progid: DXImageTransform.Microsoft.Blur(pixelradius=3); height: expression(this.nextSibling.offsetHeight); width:expression(this.nextSibling.offsetWidth); left: 3px; top: 3px; position: absolute; z-index: -1; "></div>
        <div id="content" style="height:100%; padding:0; margin:0; " class="Select_Institution">

The Errors:

Error      6      CSS validation: Unexpected ':' character.      C:\DOC\IMAS\Controls\InstitutionSelector.ascx      13      114      http://localhost/IMAS/
Error      7      CSS validation: 'filter' is not a valid CSS property name.      C:\DOC\IMAS\Controls\InstitutionSelector.ascx      13      48      http://localhost/IMAS/
Error      8      CSS validation: 'expression(this.nextSibling.offsetHeight)' is not a valid value for property 'height'.      C:\DOC\IMAS\Controls\InstitutionSelector.ascx      13      172      http://localhost/IMAS/
Error      9      CSS validation: 'expression(this.nextSibling.offsetWidth)' is not a valid value for property 'width'.      C:\DOC\IMAS\Controls\InstitutionSelector.ascx      13      221      http://localhost/IMAS/


Any help is appreciated.
0
Comment
Question by:jjc9809
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 75

Expert Comment

by:käµfm³d 👽
ID: 38724344
You're missing a colon after the first "progid".
0
 

Author Comment

by:jjc9809
ID: 38724371
Kaufmed,

I see that one and I corrected but getting a red squigly line under the Colon and all of them still.

I believe the error may start on the filter: part.  Not sure.  The entire line I believe has several syntax errors.
0
 
LVL 75

Accepted Solution

by:
käµfm³d   👽 earned 500 total points
ID: 38724398
Have you tried to actually run the project? The logic appears to work for me:

Screenshot
It could just be Visual Studio's CSS parser acting squirrely.

Do note:  You'll need to populate your <div> with some text in order to see it; otherwise, you'll need to manually fix the width of the <div>.
0
 

Author Comment

by:jjc9809
ID: 38724819
Kaufmed,

I do not get the errors now when I convert it from VS2005 to VS2008.  Converting from 2.0 to 3.5 framework, I do not get the errors.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question