472,950 Members | 2,376 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,950 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 2940
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...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...

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.