Solved

Placing space between 2 texts

Posted on 2013-06-22
1
308 Views
Last Modified: 2013-06-22
I have the CSS below. Is there a way to put a bigger space between the text and USD 96.21?

http://jsfiddle.net/Vjdrz/4/
0
Comment
Question by:Camillia
1 Comment
 
LVL 75

Accepted Solution

by:
käµfm³d   👽 earned 500 total points
ID: 39268901
Wrap the bit of text you want to style in a <span> tag. Then style the <span>.

e.g.

Markup
<div class="total">Please review your order information below Total: <span>USD 96.21</span></div>

Open in new window


Stylesheet
div.total span {
	margin-left: 1em;
}

Open in new window

0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

Suggested Solutions

Title # Comments Views Activity
Input box width 6 32
Input box gone wrong 8 33
CSS: Making Pure CSS read more boxes thinner 5 41
Angular JS Sticky Footer Problem (when page size doesn't meet minimum) 4 28
CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…

792 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