Here is the code snippet I am working with:
#ul_quests {
list-style: none;
font-size: 20px;
margin: 0;
padding: 0;
text-align: center;
}
[id=^"q_count"],
[id="q_watcher"],
[id=^"q_date"],
[id=^"q_addresses"] {
height: 55px;
line-height: 55px;
float: left;
margin: 0px 35px;
}
<ul id="ul_quests">
<li id='q_count1'>1</li>
<li id='q_watcher1'>fdsfss</li>
<li id='q_date1'>20-20</li>
<li id='q_addresses1'></li>
</ul>
Despite defining CSS styles for specific IDs, they are not being applied correctly. JSFiddle link.