Cross-Browser Styling CSS Form ID -


i have form marked like: <form id="some-form">. have selected forms using

#some-form { /* declare css */ } 

however, 1 of team members said not cross-browser or backwards compatible , said needed declare css using syntax like:

form [id="some=form"] { /* declare css */ } 

can elaborate on whether true? , browsers / versions affected? , proper syntax ensure cross-browser backwards-compatibility? thanks!

what team member describing css attribute selector. if anything, his/her way of targeting <form> element less backwards compatible ability target elements based on attributes added in css 2.1 while way of doing has been around since beginning. although less compatible, market share of browsers not support css 2.1 minimal, , shrinking every day.

see here more info: http://www.w3.org/tr/css2/selector.html#attribute-selectors


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -