Solved

HTML website text placement

Posted on 2012-03-23
4
248 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

695 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