Solved

set the spacing between 2 span

Posted on 2015-01-08
1
62 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

895 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

14 Experts available now in Live!

Get 1:1 Help Now