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

Go Back   MobileRead Forums > E-Book Formats > Workshop

Notices

Reply
 
Thread Tools Search this Thread
Old 04-11-2017, 12:39 PM   #1
patrik
Guru
patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.
 
Posts: 651
Karma: 4568205
Join Date: Jan 2010
Location: Sweden
Device: Kobo Forma
<p>-values within a table (not overridden by standard p)?

Can you set the values for <p> within a table in general, without the values being overridden by the standard <p> settings?


What I want:

css:
p { text-indent:3em; }
.tablep { text-indent:0em; }

html:
...
<td> <p class="tablep">bla bla</p></td>
...

But without having to set the class in the table-p.
(i.e.: <td> <p>bla bla</p></td>)


For values not in css-p, this works
td { something: value; }

But if it is in css-p, the value is ignored. Standard p-values seem to override.

Since the book has many tables I would like to skip adding the class everwhere if it's possible to set something that is enforced for all tables (they are all the same).


I have tried so many things and searched for hours... Hopefully I'm missing something obvious and you can help me out.
patrik is offline   Reply With Quote
Old 04-11-2017, 01:15 PM   #2
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 6,494
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
table p {...}

Read up on CSS selectors.
jhowell is offline   Reply With Quote
Old 04-11-2017, 02:09 PM   #3
patrik
Guru
patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.
 
Posts: 651
Karma: 4568205
Join Date: Jan 2010
Location: Sweden
Device: Kobo Forma
Yes, thanks! That worked. :-)

I could have sworn I did that, I must have tried 10+ variations from all sort of examples I have found during my searches.

Also thanks for the resource, will study it.

Study... I read and study a lot, but for book-making and/or epub, I find that there is surprisingly few books. I think I have bought 4-5 books that I have seen recommended and they are all pretty limited.

Is there a good list of resources somewhere?
patrik is offline   Reply With Quote
Old 04-12-2017, 05:56 AM   #4
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
This isn't ebook specific - it's generic HTML/CSS. Lots of resources available for that.
HarryT is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Touch mapping non-standard key bindings to standard ones Geremia Nook Developer's Corner 0 12-28-2012 06:38 PM
Configure Metadata download for ISBN overridden by Preferences meme Library Management 11 09-21-2011 11:47 PM
Anyone know how to convert a pdf table into a table in Word or HTML? BasilC Workshop 7 06-25-2010 01:02 AM
Sideway Table in ePub (Rotate table/text) Lapiz ePub 3 01-29-2010 01:11 PM
Forget coffee table books-- how about a kitchen table book? ardeegee Lounge 10 12-02-2009 12:00 PM


All times are GMT -4. The time now is 12:13 PM.


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