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
- My AI/LLM predictions for the next 1, 3 and 6 years, for Oxide and Friends - 10th January 2025
- Weeknotes: Starting 2025 a little slow - 4th January 2025
- I still don't think companies serve you ads based on spying through your microphone - 2nd January 2025