SpaceGirl said:
No... that's not the recommended CSS shorthand.
Which "that" is not recommended, and by which recommendation?
That wont validate
on some validators, or at least it'll warn you.
Calling CSS checkers "validators" is already confusing; no need to add
to the confusion by referring to them without specifying which checker
does what.
<td style="background: url('mages/layout_r7_c1.jpg')">
...is the recommended technique.
But that _is_ a shorthand, whereas the one with background-image, which
you seem to frown upon, is _not_ a shorthand.
The reason why background is better than background-image alone is that
you should always set background color, background image, and content
(text) color together*), and background always sets the background
color too. But background-color can be set separately too. _And_ the
color property needs to be set separately, so merely using the
background property doesn't solve the problem.
*) I'm too tired to explain the reason to this in detail, but any good
CSS book or tutorial does that. You haven't understood the basics of
CSS before you understand _why_ those properties should be set together
if at all.
You can then easily combine
formatting without bloating the CSS;
<td style="background-image: url('mages/layout_r7_c1.jpg');
backgrond-color:#ffffff;">
...becomes...
<td style="background:#fffff url('mages/layout_r7_c1.jpg');">
Yes, but the latter is not equivalent to the former - it sets more
properties.