Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old 04-04-2018, 09:11 AM   #1
rjwse@aol.com
Addict
rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.
 
rjwse@aol.com's Avatar
 
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
rjwse@aol.com is offline   Reply With Quote
Old 04-04-2018, 10:15 AM   #2
gbm
Wizard
gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.
 
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 {}
A better way would be:
Code:
table{}
table.tr {}
table.td {}
If you had multiple table with different css then you could simply use:
Code:
table1{}
table1.tr {}
table1.td {}
for the next table and so on.
bernie
Quote:
Originally Posted by rjwse@aol.com View Post
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
gbm is offline   Reply With Quote
Advert
Old 04-07-2018, 10:00 AM   #3
rjwse@aol.com
Addict
rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.
 
rjwse@aol.com's Avatar
 
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
rjwse@aol.com is offline   Reply With Quote
Old 04-07-2018, 01:07 PM   #4
Phssthpok
Age improves with wine.
Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.
 
Posts: 576
Karma: 95229
Join Date: Nov 2014
Device: Kindle Oasis, Kobo Libra II
Quote:
Originally Posted by rjwse@aol.com View Post
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
You're right, it does make it a class. The comma should work just fine.
Phssthpok is offline   Reply With Quote
Old 04-07-2018, 01:09 PM   #5
Nicolas F
Groupie
Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.
 
Posts: 161
Karma: 1842
Join Date: Jan 2016
Device: Kobo Glo HD
Quote:
Originally Posted by rjwse@aol.com View Post
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
I don't think you can use a dot. As you said if you put a dot you target a class instead of the element. So you would need to add the corresponding class (so your table element will need to be <table class="table")

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.
Nicolas F is offline   Reply With Quote
Advert
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 06:46 PM.


MobileRead.com is a privately owned, operated and funded community.