Solved

Moving text to the right

Posted on 2013-06-18
8
253 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
Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

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.

 
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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
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…

856 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