Put colours inline

  • The Doubter
  • Topic Author
8 years 5 months ago #243176

I'm trying to get these colours inline horizontal, but can't get it to work.
It should look likes this.


Can some1 help me with this? :)

Best regards

Attachments:
Last edit: 8 years 3 months ago by The Doubter.

Please Log in or Create an account to join the conversation.

  • Posts: 2143
  • Thank you received: 747
8 years 5 months ago #243198

Hi,

You can use CSS to have it displayed to your liking. Here is a good start to get you going, and telling you how and where to apply custom CSS in HikaShop: www.hikashop.com/support/documentation/1...ize-the-display.html
Across the web are gazillions more tutorials and references for CSS coding.

More can't be said without seeing/inspecting the page, sorry.


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

Please Log in or Create an account to join the conversation.

  • The Doubter
  • Topic Author
8 years 5 months ago #243263

Hey and thanks for the fast reply :)
her is a link to the page ^^
My site
My problem is that it is labels and they all have different names. And i need to use this characteristic in other products.
But I'm gonna try something.

Please Log in or Create an account to join the conversation.

  • Posts: 2143
  • Thank you received: 747
8 years 5 months ago #243296

First, you are using some "optimizer" (JCH?) on the site, so one can't see where exactly existing CSS etc on your site is coming from, and who knows what else it does. You should consider turning this off during site development.

Then, like so often, there are multiple ways to do this with CSS. Here is one example of code which you could try, it should work in your case and on this page. Just add it in a new line at the very end of a custom CSS file as described under the link I gave you:

@media (min-width: 980px) {
	.hikashop_product_right_part {
	    width: 322px;
	}
}
.hikashop_product_characteristics label {
    display: inline-block;
    margin-right: 16px;
    float: none !important;
}


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

Please Log in or Create an account to join the conversation.

  • The Doubter
  • Topic Author
8 years 5 months ago #243314

Wow Thank you so much it works perfect :woohoo:
I tried to do something like that for each label id, but it would take a long time.
where did you find ".hikashop_product_characteristics label" and "@media"? i couldn't find something like that when using the inspector.
This is my first large project and I'm still in the learning process.
Btw I disabled JCH optimizer it didn't speed up my site anyway.
I'm gonna play around with this a little B)

Please Log in or Create an account to join the conversation.

  • Posts: 2143
  • Thank you received: 747
8 years 5 months ago #243315

The Doubter wrote: where did you find ".hikashop_product_characteristics label" and "@media"?


Did you read my first response here? And the documentation under the link I gave you? The link is also giving you an example for Firebug.

So, it's part of standard, very basic web development. And yes, it can be found/simulated with a browser console as included with at least most browsers.
Again, there's a ton of stuff on CSS and else on the web, and it's worth learning, also because this is more of a support forum for HikaShop and less of a forum for generic web design or specific customizations... ;)


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

Please Log in or Create an account to join the conversation.

  • Posts: 2143
  • Thank you received: 747
8 years 5 months ago #243317

However, you have dropped a closing curly bracket "}" when copying my code.

So, please copy the code snippet from my post here above again and have it replacing your code at the end of your CSS file. Use the exact code, do not leave off any bracket!
If you prefer, you may still leave off the "margin-right: 16px," line, though. All the rest should stay as is, or things may display oddly...


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

Please Log in or Create an account to join the conversation.

  • The Doubter
  • Topic Author
8 years 5 months ago #243587

Hey
Thanks for the help, now it makes sense ;)
I wonder if something like browser prefix is supported because it is not identical between browsers.

Best regards
Martin

Please Log in or Create an account to join the conversation.

  • The Doubter
  • Topic Author
8 years 5 months ago #243590

Forget it, I had to find the average width between browsers :whistle: :P
Again thanks for the help :)

Please Log in or Create an account to join the conversation.

Time to create page: 0.084 seconds
Powered by Kunena Forum