[Skip to main content](#vessel-content)

#   CSS help with the checkout basket

##

- **[rcadmin](/forum/user/38257-rcadmin "View rcadmin's Profile")**
- [![rcadmin's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/38257-rcadmin "View rcadmin's Profile") Topic Author
- [ Offline](/forum/user/38257-rcadmin)

Less More

- Posts: 58
- Thank you received: 2
-
-

11 years 3 months ago -  11 years 3 months ago [\#211981](#211981) by [rcadmin](/forum/user/38257-rcadmin "View rcadmin's Profile")  *[CSS help with the checkout basket](/forum/27-checkout/878847-css-help-with-the-checkout-basket#211981 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3  Currently my checkout looks like this  Using  I can get it to look like  The problem that I have is trying to remove the lines/spaces between each row of the custom fields (want it to be more compact)  Code is  I tried  Which produced  The alignment is wrong")* was created by *[rcadmin](/forum/user/38257-rcadmin "View rcadmin's Profile")*

-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.4.3

Currently my checkout looks like this

[ ![Checkout1.png](/forum/attachment/26067) ](/forum/attachment/26067 "Checkout1.png")

Using Code:

.hikashop_cart_product_custom_item_fields p label {float: left;}

I can get it to look like

[ ![Checkout2.png](/forum/attachment/26068) ](/forum/attachment/26068 "Checkout2.png")

The problem that I have is trying to remove the lines/spaces between each row of the custom fields (want it to be more compact)

Code is Code:

&lt;table class="table table-striped table-hover" width="100%"&gt; &lt;thead&gt; &lt;tr&gt; &lt;th id="hikashop_cart_product_image_title" class="hikashop_cart_product_image_title hikashop_cart_title"&gt; Image &lt;/th&gt; &lt;th id="hikashop_cart_product_name_title" class="hikashop_cart_product_name_title hikashop_cart_title"&gt; Name &lt;/th&gt; &lt;th id="hikashop_cart_product_price_title" class="hikashop_cart_product_price_title hikashop_cart_title"&gt; Unit price &lt;/th&gt; &lt;th id="hikashop_cart_product_quantity_title" class="hikashop_cart_product_quantity_title hikashop_cart_title"&gt; Quantity &lt;/th&gt; &lt;th id="hikashop_cart_product_total_title" class="hikashop_cart_product_total_title hikashop_cart_title"&gt; Total price &lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt; &lt;tr class="row0"&gt; &lt;td data-title="Image" class="hikashop_cart_product_image_value"&gt; &lt;div class="hikashop_cart_product_image_thumb"&gt; &lt;img class="hikashop_product_checkout_cart_image" title="" alt="" src="/images/com_hikashop/upload/thumbnails/100x100f/barcode-ros.png"&gt; &lt;/div&gt; &lt;/td&gt; &lt;td data-title="Name" class="hikashop_cart_product_name_value"&gt; &lt;p class="hikashop_cart_product_name"&gt; &lt;a class="hikashop_no_print" href="/community/shop/product/2-hockey-event"&gt; Hockey Event &lt;/a&gt; &lt;/p&gt; &lt;div class="hikashop_cart_product_custom_item_fields"&gt;&lt;p class="hikashop_cart_item_surname_itm"&gt;&lt;label for="surname_itm"&gt;Surname&lt;/label&gt;: Smith&lt;/p&gt;&lt;p class="hikashop_cart_item_firstname_item"&gt;&lt;label for="firstname_item"&gt;First name&lt;/label&gt;: Fred&lt;/p&gt;&lt;p class="hikashop_cart_item_year_itm"&gt;&lt;label for="year_itm"&gt;Year&lt;/label&gt;: 7&lt;/p&gt;&lt;p class="hikashop_cart_item_class_itm"&gt;&lt;label for="class_itm"&gt;Form Class&lt;/label&gt;: XTS&lt;/p&gt;&lt;/div&gt; &lt;/td&gt; &lt;td data-title="Unit price" class="hikashop_cart_product_price_value"&gt; &lt;span class="hikashop_product_price_full"&gt; &lt;span class="hikashop_product_price"&gt;NZD110,00&lt;/span&gt; &lt;/span&gt; &lt;/td&gt; &lt;td data-title="Quantity" class="hikashop_cart_product_quantity_value"&gt; &lt;input id="hikashop_checkout_quantity_30" name="item[30]" class="hikashop_product_quantity_field" value="1" onchange="var qty_field = document.getElementById('hikashop_checkout_quantity_30'); if (qty_field){}; return true;" type="text"&gt; &lt;div class="hikashop_cart_product_quantity_refresh"&gt; &lt;a class="hikashop_no_print" href="#" onclick="var qty_field = document.getElementById('hikashop_checkout_quantity_30'); if (qty_field &amp;amp;&amp;amp; qty_field.value != '1'){ qty_field.form.submit(); } return false;" title="Refresh"&gt; &lt;img src="/media/com_hikashop/images/refresh.png" alt="Refresh" border="0"&gt; &lt;/a&gt; &lt;/div&gt; &lt;div class="hikashop_cart_product_quantity_delete"&gt; &lt;a class="hikashop_no_print" href="/community/shop/checkout/product/updatecart/quantity-0/return_url-aHR0cHM6Ly93d3cucm9zbWluaS5zY2hvb2wubnovY29tbXVuaXR5L3Nob3AvY2hlY2tvdXQvY2hlY2tvdXQ=/cid-2" onclick="var qty_field = document.getElementById('hikashop_checkout_quantity_30'); if(qty_field){qty_field.value=0; qty_field.form.submit();} return false;" title="Delete"&gt; &lt;img src="/media/com_hikashop/images/delete2.png" alt="Delete" border="0"&gt; &lt;/a&gt; &lt;/div&gt; &lt;/td&gt; &lt;td data-title="Total price" class="hikashop_cart_product_total_value"&gt; &lt;span class="hikashop_product_price_full"&gt; &lt;span class="hikashop_product_price"&gt;NZD110,00&lt;/span&gt; &lt;/span&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr class="margin"&gt;&lt;td colspan="3" class="hikashop_cart_empty_footer"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td colspan="3" class="hikashop_cart_empty_footer"&gt;&lt;/td&gt; &lt;td id="hikashop_checkout_cart_total2_title" class="hikashop_cart_subtotal_title hikashop_cart_title"&gt; Subtotal &lt;/td&gt; &lt;td class="hikashop_cart_subtotal_value" data-title="Subtotal"&gt; &lt;span class="hikashop_checkout_cart_subtotal"&gt; NZD110,00 &lt;/span&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td colspan="3" class="hikashop_cart_empty_footer"&gt;&lt;/td&gt; &lt;td id="hikashop_checkout_cart_tax_title" class="hikashop_cart_tax_title hikashop_cart_title"&gt; GST &lt;/td&gt; &lt;td class="hikashop_cart_tax_value" data-title="GST"&gt; &lt;span class="hikashop_checkout_cart_taxes"&gt; NZD14,35 &lt;/span&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td colspan="3" class="hikashop_cart_empty_footer"&gt;&lt;/td&gt; &lt;td id="hikashop_checkout_cart_final_total_title" class="hikashop_cart_total_title hikashop_cart_title"&gt; Total &lt;/td&gt; &lt;td class="hikashop_cart_total_value" data-title="Total"&gt; &lt;span class="hikashop_checkout_cart_final_total"&gt; NZD110,00 &lt;/span&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt;

I tried
Code:

.hikashop_cart_product_custom_item_fields p {margin:0;}

Which produced

[ ![Checkout3.png](/forum/attachment/26069) ](/forum/attachment/26069 "Checkout3.png")

The alignment is wrong

- [ ![Checkout1.png](/forum/attachment/26067) ](/forum/attachment/26067 "Checkout1.png") [ ](/forum/attachment/26067?download=1 "Checkout1.png")
- [ ![Checkout2.png](/forum/attachment/26068) ](/forum/attachment/26068 "Checkout2.png") [ ](/forum/attachment/26068?download=1 "Checkout2.png")
- [ ![Checkout3.png](/forum/attachment/26069) ](/forum/attachment/26069 "Checkout3.png") [ ](/forum/attachment/26069?download=1 "Checkout3.png")

Last edit: 11 years 3 months ago by [rcadmin](/forum/user/38257-rcadmin "View rcadmin's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3ODg0Ny1jc3MtaGVscC13aXRoLXRoZS1jaGVja291dC1iYXNrZXQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")**
- [![lousyfool's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar28604.jpg)](/forum/user/28604-lousyfool "View lousyfool's Profile")
- [ Offline](/forum/user/28604-lousyfool)

Less More

- Posts: 2143
- Thank you received: 746
-
- [](http://www.inphase.one)
-

11 years 3 months ago -  11 years 3 months ago [\#212003](#212003) by [lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")  Replied by *[lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")* on topic *[CSS help with the checkout basket](/forum/27-checkout/878847-css-help-with-the-checkout-basket#212003 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3  Currently my checkout looks like this  Using  I can get it to look like  The problem that I have is trying to remove the lines/spaces between each row of the custom fields (want it to be more compact)  Code is  I tried  Which produced  The alignment is wrong")*

Hi,

Remove the line Code:

.hikashop_cart_product_custom_item_fields p label {float: left;}

and use instead Code:

.hikashop_cart_product_custom_item_fields &gt; p {margin: 0;} .hikashop_cart_product_custom_item_fields &gt; p &gt; label {display: inline-block;}

If you want to remove the top and bottom margins of the product name as well, add Code:

margin: 0;

to the selector "p.hikashop_cart_product_name", currently on line 130 of your custom.css.

---

Need help with customisations of layouts, style or other site development? [ PM me!](/component/uddeim/?task=new)
(Don't forget to turn on [ "E-mail notification of new messages"](/component/uddeim/?task=settings))

Last edit: 11 years 3 months ago by [lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile").

The following user(s) said Thank You: [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile"), [rcadmin](/forum/user/38257-rcadmin "View rcadmin's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3ODg0Ny1jc3MtaGVscC13aXRoLXRoZS1jaGVja291dC1iYXNrZXQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[rcadmin](/forum/user/38257-rcadmin "View rcadmin's Profile")**
- [![rcadmin's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/38257-rcadmin "View rcadmin's Profile") Topic Author
- [ Offline](/forum/user/38257-rcadmin)

Less More

- Posts: 58
- Thank you received: 2
-
-

11 years 3 months ago [\#212005](#212005) by [rcadmin](/forum/user/38257-rcadmin "View rcadmin's Profile")  Replied by *[rcadmin](/forum/user/38257-rcadmin "View rcadmin's Profile")* on topic *[CSS help with the checkout basket](/forum/27-checkout/878847-css-help-with-the-checkout-basket#212005 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3  Currently my checkout looks like this  Using  I can get it to look like  The problem that I have is trying to remove the lines/spaces between each row of the custom fields (want it to be more compact)  Code is  I tried  Which produced  The alignment is wrong")*

Thanks,with a little change that worked ![:)](/media/kunena/emoticons/3.png ":)")Code:

.hikashop_cart_product_custom_item_fields &gt; p {margin-top: 0;margin-bottom:0;} .hikashop_cart_product_custom_item_fields &gt; p &gt; label {display: inline;} p.hikashop_cart_product_name {font-weight: bold; margin: 0;}

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3ODg0Ny1jc3MtaGVscC13aXRoLXRoZS1jaGVja291dC1iYXNrZXQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.051 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
