Author Topic: BOLD style  (Read 36 times)

0 Members and 1 Guest are viewing this topic.

Benahmed Abdelkrim

  • Level 5
  • *****
  • Posts: 648
  • The most beautiful is the simple
    • View Profile
BOLD style
« on: August 12, 2017, 08:33:06 AM »
It is sometimes useful to write the cells of some subjects in BOLD style; Here is the code injected to realize this fact:

 
Code: [Select]
<td>input type="text" size="25" style="font-weight:bold;"</td>
I attach below the HTML file and a screenshot.

thanks in advance
« Last Edit: August 12, 2017, 09:01:37 AM by Benahmed Abdelkrim »
B.A/krim

Volker Dirr

  • Forum Administrator
  • Level 5
  • *****
  • Posts: 1812
    • View Profile
Re: BOLD style
« Reply #1 on: August 12, 2017, 09:47:57 AM »
It is better if you do that by the css file, not by editing the html file.

If you want to change only the subject name into bold font, then you need to export the timetable at least with html level 4.
Then open the css file and search lines like:
Code: [Select]
span.s_4 { /* subject M */

}

Modify it into this:
Code: [Select]
span.s_4 { /* subject M */
  font-weight:bold;
}

(Save the css file and reload/reopen the html file.)

If you want to change the style of the whole cell (like in your example), then you need to export the timetable at least with html level 6.
Open the css file and seach lines like this:
Code: [Select]
td.s_4 { /* subject M */

}

So this time the "td", not the "span".
Modify it the same way.
« Last Edit: August 12, 2017, 09:50:40 AM by Volker Dirr »

Benahmed Abdelkrim

  • Level 5
  • *****
  • Posts: 648
  • The most beautiful is the simple
    • View Profile
Re: BOLD style
« Reply #2 on: August 12, 2017, 10:07:23 AM »
Thank you very much Mr Volker it works very well!

I must confess that your advice is better than my proposal.

Thanks again  :)
B.A/krim

yahi

  • Level 3
  • ***
  • Posts: 141
    • View Profile
Re: BOLD style
« Reply #3 on: August 12, 2017, 02:43:10 PM »
thanks a lot for the useful explanations