?
Solved

HTML website text placement

Posted on 2012-03-23
4
Medium Priority
?
250 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 2000 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
Find out what you should include to make the best professional email signature for your organization.
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
Suggested Courses

777 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