phil3001 Posted April 24, 2012 Share Posted April 24, 2012 Bonjour, je suis en train de créer un nouveau site et j'ai un soucis d'alignement que je n'arrive pas à résoudre j'ai créé un panier avec le nombre de produit à l'intérieur en gros. (image ci jointe) mon soucis c'est que le texte : "produit xxx euro" est mis n'importe comment. comme vous pouvez le voir sur l'image, "produit" est en haut du panier et, le montant est en bas j'aimerai aligner sur la meme ligne ce texte en bas du panier. je n'y arrive pas. Merci du coup de main CSS /* block top user information */ #header_right #header_user { float: right; margin-left: 200x; margin-right: 15px; margin-top: 4px;; } #header_user p { color: #595A5E; font-size: 12px; } #header_user em { color: white; position: relative; } #header_user #gras { color: white; float: right; font-size: 55px; margin-right: 20px; margin-top: 8px; text-shadow: 0 0 5px black; } #header_user span { color: white; font-size:15px; } #header_user ul { margin-top: 0.3em } #header_user li { margin-right: 73px; margin-top: 8px; } #header_user #shopping_cart, #header_user #your_account { font-size: 0.9em } #header_user li#your_account { float: right; margin-top: 0px; } #header_user #shopping_cart a, #header_user #your_account a { background-repeat: no-repeat; background-position: top left; padding: 19px 0 4px 26px; height: 20px; text-decoration: none } #header_user #shopping_cart { background-image: url("../../../img/panier.png"); height: 87px; margin-left: 348px; width: 74px; background-position: 4px 0px; } #header_user #your_account a{ float: right; font-size: 12px; margin-right: -167px; margin-top: -128px; } p.serviceclient a{ float: right; margin-right: 223px; margin-top: -16px; position: relative; text-decoration:none } blockuserinfo TPL <!-- Block user information module HEADER --> <div id="header_user"> <p id="header_user_info"> {l s='Welcome' mod='blockuserinfo'}, {if $cookie->isLogged()} <em>{$cookie->customer_firstname} {$cookie->customer_lastname}</em> (<a href="{$link->getPageLink('index.php')}?mylogout" title="{l s='Log me out' mod='blockuserinfo'}">{l s='Log out' mod='blockuserinfo'}</a>) {else} <a href="{$link->getPageLink('my-account.php', true)}">{l s='Log in' mod='blockuserinfo'}</a> {/if} </p> <p class="serviceclient"> <a title="{l s='Service Client' mod='blockuserinfo'}">{l s='Service client : 09 89 89 89 (du lundi au vendredi de 9h à 19) |' mod='blockuserinfo'}</a></p> <ul id="header_nav"> {if !$PS_CATALOG_MODE} <li id="shopping_cart"> <a href="{$link->getPageLink("$order_process.php", true)}" title="{l s='Your Shopping Cart' mod='blockuserinfo'}">{l s='' mod='blockuserinfo'}</a> <div id="gras" class="ajax_cart_quantity{if $cart_qties == 0} hidden{/if}">{$cart_qties}</div> <span class="ajax_cart_product_txt{if $cart_qties != 1} hidden{/if}">{l s='product' mod='blockuserinfo'}</span> <span class="ajax_cart_product_txt_s{if $cart_qties < 2} hidden{/if}">{l s='products' mod='blockuserinfo'}</span> {if $cart_qties >= 0} <span class="ajax_cart_total{if $cart_qties == 0} hidden{/if}"> {if $priceDisplay == 1} {assign var='blockuser_cart_flag' value='Cart::BOTH_WITHOUT_SHIPPING'|constant} {convertPrice price=$cart->getOrderTotal(false, $blockuser_cart_flag)} {else} {assign var='blockuser_cart_flag' value='Cart::BOTH_WITHOUT_SHIPPING'|constant} {convertPrice price=$cart->getOrderTotal(true, $blockuser_cart_flag)} {/if} </span> {/if} <div id="gras" class="ajax_cart_no_product{if $cart_qties > 0} hidden{/if}">{l s='0' mod='blockuserinfo'}</div> </li> {/if} </ul> </div> <!-- /Block user information module HEADER --> Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now