Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CSS inconsitency with form elements

Status
Not open for further replies.

stormbind

Technical User
Mar 6, 2003
1,165
GB
Code:
<style>
P {border:1px solid black;}
</style>

<p>Can you see two radio buttons?

<br><input type="radio" name="1"> Yes
<br><input type="radio" name="1"> No
</p>

The problem is that: In NS4 the border is being wrapped around the text and ignores the form elements, but in IE it wraps around all elements.

Can this be fixed? Doctype perhaps? Thanks :)

----------
I'm willing to trade custom scripts for... [see profile]
 
Interesting: using <a></a> instead of <p></p> has more uniform results.

----------
I'm willing to trade custom scripts for... [see profile]
 
Arr, darn it:

<a style=""><a href=""></a></a>

NS: Renders as markup describes with one element nested inside the other.
IE: Renders all over the place with elements next to each other :(

----------
I'm willing to trade custom scripts for... [see profile]
 
NS4 + CSS = confusion in almost every case.

If you abolutely have to have your page look a particular way in NS4, use pre-CSS tricks like one-cell tables to get the look you're after.

If, on the other hand, you're an ordinary web-site you can pretty much ignore NS4. Hardly anybody uses it, and those that do will still be able to use your site. It just won't be so pretty.

You have to decide whether the additional income generated from the 3 remaining NS4 users will pay for the medical treatment for the ulcers NS4 CSS support will give you...

-- Chris Hunt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top