473,396 Members | 1,838 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,396 software developers and data experts.

input tag within table/td border missing right border

14
How do I get IE and Mozilla to show the right border for an input tag.
for the following table
Everything looks great until I add the doctype tag.
I can get IE to work by adding the following.

table.resizable td{
overflow: hidden;
padding-right:6px.
}

This does not seem to work for Mozilla.
Any help would be greatly appreciated.

Steve
[HTML]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML>
<HEAD>
<TITLE>css demo</TITLE>
<style type="text/css">

table.resizable{
table-layout:fixed;
}

table.resizable th{
text-align:left;
overflow: hidden;
}

table.resizable td{
overflow: hidden;
}

table.resizable input{
width:100%;
}

table.resizable textarea{
width:100%;
}


</style>

</HEAD>
<BODY>

<TABLE border="1" class="resizable">
<THEAD>
<TR>
<TH width="50px">name</TH>
<TH style="width:60px">input</TH>
</TR>
</THEAD>
<TBODY>
<TR>
<TD>name</TD>
<TD><input type="text" value="this is a very long text string, this is a very long text string"></TD>
</TR>

<TR>
<TD>name</TD>
<TD><input type="text" value="this is a very long text string, this is a very long text string"></TD>
</TR>

<TR>
<TD>name</TD>
<TD><input type="text" value="this is a very long text string, this is a very long text string"></TD>
</TR>

<TR>
<TD>name</TD>
<TD><input type="text" value="this is a very long text string, this is a very long text string"></TD>
</TR>
</TBODY>
</TABLE>
</BODY>
</HTML>
[/HTML]
Nov 22 '07 #1
2 2956
drhowarddrfine
7,435 Expert 4TB
Everything looks great until I add the doctype tag.
Of course. You changed the rules. The doctype is the definition of the tags and elements. Without one, the browser gets to choose what to do. With a doctype, you follow the standard rules, which are different. IE, specifically, does a horrible job of following the standard and, without a doctype, goes into what is called "quirks mode".

When I sit down to write a web page, the very first thing I do is enter the doctype. Nay, I have a template with a strict doctype already there for me. It is the very first thing EVERY page is REQUIRED to have before you do ANYTHING.

Now I'll look at your page.
Nov 22 '07 #2
drhowarddrfine
7,435 Expert 4TB
Something to add. There is NO need for a new web page to use a transitional doctype. The only thing I can think of is if you are from 1998 and just woke from a deep sleep and don't know how to write 2007 markup. Always use a strict doctype.

I don't see any difference between IE and Firefox with the markup you've given.
Nov 22 '07 #3

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

Similar topics

7
by: Mary Ellen Curtin | last post by:
The client wants the page to have both a left border (purple) and a right border (green). Is there any way to stretch a background image to fit the viewport? Or should I divide the background...
7
by: Marek Mänd | last post by:
When using <TABLE rules="all"> Mozilla 1.6 and previous versions draw a nasty interiour border, which doesnt go away though I have on TD's css border:none set. Is it something wrong with my...
7
by: bazubwabo | last post by:
hi everybody, by creating my employee table ,i've gotten a missing right parenthesis error but i don't know why.Could please help me to find out the error. SQL> CREATE TABLE EMPLOYEE 2 ...
2
by: nino9stars | last post by:
Hello, I have just started messing with absolute positioning on webpages, and it definitely let's you do some creative things. Well, after much searching and help, I got the images I was using...
2
by: keokepa | last post by:
hi, i got this missing right parenthesis error while trying to create a table and i'm not too sure where i went wrong could someone point out my mistakes? this is what i had typed into Oracle...
2
by: arjenkeijman | last post by:
Hello everybody, Im trying to run a sql-script, but every time I runs it, I get the following errormessage. "mountain_range_ID INTEGER GENERATED ALWAYS AS IDENTITY *...
1
karlectomy
by: karlectomy | last post by:
Hi all, I'm trying to run this table creation script but I run into the ORA-00907 error: missing right parenthesis. Perhaps someone might know where I am going wrong? CREATE TABLE...
2
by: Stephan Ivaylov | last post by:
Hi guys, this is my code: <body> <div id="main"> <span>Please enter your name and password below</span> <form id="form_no1"> <span...
1
by: edbtzy | last post by:
I am trying to complete a project but i keep getting "missing right parenthesis" error when i try to create a table: CREATE TABLE SKILLS ( SkillsID Char(4) NOT NULL, ConsultantID Char(4) NOT...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.