Solved

HTML website text placement

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Showing your events from Google Calendar in Google Maps Why? I travel all week and I thought it would be ideal if staff in office knew where I was based on my calendar. (OK real reason: my son wanted to see where I would be working, and I thoug…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

911 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

Need Help in Real-Time?

Connect with top rated Experts

27 Experts available now in Live!

Get 1:1 Help Now