Style properties are ignored by Mozilla browser...
|
| View previous topic :: View next topic |
| Author |
Message |
tom Guest
|
I'm trying to adjust the styles of buttons,textbox ....(More like height,width,text size) so that it looks good for each and every resolution,window size..
Whenever I change the attributes like background and size,While using Internet Explorer its working fine but in Mozilla its not working at all For some reason all the styles for the webcontrol are ignored by the Mozilla browser.
Any reason why this is happening? |
| |
|
|
|
|
kabal Guest
|
I suggest NOT using .NET to style your form elements, but rather and external style sheet.
... using ids or classes to style your form elements. Firefox (I asume this is the Mozzila version your developing for) is much more capable when it comes to css if done according to standards.
like so....
-----
/* CSS */
.mybutton { color:red; background-url(/someImage.gif) }
-----
<input type='submit' id='button1' name='button1' class='mybutton' runat='server' />
or
<asp:button id='button1' runat='server' cssclass='mybutton' /> |
| |
|
|
|
|