Solved

HTML website text placement

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
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 to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
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…

831 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