![code completion not working for IDs in DIV. Works fine in SPAN, LI, etc – IDEs Support (IntelliJ Platform) | JetBrains code completion not working for IDs in DIV. Works fine in SPAN, LI, etc – IDEs Support (IntelliJ Platform) | JetBrains](http://adm-10980.intellij.net/zendesk-forum-storage/jc/5492446/divtest.png)
code completion not working for IDs in DIV. Works fine in SPAN, LI, etc – IDEs Support (IntelliJ Platform) | JetBrains
![SOLVED: Consider the following HTML with associated CSS: <div id ="container"></div> <div id="inner"></div> #container width: 400px; #inner padding: 5px; margin: 2px; border: solid 1px grey; width: calc(50% - 4px); } SOLVED: Consider the following HTML with associated CSS: <div id ="container"></div> <div id="inner"></div> #container width: 400px; #inner padding: 5px; margin: 2px; border: solid 1px grey; width: calc(50% - 4px); }](https://cdn.numerade.com/ask_images/d8450f1762bf4bd48f5335248aca2947.jpg)
SOLVED: Consider the following HTML with associated CSS: <div id ="container"></div> <div id="inner"></div> #container width: 400px; #inner padding: 5px; margin: 2px; border: solid 1px grey; width: calc(50% - 4px); }
![What's the point of setting the id of an element rather than changing its inline style attribute? - HTML-CSS - The freeCodeCamp Forum What's the point of setting the id of an element rather than changing its inline style attribute? - HTML-CSS - The freeCodeCamp Forum](https://global.discourse-cdn.com/freecodecamp/original/3X/4/3/4348668ce5b01848b69f6dc1113781ad4d8493f2.jpeg)