• 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

Attribute selector is not working

 
Ranch Hand
Posts: 201
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I have a JSP with doc type defined as -



Initially I tried heavy stuff and then I came down to use something very basic but still it is not working.




The problem is that my submit buttons' background is not coming out in red. We have this huge application and it has been using the doc type defined as above.

I came to know that I also need to define the DTD as well, but if I do so, the pages simply seem to be messed up and hence I can not use the DTD declaration.

Is there any way I can make this work without specifying the DTD ?







 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, it would be best if you set doctypes and changed your pages to work with them.

Other option is to add classes to the submit buttons and style it that way.

Also I would expect the attribute selector to have quotes



Eric
 
Girish Vasmatkar
Ranch Hand
Posts: 201
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you for the reply.

I did try using quotes as well, but does not work. And believe me, I am going to have hell lot of trouble if I make my pages work with the DTD. So, I am considering this option only when I see no other way out.

My problem is that I have JSF buttons, and the buttons have style class applied to them, which contain background image. Now, if the button is disabled, I also need to change the image (so as to get the feeling of disabled button).

The enabling and disabling is done by the JSF itself, so I was thinking of writing the CSS with attribute selector so that I can utilize the disabled attribute and apply the appropriate background image.




It gets converted to raw HTML (Assuming the disabled attribute's value evaluates to true) -

 
Once upon a time there were three bears. And they were visted by a golden haired tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic