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

Netscape positioning problems

Hi,

Can anyone tell me how do I position controls within
Netscape without using tables? Consider the following:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
Transitional//EN">
<HTML>
<HEAD>
<style>
.myDiv { display:inline; width:100px; }
</style>
</HEAD>
<body>
<table>
<tr>
<td><div class="myDiv">Text:</div>
<input size="40" type="text"></td>
</tr>
<tr>
<td>Something else</td>
</tr>
<tr>
<td>
<div class="myDiv">Another Text:</div>
<input size="40" type="text">
</td>
</tr>
<tr>
<td>Finish table</td>
</tr>
</table>
</body>
</HTML>

My textBoxes are perfectly aligned in IE, but under
Netscape width attribute is just ingored.

Any help is much appreciated.
Nov 18 '05 #1
5 1053
It might be better to ask this question in a Netscape specific newsgroup.

"Sergey Poberezovskiy" <an*******@discussions.microsoft.com> wrote in
message news:18*****************************@phx.gbl...
Hi,

Can anyone tell me how do I position controls within
Netscape without using tables? Consider the following:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
Transitional//EN">
<HTML>
<HEAD>
<style>
.myDiv { display:inline; width:100px; }
</style>
</HEAD>
<body>
<table>
<tr>
<td><div class="myDiv">Text:</div>
<input size="40" type="text"></td>
</tr>
<tr>
<td>Something else</td>
</tr>
<tr>
<td>
<div class="myDiv">Another Text:</div>
<input size="40" type="text">
</td>
</tr>
<tr>
<td>Finish table</td>
</tr>
</table>
</body>
</HTML>

My textBoxes are perfectly aligned in IE, but under
Netscape width attribute is just ingored.

Any help is much appreciated.

Nov 18 '05 #2
Quoted from design notes for "width" property in CSS:

Note in Netscape 4.0+:

This property does not work (properly) with inline elements, form
fields, images, and definition lists

You see that inline elements is not supported ,so you should probably use
the "table" solution.

"Sergey Poberezovskiy" <an*******@discussions.microsoft.com> ???
news:18*****************************@phx.gbl ???...
Hi,

Can anyone tell me how do I position controls within
Netscape without using tables? Consider the following:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
Transitional//EN">
<HTML>
<HEAD>
<style>
.myDiv { display:inline; width:100px; }
</style>
</HEAD>
<body>
<table>
<tr>
<td><div class="myDiv">Text:</div>
<input size="40" type="text"></td>
</tr>
<tr>
<td>Something else</td>
</tr>
<tr>
<td>
<div class="myDiv">Another Text:</div>
<input size="40" type="text">
</td>
</tr>
<tr>
<td>Finish table</td>
</tr>
</table>
</body>
</HTML>

My textBoxes are perfectly aligned in IE, but under
Netscape width attribute is just ingored.

Any help is much appreciated.

Nov 18 '05 #3
To get netscape to recognise the width, apply css width to the textboxes
themselves, too. So if your textboxes were class="myDiv", they'd be 100px
wide.

-John

"Sergey Poberezovskiy" <an*******@discussions.microsoft.com> wrote in
message news:18*****************************@phx.gbl...
Hi,

Can anyone tell me how do I position controls within
Netscape without using tables? Consider the following:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
Transitional//EN">
<HTML>
<HEAD>
<style>
.myDiv { display:inline; width:100px; }
</style>
</HEAD>
<body>
<table>
<tr>
<td><div class="myDiv">Text:</div>
<input size="40" type="text"></td>
</tr>
<tr>
<td>Something else</td>
</tr>
<tr>
<td>
<div class="myDiv">Another Text:</div>
<input size="40" type="text">
</td>
</tr>
<tr>
<td>Finish table</td>
</tr>
</table>
</body>
</HTML>

My textBoxes are perfectly aligned in IE, but under
Netscape width attribute is just ingored.

Any help is much appreciated.

Nov 18 '05 #4
I think what the origional poster wants is something like to place tabstops
after the "field labels".

"John" <jc*****************@hotmail.com> ¦b¶l¥ó
news:0t******************@news-server.bigpond.net.au ¤¤¼¶¼g...
To get netscape to recognise the width, apply css width to the textboxes
themselves, too. So if your textboxes were class="myDiv", they'd be 100px
wide.

-John

"Sergey Poberezovskiy" <an*******@discussions.microsoft.com> wrote in
message news:18*****************************@phx.gbl...
Hi,

Can anyone tell me how do I position controls within
Netscape without using tables? Consider the following:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
Transitional//EN">
<HTML>
<HEAD>
<style>
.myDiv { display:inline; width:100px; }
</style>
</HEAD>
<body>
<table>
<tr>
<td><div class="myDiv">Text:</div>
<input size="40" type="text"></td>
</tr>
<tr>
<td>Something else</td>
</tr>
<tr>
<td>
<div class="myDiv">Another Text:</div>
<input size="40" type="text">
</td>
</tr>
<tr>
<td>Finish table</td>
</tr>
</table>
</body>
</HTML>

My textBoxes are perfectly aligned in IE, but under
Netscape width attribute is just ingored.

Any help is much appreciated.


Nov 18 '05 #5
Aha - gotcha! I'll have to put my reading glasses on and my brain in, next
time. ;p

-John

"Lau Lei Cheong" <la****@yahoo.com.hk> wrote in message
news:eU**************@tk2msftngp13.phx.gbl...
I think what the origional poster wants is something like to place tabstops after the "field labels".

Nov 18 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: crjr | last post by:
I'm having trouble with positioning in Netscape 7.02. It looks the way I want it to in IE 6, Opera and iRider, but in Netscape and Mozilla, the MENU drops way too low. Also, in Netscape the...
6
by: Nicolai P. Zwar | last post by:
Hi there, everybody. This here is a sample page of what appears to be a Netscape/Mozilla positioning problem. I posted a the problematic code down at the bottom of this message, and you can see...
16
by: Ben | last post by:
I have a page (www.eastex.net/ben/NewETN/index3.asp) that displays OK in IE, but not in Netscape. I used a combination of padding-top and height attributes to get a total height on four cells. ...
16
by: Jonas Smithson | last post by:
I'm going to say something now that may seem to completely contradict a previous post of mine, in which I basically said that taking a "who cares" attitude about certain browsers (because of their...
1
by: JKenyon | last post by:
I am attempting to display two images on a web page. The second "image" is actually two images, one overlaid on the other. The first one is aligned on the left using float:left. I have enclosed...
7
by: lawrence | last post by:
I'm not sure if this is a style sheet issue or a Javascript issue. I'm trying to work out a new design for my software's control panel. The idea is that there are images on the left that you...
9
by: Frances Del Rio | last post by:
I have a pg with lots of divs, one of them is a gray bar about 150px down from the top and 20px from the left... this bar (an image) is 767px wide and 1px high.. however, even though all divs are...
2
by: johnmr | last post by:
I'm having a strange problem with firefox and Netscape not positioning something correctly. Here is the page: http://www.artntech.com/sample/index3.html This seems to work fine in IE, but the...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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,...

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.