Simon Willison’s Weblog

Subscribe

Monday, 11th November 2013

Why can’t I do style=“padding: 20px” and a border in the same div?

You can’t have two style attributes on the same element—but you can have two styles rules inside the same attribute. Try this instead:

[... 48 words]

2013 » November

MTWTFSS
    123
45678910
11121314151617
18192021222324
252627282930