Solved

set the spacing between 2 span

Posted on 2015-01-08
1
64 Views
Last Modified: 2015-01-09
Hello ,
  I have 2 span element. I would like to set the spacing between the 2 span to 20x. How can I do this..

Thanks

<div class="jbs-btns">
                         <span>  
                             <img src="/Images/Orange.gif" />
                          </span>
                        <span> 
                            <asp:HyperLink runat="server" ID="ApplyTopHyperLink" Text="apply now" rel="nofollow"
                            CssClass="btn-prim orange btn-prim-low btn-prim-small jbs-btns-special" />
                        </span >
</div>

Open in new window

0
Comment
Question by:SiemensSEN
1 Comment
 
LVL 38

Accepted Solution

by:
Tom Beck earned 500 total points
ID: 40538819
Just add some padding to the first span.

.jbs-btns span:nth-of-type(1) {
    padding-right: 20px;
}

or margin.

.jbs-btns span:nth-of-type(1) {
    margin-right: 20px;
}
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question