FP .dwt acting bizarre (Full Version)

All Forums >> [Web Development] >> Microsoft FrontPage Help



Message


marlened -> FP .dwt acting bizarre (6/29/2008 14:42:45)

This is a strange one to me. I've a .dwt which contains the following regions and classes. When making changes to the .dwt, the associated pages update but the class id appends a additional number or alph onto the page that is being updated not in the dwt file.

CSS File-
#leftcontent {
padding: 20px 24px;

}

#leftcontenta {
padding: 20px 24px;

}

#leftcontenta1 {
padding-left:24px; padding-right:24px; padding-top:2px; padding-bottom:4px
}
#leftcontenta2 {
padding-left:24px; padding-right:24px; padding-top:2px; padding-bottom:4px

}


DWT File

<!-- #BeginEditable "lefttoptitle" -->
<div id="leftcontenta">

<h2>Top left title... </h2></div>
<!-- #EndEditable -->
<div><!--webbot bot="Include" U-Include="../index_menu2.html" TAG="BODY" --></div>
<!-- #BeginEditable "midlefttitle" -->
<div id="leftcontenta1">

<h2>Mid left title... </h2></div>
<!-- #EndEditable -->
<!-- #BeginEditable "leftmidcontent" -->
<div id="leftcontent"><p>Content here.</p>
</div>
<!-- #EndEditable -->
<!-- #BeginEditable "leftbottitle" -->
<div id="leftcontenta2">
<h3>Bottom left title...</h3></div>
<!-- #EndEditable -->
<!-- #BeginEditable "leftbotcontent" -->
<div id="leftcontent">
<p>
<img src="my.jpg" alt="" width="180" height="144"> </p>
<p>Content area</p>
</div>
<!-- #EndEditable -->


Page Example

<h2>The question... </h2></div>
<!-- #EndEditable -->
<!-- #BeginEditable "leftmidcontent" -->
<div id="leftcontent0"><p>Content here?

</p>
The above class is leftcontent. I've tried a couple of things but nothing is working. Would creating additional class ids with the same attributes and assigning them to their respective content areas stop this behavior? I've tried so many things not sure if I've tried that yet, or is this just some funky quirk of FP when a class id is used more than once on a page?





jaybee -> RE: FP .dwt acting bizarre (7/1/2008 4:36:41)

ID should only be used once per page, it's supposed to be unique. Class is for multiple use.

<h2>Mid left title... </h2></div>
<!-- #EndEditable -->
<!-- #BeginEditable "leftmidcontent" -->
<div id="leftcontent"><p>Content here.</p>
</div>
<!-- #EndEditable -->
<!-- #BeginEditable "leftbottitle" -->
<div id="leftcontenta2">
<h3>Bottom left title...</h3></div>
<!-- #EndEditable -->
<!-- #BeginEditable "leftbotcontent" -->
<div id="leftcontent">
<p>
<img src="my.jpg" alt="" width="180" height="144"> </p>
<p>Content area</p> 




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
5.859375E-02