|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Forms with CSS
Hi all,
I am trying to get forms with style sheets, the only way I know how is to use the STYLE attribute in the <INPUT> tag, but Netscape Navigator 4.x mashes up with this. I need styles in the seperate .css file. Please don't bore me witht eh <LINK REL=""> stuff. I know all that already. I have tried that <INPUT CLASS="inputcss"> but that don't work. Thnx for your time, Brent Newbury |
|
#2
|
|||
|
|||
|
in your external CSS just redefine the form tags you want, for example here is mine.
Code:
input { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #000000; background-color: #C6C6AA}
textarea { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #000000; background-color: #C6C6AA }
you could also make a custom class (like your .inputcss example) if you did not want it to be a global change. these two methods are much easier than in line CSS, and much more usable. about NN 4, it does not work in NN until 6. so its not you doing anything wrong, its just NN 4. |
|
#3
|
|||
|
|||
|
Thnx for your reply but...
This does not work, I have tried that already, the html file is embeded in PHP so that is probably the reason why. I'm using IE6. Thnx again, any other sugestions Brent |
|
#4
|
|||
|
|||
|
The CSS/INPUT/NS4 combination is unpredictable, if it works at all. You're pretty much stuck to *really* basic CSS for input elements if you're using NS4, by my experience.
|
|
#5
|
|||
|
|||
|
I have a new problem now.
I have images as borders and as I said I'm using PHP, this makes my pages dynamic... hence don't actually know the verticle height on my image is going to be... but how no Ratscape (Netscape) doesn't accept this. So what do I do? The problem is this, I'm making a product that it "out-of-the-box". So it must be able to work well in all major browsers. Here's my theory: "All internet web designers use Netscape to test whether their sites are compatible, and adjust their sites if they're not. Only 27% of Internet 'surfers' use browsers, other than Internet Explorer. So the people using Netscape are the website designers who want their sites to work in all browsers, especially the ones that nobody uses." - Brent Newbury & Ben Whittle Kind of a paradox. Anyway, thnx for all your time, Brent Newbury |
|
#6
|
|||
|
|||
|
i really wouldn't be too conserned with NN 4.x it is my experience that it is hell to develop for. you cannot do much with NN but the basics.
saying that though, i do not see why you are having issues with image height with dynamic pages generated in php. can you give us a URL so we can check this out? |
|
#7
|
|||
|
|||
|
dont' worry lads, I've done it.
NN wasn't haveing any of <td width="20" height="100%"><img src="something.gif" width="20" height="100%"></td> but instead use: <td width="20" height="100%" background="something.gif"></td> thnx for all your time, Brent Last edited by $centurion : March 17th, 2002 at 06:02 PM. |
|
#8
|
|||
|
|||
|
yea, thats a netscape thing.
|
![]() |
| Viewing: Dev Shed Forums > Web Design > CSS Help > Forms with CSS |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|