Solved

set the spacing between 2 span

Posted on 2015-01-08
1
61 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
Comment Utility
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
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…

763 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now