![]() |
#1 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 322
Karma: 2228060
Join Date: Dec 2013
Location: LaVernia, Texas
Device: kindle epub readers on android
|
a-z css editor solution
I noticed that when alphabetizing the css file with the A-Z icon there is an accompanying warning message that sometimes an unwanted result can happen. So far, so good, but I had another small problem in that commands that I wanted to associate with each other now became separated by the alphabet. I think I have found a solution and wanted to offer it here for evaluation. If I type in the same "dummy" word followed by a comma in front of all items I would like to group, the whole group is now in the same place in the alphabet.
tablestuff, table{} tablestuff, tr {} tablestuff, td {} Is there any problem with doing this? The dummy word "tablestuff" references nothing at all and exists only as a tool to group items for a table. Best regards, Pop |
![]() |
![]() |
![]() |
#2 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,188
Karma: 8888888
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
|
Use a period instead of a comma:
Code:
tablestuff.table{} tablestuff.tr {} tablestuff.td {} Code:
table{} table.tr {} table.td {} Code:
table1{} table1.tr {} table1.td {} bernie Quote:
|
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 322
Karma: 2228060
Join Date: Dec 2013
Location: LaVernia, Texas
Device: kindle epub readers on android
|
Thank you for that information about the dot instead of comma. I was unaware you could do this. I had been under the impression that if you put a dot in front of something that it would automatically turn into a class and that in the xhtml segment you would have to refer to it as class="whatever". I have also been toying with the creation of multiple stylesheets. Best regards, Pop
|
![]() |
![]() |
![]() |
#4 | |
Age improves with wine.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 576
Karma: 95229
Join Date: Nov 2014
Device: Kindle Oasis, Kobo Libra II
|
Quote:
|
|
![]() |
![]() |
![]() |
#5 | |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 161
Karma: 1842
Join Date: Jan 2016
Device: Kobo Glo HD
|
Quote:
If all you want to do is order alphabetically your css using commas as you were doing is fine. (you're targeting a tablestuff element that does not exist but this is not a problem) But the best thing is not to reorder the css ![]() Nobody will see the css and there is no real benefit to reordering it. |
|
![]() |
![]() |
Advert | |
|
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
pagestyle.css extra / integrated in stylesheet.css / or not at all? | chaot | Workshop | 14 | 02-24-2017 11:10 PM |
CSS solution for words cut-off in kepub full screen reading | scoky | Kobo Reader | 35 | 04-29-2015 02:07 AM |
css pseudo elements and adjacent combinators in extra css? | ldolse | Calibre | 2 | 12-21-2010 05:09 PM |
Tweak epub and Simple CSS Editor | Shadowman123 | Calibre | 11 | 09-30-2010 10:07 AM |