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

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 01-11-2017, 03:56 AM   #1
chaot
Head of lunatic asylum
chaot began at the beginning.
 
chaot's Avatar
 
Posts: 313
Karma: 10
Join Date: Jun 2012
Location: UTC +1
Device: Tolino Vision 3HD
CSS: Content left and right - in same line



Who knows a ePub2 supported CSS for to put some content left and right - in the same line?
chaot is offline   Reply With Quote
Advert
Old 01-11-2017, 04:31 AM   #2
jbacelar
Interested in the matter
jbacelar is that somebody.jbacelar is that somebody.jbacelar is that somebody.jbacelar is that somebody.jbacelar is that somebody.jbacelar is that somebody.jbacelar is that somebody.jbacelar is that somebody.jbacelar is that somebody.jbacelar is that somebody.jbacelar is that somebody.
 
jbacelar's Avatar
 
Posts: 197
Karma: 45000
Join Date: Dec 2011
Location: Spain, south coast
Device: Pocketbook Touch HD
You can take a look at the solution presented by RbnJrg on 24.05.13
Attached Files
File Type: epub Two Cols.epub (4.3 KB, 23 views)
jbacelar is offline   Reply With Quote
Old 01-11-2017, 05:36 AM   #3
chaot
Head of lunatic asylum
chaot began at the beginning.
 
chaot's Avatar
 
Posts: 313
Karma: 10
Join Date: Jun 2012
Location: UTC +1
Device: Tolino Vision 3HD
No, that's not meant!

I havn't expressed myself comprehensively enough: There are chapters with paragraphs/texts. End of last paragraph follows (or should follow) right side in same line a Reset Bottom TOP (to the beginning of the Chapter).
chaot is offline   Reply With Quote
Old 01-11-2017, 07:01 AM   #4
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 46,014
Karma: 33309536
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, Sony PRS-650, Sony PRS-T1, nook STR, iPad 4, iPhone 5
Quote:
Originally Posted by chaot View Post
No, that's not meant!

I havn't expressed myself comprehensively enough: There are chapters with paragraphs/texts. End of last paragraph follows (or should follow) right side in same line a Reset Bottom TOP (to the beginning of the Chapter).
If you do not mean left/right margin, then what do you mean?
JSWolf is offline   Reply With Quote
Old 01-11-2017, 07:05 AM   #5
fbrzvnrnd
Addict
fbrzvnrnd has not lost his or her sense of wonder.fbrzvnrnd has not lost his or her sense of wonder.fbrzvnrnd has not lost his or her sense of wonder.fbrzvnrnd has not lost his or her sense of wonder.fbrzvnrnd has not lost his or her sense of wonder.fbrzvnrnd has not lost his or her sense of wonder.fbrzvnrnd has not lost his or her sense of wonder.fbrzvnrnd has not lost his or her sense of wonder.fbrzvnrnd has not lost his or her sense of wonder.fbrzvnrnd has not lost his or her sense of wonder.fbrzvnrnd has not lost his or her sense of wonder.
 
Posts: 225
Karma: 86664
Join Date: Feb 2009
Device: iLiad
I do not understand.
fbrzvnrnd is offline   Reply With Quote
Old 01-11-2017, 08:31 AM   #6
chaot
Head of lunatic asylum
chaot began at the beginning.
 
chaot's Avatar
 
Posts: 313
Karma: 10
Join Date: Jun 2012
Location: UTC +1
Device: Tolino Vision 3HD
Code:
<?xml version='1.0' encoding='utf-8'?>
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
  <title>Unknown</title>
  <link href="style_regex.css" rel="stylesheet" type="text/css"/>
</head>

<body class="bo_dy" id="top">

  <h3>Heading</h3>
  <p>[Paragraph is a few pages long]</p>
  <p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est. <a href="#top"><span class="return">Top</span></a></p>

</body>
</html>

Click image for larger version

Name:	return.png
Views:	40
Size:	29.8 KB
ID:	154102
return Status Quo!


Click image for larger version

Name:	return (wanted).png
Views:	53
Size:	23.5 KB
ID:	154103
return (wanted) So I would like to get it!
chaot is offline   Reply With Quote
Old 01-11-2017, 09:21 AM   #7
fbrzvnrnd
Addict
fbrzvnrnd has not lost his or her sense of wonder.fbrzvnrnd has not lost his or her sense of wonder.fbrzvnrnd has not lost his or her sense of wonder.fbrzvnrnd has not lost his or her sense of wonder.fbrzvnrnd has not lost his or her sense of wonder.fbrzvnrnd has not lost his or her sense of wonder.fbrzvnrnd has not lost his or her sense of wonder.fbrzvnrnd has not lost his or her sense of wonder.fbrzvnrnd has not lost his or her sense of wonder.fbrzvnrnd has not lost his or her sense of wonder.fbrzvnrnd has not lost his or her sense of wonder.
 
Posts: 225
Karma: 86664
Join Date: Feb 2009
Device: iLiad
try:

.return {display:block;
float:right}

in css
fbrzvnrnd is offline   Reply With Quote
Old 01-11-2017, 01:36 PM   #8
chaot
Head of lunatic asylum
chaot began at the beginning.
 
