Solved

Moving text to the right

Posted on 2013-06-18
8
250 Views
Last Modified: 2013-06-19
I've attached how the image looks like now. I have
"Billing" and Edit" next to each other. How can I shift the word "Edit" to the right.

These are the CSS tags I have

#checkout_header {
font-family: 'ProximaNovaBlack', Arial, Helvetica, sans-serif;
background: url(../images/sprite_checkout.png) 0 -156px;
height: 38px;
font-size: 20px;
padding: 5px 0px 0px 10px;
border: solid 2px #efefef;
}


#checkout_header .checkout_header_text {
padding: 0px 0px 0px 10px;
}


.checkout_header_bgStep2 {
background: url('../images/sprite_checkout.png') no-repeat -2px -31px;
display: inline-block;
width: 26px;
height: 26px;
}

Open in new window


And it renders to this div

<div id="checkout_header" class="spriteIcon">
					        <span class="checkout_header_bgStep2"></span>
					        <span class="checkout_header_text">Billing
					        <a href="https:...."><!-- dwMarker="link" dwPipelineTitle="COBil-Start" dwPipelineURL="http://localhost:60606/target=/c/core/p/COBil-Start" -->Edit</a>
					    </span>
					     
                      </div>

Open in new window

Doc5.docx
0
Comment
Question by:Camillia
  • 5
  • 3
8 Comments
 
LVL 17

Accepted Solution

by:
bigeven2002 earned 500 total points
ID: 39258081
Hello,

Would this work for you?

Edit this to your CSS:
#checkout_header .checkout_header_text {
padding: 0px 0px 0px 10px;
float:left;
}

Open in new window

Add this to your CSS:
#checkout_header .checkout_header_text_editlink {
padding: 0px 10px 0px 0px;
float:right;
}
.clearfloat {
clear:both;
}

Open in new window

Edit this to your HTML:
<span class="checkout_header_text">Billing </span>
<span class="checkout_header_text_editlink">
<a href="https:...."><!-- dwMarker="link" dwPipelineTitle="COBil-Start" dwPipelineURL="http://localhost:60606/target=/c/core/p/COBil-Start" -->Edit</a>
</span>
<br class="clearfloat" />

Open in new window

0
 
LVL 7

Author Comment

by:Camillia
ID: 39258177
let me try it
0
 
LVL 7

Author Comment

by:Camillia
ID: 39258225
it looks much much better but that "1" image is now to the right of "Shipping". That image is a sprite image. See Doc6.

So I removed foat: left from this. It fixed the image but the text is low now. See doc 7.

#checkout_header .checkout_header_text {
padding: 0px 0px 0px 10px;
float:left;
}

This is how it renders now

<div id="checkout_header" class="spriteIcon">
					        <span class="checkout_header_bg"></span>
					        <span class="checkout_header_text">Shipping
					        </span>
					        <span class="checkout_header_text_editlink">
					          <a href="https..."><!-- dwMarker="link" dwPipelineTitle=".....dwPipelineURL="....." -->Edit</a>
					    </span>
					     <br class="clearfloat">
					     
                      </div>

Open in new window

0
Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

 
LVL 17

Expert Comment

by:bigeven2002
ID: 39258925
I didn't see Doc6 or 7.  Can you repost those?
0
 
LVL 7

Author Comment

by:Camillia
ID: 39259013
sorry, I forgot to attach them. Now attached.
Doc6.docx
Doc7.docx
0
 
LVL 7

Author Comment

by:Camillia
ID: 39259698
I played around with this padding to see if i can pad the bottom to push the text up but still didnt work

.checkout_header_text {
padding: 0px 0px 0px 10px;
}
0
 
LVL 17

Expert Comment

by:bigeven2002
ID: 39261186
I apologize, this was the soonest I could get to my machine, but it appears you got it resolved.  Thanks!
0
 
LVL 7

Author Comment

by:Camillia
ID: 39261334
yes, thanks for your help
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How do I set diff properties in a table row? 3 19
HTML5 save .Dat to server side 20 45
Change div area and length 1 26
Increase the size of the modal in Bootstrap 5 22
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
Find out what you should include to make the best professional email signature for your organization.
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

808 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