?
Solved

HTML Error on Coding

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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses

764 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