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
- Qwen2.5-Coder-32B is an LLM that can code well that runs on my Mac - 12th November 2024
- Visualizing local election results with Datasette, Observable and MapLibre GL - 9th November 2024
- Project: VERDAD - tracking misinformation in radio broadcasts using Gemini 1.5 - 7th November 2024