This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

CSS working in IE and ff but not in Chrome

 
Aggarwal Arpit
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am having css class:

.errorMsgAlignment{
width:25% !important;
}

it's working fine in IE and Firefox but not in Chrome.
Please help me to fix it.

Thanks in Advance
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64827
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please post an SSCCE (Short Self-Contained Correct Example) that shows the problem.
 
Aggarwal Arpit
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
On my JSP page:

<td ${isIncorrectPassword=='true' ? 'class="errorMsgAlignment" ' : ''}>

and in css file:



.errorMsgAlignment{
width:25% !important;
}

I marked width here as important because width is overding by width defined for td class.
 
Aggarwal Arpit
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got my solution

Actually there are two columns so I am changing the width of first column(td) 25% which is acceptable by every bwoser but not by Chrome so I changed the width of second td to 75% to make complete tr width 100%.

And now it's acceptable by chrome too.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic