Solved

Invalid tag? Dreamweaver keeps overwritting!

Posted on 2004-03-27
3
240 Views
Last Modified: 2010-04-06
This problem consists of html / css / and javascript.

I have been playing with a  script for a navigational menu found at dynamic drive ( http://www.dynamicdrive.com/dynamicindex1/navigate1.htm ).

The problem is that dreamweaver insists the below tag is invalid ( the tag is in the script ).

<ul id="foldinglist" style="display:none" style=&{head};>
When i save the page - dreamweaver changes the tag to this.

<ul id="foldinglist" style="display:none">
I know there is a way to stop dreamweaver doing this but i would like to keep the clean up html default option when saving files for other reasons. So...
Can anyone tell me what is wrong with <ul id="foldinglist" style="display:none" style=&{head};> ?

Because dreamweaver changes the code - the result is that the script does not work properly in some browsers. In none compliant browsers the menu should display as a normal bullet list - without the style=&{head};> some browsers do not do this.

Is there a work around for this so that i dont have to turn off the automatic invalid code feature in dreamweaver?

0
Comment
Question by:1Host
3 Comments
 
LVL 6

Accepted Solution

by:
Reapz earned 500 total points
Comment Utility
Remove style="display:none" the error is because the code is duplicating the styles. At least that's what Dreamweaver told me. :)

If you take all occurences of that out then the script works fine and everything appears as it should.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
XSLT 5 36
Menu Trouble 8 30
web site using  mysql   , html,  php to create a unique number for each form 15 100
Problem to run file 9 90
Preface This article introduces an authentication and authorization system for a website.  It is understood by the author and the project contributors that there is no such thing as a "one size fits all" system.  That being said, there is a certa…
There are two main kinds of selectors in CSS: One is base selector like h1, h2, body, table or any existing HTML tags.  For instance, the following rule sets all paragraphs (<p> elements) to red: (CODE) CSS also allows us to define our own custom …
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

762 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

11 Experts available now in Live!

Get 1:1 Help Now