- Mar 22, 2013
- 9,145
- 10,489
I have this website with offers, and each offer has these extra options. But they get aligned based on the name:
The options get aligned based on name, and it doesn't look good. I want to have them aligned by price.
Here is the code:
So this code encompasses each line (includes name and price)
And this code encompasses just the price block:
So if it's a simple edit to the above code to align things there by price, help a brother out. If complicated, never mind.
Thanks : )
The options get aligned based on name, and it doesn't look good. I want to have them aligned by price.
Here is the code:
PHP:
<?php
global $post, $ae_post_factory;
$post_object = $ae_post_factory->get( 'mjob_extra' );
$current = $post_object->convert( $post );
?>
<li class="extra-item" data-id="<?php echo $current->ID; ?>">
<div class="form-group list-item-extra">
<div class="packge-chose">
<div class="checkbox">
<label>
<input data-id="<?php echo $current->ID; ?>" type="checkbox" value="<?php echo $current->et_budget; ?>" name="mjob_extra">
<span><?php echo $current->post_title; ?></span>
</label>
</div>
</div>
<div class="package-price mje-price-text"><?php echo $current->et_budget_text; ?></div>
</div>
</li>
So this code encompasses each line (includes name and price)
PHP:
<li class="extra-item" data-id="<?php echo $current->ID; ?>">
And this code encompasses just the price block:
PHP:
<div class="package-price mje-price-text"><?php echo $current->et_budget_text; ?></div>
So if it's a simple edit to the above code to align things there by price, help a brother out. If complicated, never mind.
Thanks : )