Solved

set the spacing between 2 span

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
JavaScript Loan Calculator Error 3 35
Google Tag Manager - Add Trigger Using Div class 22 62
Clear input text 15 27
How do I update select listbox after search 2 25
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

726 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