Solved

HTML Error on Coding

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

Expert Comment

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

Author Comment

by:jjc9809
Comment Utility
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 74

Accepted Solution

by:
käµfm³d   👽 earned 500 total points
Comment Utility
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
Comment Utility
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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
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 …
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

743 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

17 Experts available now in Live!

Get 1:1 Help Now