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

#   How to make characteristics align vertically

##

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

Less More

- Posts: 34
- Thank you received: 0
-
-

15 years 7 months ago [\#12978](#12978) by [davcraiguk](/forum/user/1706-davcraiguk "View davcraiguk's Profile")  *[How to make characteristics align vertically](/forum/4-how-to/12978-how-to-make-characteristics-align-vertically#12978 "Can someone help me to work out how to align characteristics in the product display page vertically rather the the default horizontal? In my case its a range of sizes.")* was created by *[davcraiguk](/forum/user/1706-davcraiguk "View davcraiguk's Profile")*

Can someone help me to work out how to align characteristics in the product display page vertically rather the the default horizontal? In my case its a range of sizes.

---

David Craig
Hikashop 1.5.0 Business edition
[ www.charitycanvasprints.com](http://www.charitycanvasprints.com)

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

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

Less More

- Posts: 34
- Thank you received: 0
-
-

15 years 7 months ago [\#12980](#12980) by [davcraiguk](/forum/user/1706-davcraiguk "View davcraiguk's Profile")  Replied by *[davcraiguk](/forum/user/1706-davcraiguk "View davcraiguk's Profile")* on topic *[Re: How to make characteristics align vertically](/forum/4-how-to/12978-how-to-make-characteristics-align-vertically#12980 "Can someone help me to work out how to align characteristics in the product display page vertically rather the the default horizontal? In my case its a range of sizes.")*

Solved this myself!
1. Go to the Characteristics edit screen
2. Edit the value(s) of the characteristic
3. At the end of the 'name' field add '&lt;br /&gt;'
4. If your using other languages, add the same to the name field on each language tab.

Note: Adding '&lt;br /&gt;' to the name field in the 'Main Information' tab dosen't seem to get saved - Nicolas?

---

David Craig
Hikashop 1.5.0 Business edition
[ www.charitycanvasprints.com](http://www.charitycanvasprints.com)

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86561
- Thank you received: 14307
-
-

15 years 7 months ago [\#12988](#12988) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: How to make characteristics align vertically](/forum/4-how-to/12978-how-to-make-characteristics-align-vertically#12988 "Can someone help me to work out how to align characteristics in the product display page vertically rather the the default horizontal? In my case its a range of sizes.")*

You will have to change the code:
$element-&gt;$column = strip_tags($value);

to:
$safeHtmlFilter = &amp; JFilterInput::getInstance(null, null, 1, 1);
$element-&gt;$column = $safeHtmlFilter-&gt;clean($value, 'string');

in the file administrator/components/com_hikashop/classes/characteristic.php

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

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

Less More

- Posts: 34
- Thank you received: 0
-
-

15 years 7 months ago [\#13268](#13268) by [davcraiguk](/forum/user/1706-davcraiguk "View davcraiguk's Profile")  Replied by *[davcraiguk](/forum/user/1706-davcraiguk "View davcraiguk's Profile")* on topic *[Re: How to make characteristics align vertically](/forum/4-how-to/12978-how-to-make-characteristics-align-vertically#13268 "Can someone help me to work out how to align characteristics in the product display page vertically rather the the default horizontal? In my case its a range of sizes.")*

A more elegant solutions is to use CSS:
Code:

table.hikashop_product_characteristics_table label { float:left; clear:right; font-weight:normal; } table.hikashop_product_characteristics_table .inputbox { margin-top:5px; margin-right: 10px; float:left; clear:left; }

This does not affect the product title as the embedded &lt;br /&gt; does and no core code changed

---

David Craig
Hikashop 1.5.0 Business edition
[ www.charitycanvasprints.com](http://www.charitycanvasprints.com)

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86561
- Thank you received: 14307
-
-

15 years 7 months ago [\#13270](#13270) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: How to make characteristics align vertically](/forum/4-how-to/12978-how-to-make-characteristics-align-vertically#13270 "Can someone help me to work out how to align characteristics in the product display page vertically rather the the default horizontal? In my case its a range of sizes.")*

Thank you for that solution, I'm sure it will help others.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEyOTc4LWhvdy10by1tYWtlLWNoYXJhY3RlcmlzdGljcy1hbGlnbi12ZXJ0aWNhbGx5P3RtcGw9bWFya2Rvd24=) 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.049 seconds

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