Solved

Move text down and to the left

Posted on 2013-06-18
10
390 Views
Last Modified: 2013-06-19
I've attached a screenshot. You see how the text is too close to the red button and moved up. I want to bring it down...maybe center it to the button and move it to the left...not so close to the button as it is now.

This is how it renders

<div class="formactions placeorder">
Total: USD 96.21
<button class="imagebutton continuecheckout" type="submit" name="dwfrm_orderSummary_submitOrder" value="Place Order"><span>Place Order</span></button>
<div class="clear"></div>
</div>

Open in new window


And these are the CSS

.formactions.placeorder {
text-align: right;
padding-top: 20px;
}


.formactions.placeorder button {
text-transform: uppercase;
font-size: 14px;
float: right;
}


.clear, .clearBoth {
clear: both;
}

Open in new window

doc3.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
  • 6
  • 4
10 Comments
 
LVL 15

Expert Comment

by:Jagadishwor Dulal
ID: 39258331
You are hiding your screen shot it's not seems well please post your url.
0
 
LVL 7

Author Comment

by:Camillia
ID: 39258742
it's my company url. that's why i didnt post the url. I might have have to upgrade my expert echange to have private question so i could post it. You can't tell me how to fix it the way i have posted my question?
0
 
LVL 15

Accepted Solution

by:
Jagadishwor Dulal earned 500 total points
ID: 39258942
Ok one of the reason for your problem is you have no space between class name try my example:

.formactions .placeorder {
text-align: right;
padding-top: 20px;
}


.formactions .placeorder button {
text-transform: uppercase;
font-size: 14px;
float: right;
}


.clear, .clearBoth {
clear: both;
}

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 7

Author Comment

by:Camillia
ID: 39259017
thanks, let me try.
0
 
LVL 7

Author Comment

by:Camillia
ID: 39259687
didnt work. Stays the same. Where do I put that .clear CSS??
Your .formactions .placeorder  and .formactions .placeorder  button are the same as mine.
0
 
LVL 15

Expert Comment

by:Jagadishwor Dulal
ID: 39259725
It's all same only space in .formaction .placeholder can you provide image for what you want.
0
 
LVL 7

Author Comment

by:Camillia
ID: 39259766
where's the space in this??

.formactions .placeorder {
text-align: right;
padding-top: 20px;
}

This is how it renders. I see the "clear" div but the there's no space. Still looks the same.

<div class="formactions placeorder">
Total: USD 96.21
<button class="imagebutton continuecheckout" type="submit" name="dwfrm_orderSummary_submitOrder" value="Place Order"><span>Place Order</span></button>
<div class="clear"></div>
</div>

Open in new window

0
 
LVL 15

Expert Comment

by:Jagadishwor Dulal
ID: 39259833
See this two css:
.formactions.placeorder {
text-align: right; /* see above there is no space between formactions.placeorder*/
padding-top: 20px;
}


.formactions.placeorder button {
text-transform: uppercase;
font-size: 14px;
float: right;
}


.clear, .clearBoth {
clear: both;
}

Open in new window


and second one

.formactions .placeorder {
text-align: right;
padding-top: 20px;
}


.formactions .placeorder button {
text-transform: uppercase;
font-size: 14px;
float: right;
}


.clear, .clearBoth {
clear: both;
}
                                            

Open in new window

0
 
LVL 7

Author Comment

by:Camillia
ID: 39259847
There's no space so how can I put the space??
Your CSS has an additional ".clear" tag. How can I use it to add the space??
0
 
LVL 7

Author Comment

by:Camillia
ID: 39259912
I put the div clear between the text and the button but the text ends up above the button

this is how it renders. Screenshot attached

<div class="formactions placeorder">
Total: USD 96.21
<div class="clear"></div> <button class="imagebutton continuecheckout" type="submit" name="dwfrm_orderSummary_submitOrder" value="Place Order"><span>Place Order</span></button>
</div>

Open in new window

doc8.docx
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

CSS3 Custom checkboxes This article shows how to style the checkbox form element using only CSS. Works in: Chrome, FF, Safari, Opera, IE9+ Uses modernizr.js to check for :checked pseudo class, falling back to plain old checkboxes (IE8 and bel…
As a result of several questions about how to use Bootstrap I thought it would be a good idea to write down the development aspect of creating a Bootstrapped website in as little time as possible. Part 1 of this article will only concentrate on g…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

691 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