Solved

Moving text to the right

Posted on 2013-06-18
8
254 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Industry Leaders: 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!

 
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

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

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
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…

730 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