Solved

HTML website text placement

Posted on 2012-03-23
4
247 Views
Last Modified: 2012-08-13
I am working on a client's website and am having problems containing some text.  The temporary website location is www.lakecountywebsites.com/bowernew .  I installed a DHTML menu in the left panel and when I try to put text below it, the text doesn't show up.  It actually flashes for a second and then dissapears.

I have tried inserting a table, a div, and a layer and it all does the same thing.
0
Comment
Question by:northernknight
[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
4 Comments
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 37759535
There are a number of errors in your page.  One of the ids is used more than once and your FORM is not allowed between a </tr> and a <tr>.  See here for more info:

http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.lakecountywebsites.com%2Fbowernew%2F
0
 
LVL 38

Expert Comment

by:Tom Beck
ID: 37759554
To put text below the menu, this would be the <td> that holds the menu. New div to hold the text below the menu is in bold:

<td width="145" valign="top" class="main" id="dmbTB1ph"><div id="dmbTBBack1" style="position: relative; overflow: hidden; z-index: 998; visibility: visible; width: 148px; height: 168px; background-image: url(&quot;http://www.lakecountywebsites.com/bowernew/menus/images/dmb_i.gif";); background-color: rgb(115, 166, 166); border: 1px groove rgb(0, 0, 0); left: -5px; top: 40px;"><div id="dmbTB1" style="position:relative;z-index:999;left:0px;top:0px;width:148px;height:170px;"><div id="N1001" style="position:

<!---A lot of html removed here for clarity-->

onclick="cFrame.execURL('http://www.lakecountywebsites.com/bowernew/coupons.html','_self');"><img width="1" height="19" style="position:absolute;top:1px;left:1px;" src="http://www.lakecountywebsites.com/bowernew/menus/images/dmb_i.gif"><div align="left" style="position:absolute;top:4px;width:130px;left:9px;">Coupons</div><img width="1" height="1" style="position:absolute;top:10px;left:146px;" src="http://www.lakecountywebsites.com/bowernew/menus/images/"></div></div></div>
<div style="position:relative;top:40px;left:-5px;background-color:#def;height:400px">Text Here</div></td>
0
 
LVL 1

Author Comment

by:northernknight
ID: 37759629
I realize there is some code that doesn't belong since the site was on another server with scripts.  I have been trying to remove the old scripts.

Tommyboy, I put the div in that you mentioned and it does the same thing.  Shows for just a second then dissapears.  Maybe I put it in the wrong place?
0
 
LVL 38

Accepted Solution

by:
Tom Beck earned 500 total points
ID: 37759765
No, you didn't put it in the wrong place. Apparently the javascript is creating all the html markup inside the <td> with id="dmbTB1ph". It must erase everything inside that <td> first, so anything you put in there gets wiped out. That's why you see it for a split second before it disappears. What I am suggesting here is to create a new table inside of the original <td id="dmbTB1ph"> so you can have a new <td> for the javascript to print the menu to. Then put a second row inside the new table for your text below the menu. Make sense? I have no way of testing this idea because the menu reloads when the page reloads. I can only simulate the markup in Firebug to verify that the layout is correct.
<td><!--THIS IS THE ORIGINAL TD WITH id="dmbTB1ph". REMOVE ALL ATTRIBUTES-->
<table cellpadding="0" cellspacing="0" border="0">
    <tr>
        <td width="145" height="128" valign="top" id="dmbTB1ph" class="main">

            <!--ALL THE DYNAMICALLY CREATED MENU CONTENT GOES HERE-->

        </td>
    </tr>
    <tr>
        <td height="400" width="145">Text Below the Menu Goes Here</td>
    </tr>
</table>
</td>

Open in new window

0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…

749 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