• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSF and CSS issues

 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've been working today on moving all style attributes into CSS styles. I am specifically having issues with tables and css. I have the following JSF page.



This produces the following output



If you notice the 2 TD tags from the outer parent table both have the correct class= value. But the inner table (menu) TD tags, only the first one has the value. The others are all left blank. Now, if I change:



to



I get the correct results. Anyone have any idea why this might be happening?
 
Naresh Chaurasia
Ranch Hand
Posts: 361
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi i have following jsp code

Login.jsp




css code




when the Login.jsp loads for the first time, the back ground color is not changed as in style sheet. But if i hit submit the color changes.....

can some one pls tell what mistake i am doing......I am making use of Tomcat 5.x
 
Naresh Chaurasia
Ranch Hand
Posts: 361
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry greg, by mistake i posted that question
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic