Solved

HTML Error on Coding

Posted on 2012-12-27
4
447 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 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

895 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now