chaot's Avatar
 
Posts: 313
Karma: 10
Join Date: Jun 2012
Location: UTC +1
Device: Tolino Vision 3HD
@fbrzvnrnd Half-way success! Bottom Top appears on right side, only one line down.

This is'nt any malheur, if no other CSS exists, I am satisfied and thank you very much.
chaot is offline   Reply With Quote
Old 01-11-2017, 01:40 PM   #9
fbrzvnrnd
Addict
fbrzvnrnd has not lost his or her sense of wonder.fbrzvnrnd has not lost his or her sense of wonder.fbrzvnrnd has not lost his or her sense of wonder.fbrzvnrnd has not lost his or her sense of wonder.fbrzvnrnd has not lost his or her sense of wonder.fbrzvnrnd has not lost his or her sense of wonder.fbrzvnrnd has not lost his or her sense of wonder.fbrzvnrnd has not lost his or her sense of wonder.fbrzvnrnd has not lost his or her sense of wonder.fbrzvnrnd has not lost his or her sense of wonder.fbrzvnrnd has not lost his or her sense of wonder.
 
Posts: 225
Karma: 86664
Join Date: Feb 2009
Device: iLiad
Quote:
Originally Posted by chaot View Post
@fbrzvnrnd Half-way success! Bottom Top appears on right side, only one line down.

This is'nt any malheur, if no other CSS exists, I am satisfied and thank you very much.
Uh, R U sure? I'have only tried in web browser page and it works...
fbrzvnrnd is offline   Reply With Quote
Old 01-11-2017, 01:55 PM   #10
chaot
Head of lunatic asylum
chaot began at the beginning.
 
chaot's Avatar
 
Posts: 313
Karma: 10
Join Date: Jun 2012
Location: UTC +1
Device: Tolino Vision 3HD
Yes!

In calibre File Preview it works fine (in one line).

Last edited by chaot; 01-11-2017 at 03:32 PM. Reason: CHANGE: also → fine
chaot is offline   Reply With Quote
Old 01-11-2017, 01:57 PM   #11
dwig
Wizard
dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.
 
dwig's Avatar
 
Posts: 1,267
Karma: 2230068
Join Date: Dec 2004
Location: Paradise (Key West, FL)
Device: Current:Dell Venue 8 Pro - Retired:Kindle 3, Clie UX50, T415, ...
Quote:
Originally Posted by fbrzvnrnd View Post
Uh, R U sure? I'have only tried in web browser page and it works...
It may work fine in most web browsers, but that is a poor test. It may possibly work in some ePub renderers, but may very well fail in many others.

There is absolutely no way to force any HTML renderer (web browser, ePub reader, ...) to do anything. All you can do is "ask politely". The renderer will do what it pleases. Many legit CSS methods aren't supported by the ePub specs, either v02 or v03. Even those that are supported by the specs aren't supported by all ePub readers.
dwig is offline   Reply With Quote
Old 01-11-2017, 03:24 PM   #12
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 10,550
Karma: 10658014
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2
I would try remove the block statement in the CSS and see what happens. It may be that the block statement is forcing a new line in some rendering engines.

Dale
DaleDe is offline   Reply With Quote
Old 01-11-2017, 04:24 PM   #13
fbrzvnrnd
Addict
fbrzvnrnd has not lost his or her sense of wonder.fbrzvnrnd has not lost his or her sense of wonder.fbrzvnrnd has not lost his or her sense of wonder.fbrzvnrnd has not lost his or her sense of wonder.fbrzvnrnd has not lost his or her sense of wonder.fbrzvnrnd has not lost his or her sense of wonder.fbrzvnrnd has not lost his or her sense of wonder.fbrzvnrnd has not lost his or her sense of wonder.fbrzvnrnd has not lost his or her sense of wonder.fbrzvnrnd has not lost his or her sense of wonder.fbrzvnrnd has not lost his or her sense of wonder.
 
Posts: 225
Karma: 86664
Join Date: Feb 2009
Device: iLiad
Quote:
Originally Posted by dwig View Post
There is absolutely no way to force any HTML renderer (web browser, ePub reader, ...) to do anything. All you can do is "ask politely". The renderer will do what it pleases. Many legit CSS methods aren't supported by the ePub specs, either v02 or v03. Even those that are supported by the specs aren't supported by all ePub readers.
Welcome to the real world. I have suggested to try two css rules that are working in normal web pages. Oblivious a ebook designer has to check that those rules are working in most relevant ebook readers. And I suggested to try because I remember I used something similar in past.

f.
fbrzvnrnd 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
Signature: table possible? Left and right text on same line? Wiki-Link with alt name? Cyberman tM Lounge 5 03-31-2014 03:05 PM
Combining Class IDs In CSS to Control Left-Indent SeaCanary Sigil 13 02-24-2014 02:58 PM
Bug converting html css text-indent and left-margin bhoyt Conversion 15 01-24-2014 08:28 PM
Line after paragraph, CSS? Maggie-Me Sigil 8 01-23-2011 08:43 AM
How can I make a left-justify CSS for CoolReader? Sunspark Astak EZReader 1 06-07-2010 12:00 PM


All times are GMT -4. The time now is 03:42 PM.


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