Help - Search - Members - Calendar
Full Version: Dreamweaver Ssi
Zymic Webmaster Forums > Web Design & Development > General Web Design Discussion
aussiemcgr
First off, if you're just going to say how much you hate Dreamweaver and give no actual help, dont even bother posting. It is very annoying trying to get help while someone just keeps telling me how much they hate Dreamweaver.

I'm trying to import some SSI to my site for the navigation bar. When I do, I get some sort of message from Dreamweaver saying something about unnecessary tags or something. This is the part of the code where Dreamweaver is indicating a problem:
CODE
<div id="wrapper">

<img src="images/header.jpg" alt="header">

    <div class="topbar">
        <br />
        <br />
        <br />
        </div>
    <div class="topbar_bottom"></div>
    
    
    <div id="menu_container">
    
        <div class="menu"><?php include('leftnav.php') ?></div>
            
    <div class="menu_bottom"></div>
    
        </div>
...
</div>


The dreamweaver message is saying:
QUOTE
Marked Invalid because it's an overlapping or enclosed tag.
If the display looks correct, it is safe to delete these tags.


Naturally, if the display looked correct, I wouldnt even bring this up. When that code is in, the display view gets rid of everything but the SSI. I have no clue where to go with this. Any thoughts?
flyboy
Yo have 3 break tags directly inside a div . Therefor it will conflict with that element.

CODE

<div class="topbar">
<br />
<br />
<br />
</div>


If you need breaks in you code it should never be witin a div span or any other tag. Usually i use css to define the layout but if you wish to use line breaks then simple add the tree line breaks as <br /> or <br></br> after the </div (ending div of top bar)


Aslo you need to close the img tags ie have /> as shown below if you want it to validate.

CODE
<img src="images/header.jpg" alt="header" />


Hope this helps.
aussiemcgr
QUOTE(flyboy @ Oct 26 2008, 04:45 PM) *
Yo have 3 break tags directly inside a div . Therefor it will conflict with that element.

CODE

<div class="topbar">
<br />
<br />
<br />
</div>


If you need breaks in you code it should never be witin a div span or any other tag. Usually i use css to define the layout but if you wish to use line breaks then simple add the tree line breaks as <br /> or <br></br> after the </div (ending div of top bar)
Aslo you need to close the img tags ie have /> as shown below if you want it to validate.

CODE
<img src="images/header.jpg" alt="header" />


Hope this helps.


Those actually came from the template I downloaded. They dont seem to effect anything when I use my flash menu.
Liqfan
Then it is a not good coded template biggrin.gif

The rest seems ok, flyboy pointed the errors out.
aussiemcgr
Absolutely no difference. I made the indicated changes but it didnt change a thing.
Andrew
You should show the new code. And maybe (yes because I hate dreamweaver) it doesn't understand PHP includes.

By the way SSI includes and PHP includes are seperate things.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.