html - Remove far right margin on gallery box -


Can you, please help me remove the right margin from my box? I am trying to use a pseudo-element in CSS after :: but it does not seem to work. ()

  & lt; Div class = "content-wrap" & gt; & Lt; Div class = "content-center-rap" & gt; & Lt; Div class = "index-cats-rap" & gt; & Lt; / Div & gt; & Lt; Div class = "index-cats-rap" & gt; & Lt; / Div & gt; & Lt; Div class = "index-cats-rap" & gt; & Lt; P & gt; Test & lt; / Div & gt; & Lt; / Div & gt; & Lt; / Div & gt; .content-center-wrap {width: 960px; Height: auto; Minute-height: 400px; Hidden flurry; Background color: #fff; Margin: 0 auto; Padding-top: 40px; Padding-bottom: 40px; } .index-cats-wrap {display: block; Swim left; Width: 298px; Height: 400px; Margin-right: 20px; Range: 1 px solid # 95 a5a6; } .index-cats-wrap :: after {margin-right: 0px; }  

Thanks.

You need a CSS selector.

  .index-cats-wrap: last-child {margin-right: 0 pixels; }  

Object:


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

javascript - amcharts makechart not working -

java - Algorithm negotiation fail SSH in Jenkins -