?
Solved

HTML Error on Coding

Posted on 2012-12-27
4
Medium Priority
?
458 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
  • 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 2000 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Suggested Courses

749 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