• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Different Attribute Value For IE And Firefox

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
reply
    Bookmark Topic Watch Topic
  • New Topic