While following the ruby on rails guide, I came across a specific way to write link_to's with a css id:
<%= link_to "About", about_path, id: "third" %>
I also attempted:
<%= link_to ("About", :id => "third"), about_path %>
Although the link functions properly, I noticed that when I make changes to my css in the application.css file, the link with id third
does not reflect those changes. Specifically, I am trying to adjust the margin value but the link doesn't seem to move.
Any idea why the css modifications are not taking effect?
Below is the Css for the third id
#third {
margin-top:-10px;
}