Claudia M Posted October 29, 2017 Share Posted October 29, 2017 This is driving me nuts!! I am redoing the layout of my checkout pages and on content/medium-up I want the word Quantity and the box with the qty in it all on one line. I can't get it to do it!! Here is my code. The last line I want on a line by itself under the product code: <tr> <td class="text-center"><a href="{$STORE_URL}/index.php?_a=basket&remove-item={$hash}"><svg class="icon icon-trash-o"><use xlink:href="#icon-trash-o"></use></svg></a></td> <td width="90"> <a href="{$item.link}" class="th" title="{$item.name}"><img src="{$item.image}" alt="{$item.name}"></a></td> <td colspan="2"> <div><a class="txt" href="{$item.link}">{$item.name}</a> {if !empty($item.product_code)} - {$item.product_code}{/if}</div> <div class="txt"> Quantity: <input name="quan[{$hash}]" type="quantity" value="{$item.quantity}" maxlength="6" class="quantity checkout" {$QUAN_READ_ONLY}></div> Thanks in advance for any and all help, Claudia Quote Link to comment Share on other sites More sharing options...
bsmither Posted October 30, 2017 Share Posted October 30, 2017 (edited) Can we have the web address to view your customizations. Have you tried:Quantity: <input Edited October 30, 2017 by bsmither Quote Link to comment Share on other sites More sharing options...
Claudia M Posted October 30, 2017 Author Share Posted October 30, 2017 I've tried that and more. my web address is https://www.claudiasbargains.com. You'll have to add something to the basket to see it. Quote Link to comment Share on other sites More sharing options...
bsmither Posted October 30, 2017 Share Posted October 30, 2017 What works for me is to edit line 150 in cubecart.css: change input.quantity to width: 25pt. You might also have working.css, line 215: input[type="cho-qty"] with display: block. Change that to inline-block. Quote Link to comment Share on other sites More sharing options...
Claudia M Posted October 30, 2017 Author Share Posted October 30, 2017 That did it Brian. Thank you. Now I think I'll style it a little better. Well, in the morning. By the way, you said to edit line 150 in cubecart.css. I was under the impression that it wasn't a good idea to change any of the .css files that come with Foundation. I've been putting all my changes to these files in a new (for now working.css) .css file. Is this the correct way? Quote Link to comment Share on other sites More sharing options...
bsmither Posted October 30, 2017 Share Posted October 30, 2017 Thank you for that reminder. You are absolutely correct. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.