table view: price field right align?

  • Stefan Schoch
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 11 months ago #97205 by Stefan Schoch
table view: price field right align? was created by Stefan Schoch
I'd like to have the price in the price-field right-aligned.

I assume I have to add some code to the cutom.css I'm already using.
How do I change the alignment of specific columns?
How do I change the width of specific columns?

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

More
8 years 11 months ago #97222 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic table view: price field right align?
Hello Stefan

Sometime, you will need to edit code, maybe add some css class to the column if needed, then add the css code to change the format of the column

In this case, please send us the link to the page, tell us what column you want to change. I will ask my template developer to look at it and guide you

Regards,

Tuan

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

  • Stefan Schoch
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 11 months ago #97232 by Stefan Schoch
Replied by Stefan Schoch on topic table view: price field right align?
this is the page:
dia-seminare.org/dia-events/termine-vera...ltungen-tabelle.html

The column which I'd like to have right aligned and which should have a fixed width is 'akt. Preis'.

Thx!!

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

More
8 years 11 months ago #97261 by Dang Dam
Replied by Dang Dam on topic table view: price field right align?
Hello.
Please open the custom.css file: dia-seminare.org/media/com_eventbooking/assets/css/custom.css
and add this css style to text-align: right
.eb-container .table-condensed tbody td:nth-child(2n-1) {
text-align: right;
}
Thanks.

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

  • Stefan Schoch
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 11 months ago #97330 by Stefan Schoch
Replied by Stefan Schoch on topic table view: price field right align?
I tried, but now every 2nd column is right aligned. This is not what we need.

www.awesomescreenshot.com/image/2406634/...d3e92c02200f6b3dc2ae

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

More
8 years 11 months ago #97331 by Dang Dam
Replied by Dang Dam on topic table view: price field right align?
Hi Stefan.
I just fixed this issue in the ticket. Just small wrong css code, it should be:
.eb-container .table-condensed tbody td:nth-last-child(2n) {
text-align: right;
}
Thanks.

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

  • Stefan Schoch
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 11 months ago #97332 by Stefan Schoch
Replied by Stefan Schoch on topic table view: price field right align?
I'm sorry, but that is nonsense.
Why should every 2nd column be right aligned???

Please DO NOT MAKE ANY EXPERIMENTS LIKE THIS IÒN OUR PRODUCTIVE WEBSITE!!!

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

More
8 years 11 months ago #97334 by Dang Dam
Replied by Dang Dam on topic table view: price field right align?
Hi Stefan.
As the topic you need to help, for the price on the right align, and i guide you how to add the css on the site, you can try on it with this following css:
.eb-container .table-condensed tbody td:nth-last-child(2n) {
text-align: right;
}
With this css style, all text in akt. Preis (price) will be right align.
Thanks.
The following user(s) said Thank You: Stefan Schoch

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

  • Stefan Schoch
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 11 months ago #97335 by Stefan Schoch
Replied by Stefan Schoch on topic table view: price field right align?
That looks good!!

Thx!!!

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

  • Stefan Schoch
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 11 months ago #97676 by Stefan Schoch
Replied by Stefan Schoch on topic table view: price field right align?
Correction:
the code above still didn't work.
This is how it has to be:
/* Preisspalte rechtsbündig */
.eb-container .table-condensed tbody td:nth-child(6) {
text-align: right;
}

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

Moderators: Tuan Pham Ngoc