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">T ext:</div>
<input size="40" type="text"></td>
</tr>
<tr>
<td>Something else</td>
</tr>
<tr>
<td>
<div class="myDiv">A nother 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. 5 1072
It might be better to ask this question in a Netscape specific newsgroup.
"Sergey Poberezovskiy" <an*******@disc ussions.microso ft.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">T ext:</div> <input size="40" type="text"></td> </tr> <tr> <td>Something else</td> </tr> <tr> <td> <div class="myDiv">A nother 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.
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*******@disc ussions.microso ft.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">T ext:</div> <input size="40" type="text"></td> </tr> <tr> <td>Something else</td> </tr> <tr> <td> <div class="myDiv">A nother 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.
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*******@disc ussions.microso ft.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">T ext:</div> <input size="40" type="text"></td> </tr> <tr> <td>Something else</td> </tr> <tr> <td> <div class="myDiv">A nother 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.
I think what the origional poster wants is something like to place tabstops
after the "field labels".
"John" <jc************ *****@hotmail.c om> ¦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*******@disc ussions.microso ft.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">T ext:</div> <input size="40" type="text"></td> </tr> <tr> <td>Something else</td> </tr> <tr> <td> <div class="myDiv">A nother 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.
Aha - gotcha! I'll have to put my reading glasses on and my brain in, next
time. ;p
-John
"Lau Lei Cheong" <la****@yahoo.c om.hk> wrote in message
news:eU******** ******@tk2msftn gp13.phx.gbl... I think what the origional poster wants is something like to place
tabstops after the "field labels". This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 background image (a logo at the
top of the page) is getting covered up by the #main content.
Any help would be greatly appreciated.
Here's the URLs to both the page and the CSS file.
http://www.flashsongs.com/EPOXYFILMS_COM/index.html...
|
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 it in action right here:
http://www.nicolaizwar.com/whatsthematterwiththis.html
The red box on the page is supposed to be in a "fixed" position, though
the problem occurs when the position is supposed to be "absolute" as
well. Now IE ignores...
|
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. Netscape seems to not
respect the padding-top, and only goes by the height, resulting in the cells
being too short.
What options do I have in CSS? I would like to be able to specify the
height by using a definite attribute (I thought height was...
|
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 non-standard
CSS rendering) makes no sense.
Well, you have to draw the line *somewhere*... and contradictory or
not, I've decided that I've suffered with Netscape 4 for long enough.
Coding workarounds for its brain-dead CSS rendering has...
|
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 the next
two images in a <DIV> tag with float: right in order to force the
containing content to be aligned on the right. I also set
position:relative so that any absolute positioning within the <DIV>
will be relative to the itself.
The...
| |
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 click and that
as you do, DIVs with option links appear and disappear on the right.
Because I want each of the DIVS to appear in the same place, I use
Javascript to set their padding and their height to 0px when they are
invisible. This is working...
|
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 positioned
consistently in IE and Netscape, in Netscape (7.1) the bar div ONLY is
about 10px ABOVE where it should be.. code:
HTML:
<div id="bar">
<img src="images/bar.gif" width="768" height="1" border="0">
</div>
|
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 center text and forms are off center in Firefox and Netscape. Any idea what is going on? I'm using nested DIVs with absolute positioning inside a relative positioned DIV. The code that is giving me trouble is down at the end of the document.
Any...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |