css url function OR operator -
hi want know if can use or operator in css url function.
example: possible ?
happy.moods { background-image: url( 'patha/img.png' || 'pathb/img.png' ); }
as other users pointed out in comments, there no way speak of. while can set things min-width
, max-width
achieve half-baked logic, css , html not have concept of logic @ all. psuedo-class selectors, logic displaying changes in webpage not property of code have written property of the web browser.
this why can literally write thing (regardless of whether proper code or not) html or css file , won't cause program "break" because there nothing "compile".
however, concepts of javascript come play. i'm going assume want dynamic background image, if so, go ahead , search on or on google, there multiple pages out there out.
hope helps!
Comments
Post a Comment