html - floating a div aligning next to another -


I want the plus sign to be right align, though it has become slightly wet once. It is not near the actual text

I have tried to do a float: correct , but it's not exactly beside the text here is a screenshot:

menu

CSS:

  span .title {display: inline-block; } Span.toggle {status: relative; float right; }  

HTML:

  & lt; Li class = "submenu" & gt; & Lt; I class = "lock" & gt; & Lt; / I & gt; & Lt; Span class = "title" & gt; Users & lt; / Span & gt; & Lt; Span class = "toggle" & gt; + & Lt; / Span & gt; & Lt; / Li & gt;  

When I

  span.title {padding-right: 12%}  
< P> This shows:

menu

although it All of them do not align on one side. Do you people know what is it that I am doing wrong? I float wrong?

I have edited your CSS as I understand you. I hope you want the same Which you want :)

  #side navigation li {padding: 8px 5px 5px 0; Cursor: indicator; } .lock {background: url ('../ images / icon.png') No-repeat center; Display: Inline-block; Width: 30px; Height: 30px; Text align: center; Vertical-row: middle; Swim left; } .subMenu-link {list-style: none; Padding-left: 30px; } Li.subMenu span {font-weight: 600; Font-size: 14px; } .subMenu: hover {background: # 191919; } #party navigation: hover {color: white; } Li: Hover. Lock {background: url ("") no-double center; } Span.title {margin: 0; Display: Inline-block; } Span.toggle {status: relative; Margin-left: 20px; } Period {Float: left; } Li {Float: left; Clear: left;}  


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

java - Messages from .properties file do not display UTF-8 characters -

javascript - amcharts makechart not working -