473,325 Members | 2,785 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

Why won't my text area stay in the table? (its floating over the table)

Hello.
I am trying to place a text area into my table, with a scrolling side bar, and I have everything perfect, EXEPT:

The text area will float around the page, not stay inside the table!
Any help?

<!--
.mytext {
width:300px;
height:300px;
position:absolute;
overflow: auto;
background-color:#FFFFFF;
<!--

and then in my body:

<table width="927" height="430">
<tr>
<td width="387">&nbsp;</td>
<td width="516">
<div class="mytext">
<p align="left" class="style34"><strong>From the North via Route




You get the picture...
Please Let me know whats wrong here.
Jan 3 '07 #1
4 2886
iam_clint
1,208 Expert 1GB
position:absolute;

change to

position:relative;
Jan 3 '07 #2
Hello.
I am trying to place a text area into my table, with a scrolling side bar, and I have everything perfect, EXEPT:

The text area will float around the page, not stay inside the table!
Any help?

<!--
.mytext {
width:300px;
height:300px;
position:absolute;
overflow: auto;
background-color:#FFFFFF;
<!--

and then in my body:

<table width="927" height="430">
<tr>
<td width="387">&nbsp;</td>
<td width="516">
<div class="mytext">
<p align="left" class="style34"><strong>From the North via Route




You get the picture...
Please Let me know whats wrong here.
check the css for the class on the paragraph "style34". this problem is caused in FF when an element is set to "position:absolute" and then the width of that item exceeds the encapsulating item. It should be a simple fix and you do not need to remove position:absolute.

hope this helps
Jan 6 '07 #3
drhowarddrfine
7,435 Expert 4TB
No I only get half the picture. If you want better help you must supply a link or the complete code.

Absolutely positioned elements are removed from the normal flow so this could be the problem. But using tables for layout is a bigger one. And trying to use positioning elements in a table is worse.
Jan 6 '07 #4
iam_clint
1,208 Expert 1GB
No I only get half the picture. If you want better help you must supply a link or the complete code.

Absolutely positioned elements are removed from the normal flow so this could be the problem. But using tables for layout is a bigger one. And trying to use positioning elements in a table is worse.
thats why they have position: relative; like I posted above.
Jan 8 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Colin Thomas | last post by:
Hey, I am having an issue where I need to display preformatted text (already has the <pre> tag) within a area that I designate with stylesheets. How can I get the area specified in a css class...
5
by: Harry | last post by:
CSS Description: Table contains a column of td cells with links. Achieved: 1. Entire link cells highlight when hovered. 2. The entire area of these cells are clickable. Problem:
7
by: Razzbar | last post by:
I have a textarea and some buttons. The buttons apply functions to the text the user selects, i.e. the good old "wrap with a tag" thing we all have seen in 100 different editors. Trouble is,...
5
by: Michael Hill | last post by:
Hi, folks. I am writing a Javascript program that accepts (x, y) data pairs from a text box and then analyzes that data in various ways. This is my first time using text area boxes; in the past,...
3
by: RN | last post by:
I have a table cell in which I add a few things, but I want a few HTML line breaks (the <BR> tag) to separate these things. Sounds simple but I can't get it to work. Dim litBR as New Literal...
0
by: clintonG | last post by:
The Wizard is on Step5 and some TextBox validation in Step5 has to be done on the server so I've been thinking I need to use the OnActiveStepChanged event. This server-side validation has to be...
17
by: NYXX | last post by:
I wanna know how its possible to clone this website. www.writesomething.net I just want the actual programming code and files. I'm going to ceate a fully interactive website for users to input...
1
by: littlealex | last post by:
IE6 not displaying text correctly - IE 7 & Firefox 3 are fine! Need some help with this as fairly new to CSS! In IE6 the text for the following page doesn't display properly - rather than being...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.