Solved

Moving text to the right

Posted on 2013-06-18
8
247 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
 
LVL 17

Expert Comment

by:bigeven2002
ID: 39258925
I didn't see Doc6 or 7.  Can you repost those?
0
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

So you have coded your own WordPress plugin and now you want to allow users to upload images to a folder in the plugin folder rather than the default media location? Follow along and this article will show you how to do just that!
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…
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…

705 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

21 Experts available now in Live!

Get 1:1 Help Now