• Post Reply Bookmark Topic Watch Topic
  • New Topic

Different Attribute Value For IE And Firefox

 
H Bhoon
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I have an JSF inputTextArea in my code with the rows atribute specified as 4.



This results in the box displaying 5 lines in Firefox and 4 lines in IE. I want it to display 5 lines in both IE and Firefox. This means I have to have set the rows attribute value to 4 in Firefox and 5 in IE. How can i do this? Otherwise, is there another way of achieving what I want (maybe via CSS)?

Thanks in advance!
 
H Bhoon
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I solved my problem. I used the CSS height attribute to specify the height of the component, and created 2 separate CSS files, one for Firefox (style.css) and one for IE (style_ie.css) and the in my xhtml page I used the following to include the CSS only if the browser is IE and thus override the height value specified in my default CSS file (style.css):



I am still learning CSS, so sorry if I posted a silly question! Hope my answer helps others also having this problem!

Regards!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!