Why can’t I do style=“padding: 20px” and a border in the same div?
11th November 2013
My answer to Why can’t I do style=“padding: 20px” and a border in the same div? on Quora
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:
<div id="secondcontent" style="padding:20px; border:solid">
More recent articles
- Notes on OpenAI's new o1 chain-of-thought models - 12th September 2024
- Notes from my appearance on the Software Misadventures Podcast - 10th September 2024
- Teresa T is name of the whale in Pillar Point Harbor near Half Moon Bay - 8th September 2024