This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Ranch Office and the fly likes Text Fields and Text Areas of Web Page Have Hard Coded Colors Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » This Site » Ranch Office
Bookmark "Text Fields and Text Areas of Web Page Have Hard Coded Colors" Watch "Text Fields and Text Areas of Web Page Have Hard Coded Colors" New topic
Author

Text Fields and Text Areas of Web Page Have Hard Coded Colors

Marcelo Ruiz
Greenhorn

Joined: Dec 19, 2007
Posts: 25
Hi All,

I wanted you to know that the hard-coded fonts and cursor in the web page makes someone who has a dark theme installed (in my case in Ubuntu 9.10 with Firefox as a browser) impossible to read what is typing while posting a message.
Although it is not a crucial thing (I can write the whole message in a text editor and then copy and paste it into the selected place), it makes using the website use a little harder than it should be.
I guess you might be a way to solve this problem because I don't have it with other web pages.
I am attaching an image for you to see the effect.
Thanks!

Marcelo.


[Thumbnail for Screenshot-JavaRanch - Mozilla Firefox - Ubuntu 9.10.png]

Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6657
    
    5

Change the theme ? It looks like your theme draws UI components with a black background. The equivalent of using background-color: 000000 Do you see this with other themes ? Also how do other web sites and text boxes behave under this theme ?


SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 29275
    
140

Can you link to a site that has a textarea without the problem? That way we can compare it to what we have.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 29275
    
140

I checked the code. While there are other shortcomings to the HTML, we do not have the color hard coded for the textarea. Here is where the color is being set - in the CSS.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Text Fields and Text Areas of Web Page Have Hard Coded Colors
 
Similar Threads
Calling function from a separate HTML file
how do I validate a listbox
What to Do If I Do Not Want Text to be Hard Coded in HTML?
Dynamically assign an included bean property
Is this good practice?