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

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 01-18-2012, 11:29 AM   #121
bate23bate23
Junior Member
bate23bate23 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jan 2012
Device: transformer
columns?

is it possible to make columns for full screen mode. i would like to have columns because reading long lines can be a hassle and reading in a smaller window is distracting because of everything else on the screen. i'm no computer expert but i did try googliing how to make columns in for css but they all involved tags and classes being added to html page. i just wanted to have the 2 equal columns with content flowing from the first to the second column. is that even possible without using specific tags and classes? if not i think it should be a feature added to calibre's options.

Last edited by bate23bate23; 01-18-2012 at 11:32 AM. Reason: typos
bate23bate23 is offline   Reply With Quote
Old 01-18-2012, 11:46 AM   #122
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 25,265
Karma: 4961457
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Click preferences in the viewer, set the max view width to whatever you want and make it full screen
kovidgoyal is offline   Reply With Quote
Old 01-18-2012, 12:02 PM   #123
bate23bate23
Junior Member
bate23bate23 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jan 2012
Device: transformer
Quote:
Originally Posted by kovidgoyal View Post
Click preferences in the viewer, set the max view width to whatever you want and make it full screen
when i do that there is unnecessary empty space. if there were columns it would be much more efficient. though it will have to do for now.
thanks for the fast reply!
hopefully we will see this feature added to calibre in the near future.
bate23bate23 is offline   Reply With Quote
Old 01-22-2012, 05:33 PM   #124
zimreader
Junior Member
zimreader began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jan 2012
Device: pc
Quote:
Originally Posted by moodjbow View Post
OK, found the answer myself here:
http://blog.calibre-ebook.com/2011/0...re-viewer.html
@MplsGirl - this should apply to your case as well - use css statements with !important; at the end to override epub embedded formatting, something like
p {
margin-bottom: 1.5em !important; }
Thanks for this! I used your code, changed the colors (kind of like old WP for DOS I think, yellow on blue), and found the following rather pleasing to my eyes:
Code:
body {
color: rgb(215,215,0);
background-color:rgb(0,0,205);
line-spacing:1.8;
width: 33em;
padding: 2em 3em;
border: 1px solid #ccc;
margin: 0 auto;
font-family: "Book Antiqua", Palatino, serif;
text-align: justify;
text-indent: 0; }
h1 {
font-size: 2.5em;
font-weight: bold;
text-align: center;
font-family: "Monotype Corsiva", "Apple Chancery", fantasy;
border: 1px solid #ccc;
border-radius: 10px; }
h2, h3, h4 {
font-weight: bold;
text-align: center;
border: 1px solid #ccc;
border-radius: 10px; }
h2 + p:first-line {
font-variant: small-caps;
font-size: 1.1em; }
h2 + p:first-letter {
float: left;
font-size: 2.5em;
font-weight: bold;
font-family: "Monotype Corsiva", "Apple Chancery", fantasy;
margin: -8px 8px; }
h3 + p:first-line {
font-variant: small-caps;
font-size: 1.1em; }
h3 + p:first-letter {
float: left;
font-size: 2.5em;
font-weight: bold;
font-family: "Monotype Corsiva", "Apple Chancery", fantasy;
margin: -8px 8px; }
h4 + p:first-line {
font-variant: small-caps;
font-size: 1.1em; }
h4 + p:first-letter {
float: left;
font-size: 2.5em;
font-weight: bold;
font-family: "Monotype Corsiva", "Apple Chancery", fantasy;
margin: -8px 8px; }
p {
margin-bottom: 1.5em !important; } p + p {
margin-top: 0; }
zimreader is offline   Reply With Quote
Old 02-14-2012, 09:39 PM   #125
nirazo
Junior Member
nirazo began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Feb 2012
Device: none
Where and how to put these codes in mine calibre? i din't place to keep it. Plz help me out.


Regards,
Nirazo
nirazo is offline   Reply With Quote
Old 02-14-2012, 09:45 PM   #126
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 14,100
Karma: 5468860
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by nirazo View Post
Where and how to put these codes in mine calibre? i din't place to keep it. Plz help me out.


Regards,
Nirazo
Use the Gears (preferences) in the Viewer program, The 3rd tab is all for you
theducks is online now   Reply With Quote
Old 02-20-2012, 11:24 AM   #127
wpcreader
Newbie
wpcreader began at the beginning.
 
wpcreader's Avatar
 
Posts: 6
Karma: 10
Join Date: Jan 2012
Location: "Lowcountry", SC, USA
Device: none
I don't know anything about how to adjust a CSS script so please forgive me. I am trying to use:


body
{
color:rgb(0,0,0) !important;
background-color:rgb(200,200,200);
text-align:justify;
line-spacing:1.8;
margin-top:1px;
margin-bottom:1px;
margin-right:10px;
margin-left:10px;

-webkit-column-count: 2;
-webkit-column-gap: 1em;
-webkit-column-rule: 1px dotted;

height: 650px;
width:1200px

text-indent: 2em;
}
h1, h2, h3, h4, h5, h6
{
color:black;
text-align:center;
font-style:italic;
font-weight:bold;
}

to have a two column viewing to read, like an actual open book. It was originally posted by carthoris.

When I input this, it opens as two columns and looks great. When I turn a page, in any way, the book advances hundreds of pages @ a time. Please advize on how to make this work correctly. Thanks, Phil.

I have discovered all pages are viewable, I have to scroll left to right on the bottom scroll bar. Is there code to [my guess] create a page break after every other column.

Thanks.

Last edited by wpcreader; 02-20-2012 at 01:46 PM.
wpcreader is offline   Reply With Quote
Old 02-25-2012, 11:59 AM   #128
pendeverNM
Junior Member
pendeverNM began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Feb 2012
Device: Sony PRS-505
Unhappy Squashed text vertically

I'm a newby, and after reading this thread, have employed the offered CSS text to control the viewer ... but no matter what I do with it, or my choices for font or its sizes, the display looks like each line has been sat on. (When I tried to copy a sample here, it reproduced as normal, which is not what's on my computer viewing screen).


My style sheet is:

body {color:rgb(0,0,0);
background-color:rgb(228,226,224);
text-align:justify;
line-spacing:2;!important;
margin-top:0px;
margin-bottom:4px;
margin-right:50px;
margin-left:50px;
text-indent:3em;}
h1, h2, h3, h4, h5, h6
{color:black;
text-align:left;
font-style:italic;
font-weight:bold;}
pendeverNM is offline   Reply With Quote
Old 03-27-2012, 06:01 PM   #129
rgponce
Junior Member
rgponce began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Mar 2012
Location: Brazil
Device: Galaxy Ace
My style sheet:

body {
color: #393939;
background:#F9F0C9 url('file:///C:/Program Files (x86)/Calibre2/resources/images/old_paper.jpg');
text-align:justify;
line-spacing:1.8;
margin-right:8em !important;
margin-left:8em !important;
}
p {
text-indent:2.5em !important;
padding-bottom:0.5em;
font-family: "Book Antiqua", Palatino, serif !important;
}
h1, h2, h3, h4, h5, h6, .p6 {
color: #330000 !important;
border-bottom: 2px solid #330000 !important;
text-align:right !important;
font-style:italic !important;
font-weight:bold !important;
font-size: 1.3em !important;
}
::selection {
background: #FADC5C;
}

image used as background:
rgponce is offline   Reply With Quote
Old 06-15-2012, 04:42 AM   #130
vicissitudes
Junior Member
vicissitudes began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jun 2012
Device: laptop
Smile REALLY thanks!

really helpful to me! you bailed me out.
vicissitudes is offline   Reply With Quote
Old 06-15-2012, 04:49 AM   #131
vicissitudes
Junior Member
vicissitudes began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jun 2012
Device: laptop
Smile you bailed me out!

Quote:
Originally Posted by Ralob View Post
My personal CSS style is extremely basic, but it does exactly what I want- proper indentation for all paragraphs, adequate spacing between lines, background color that is easy on the eyes, and centered headings. Very basic but it does its job.

body {color:rgb(0,0,0);
background-color:rgb(174,174,174);
text-align:justify;
line-spacing:1.8;
margin-top:0px;
margin-bottom:4px;
margin-right:50px;
margin-left:50px;
text-indent:3em;}
h1, h2, h3, h4, h5, h6
{color:black;
text-align:center;
font-style:italic;
font-weight:bold;}


really thanks!
vicissitudes is offline   Reply With Quote
Old 06-15-2012, 07:26 AM   #132
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 14,100
Karma: 5468860
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by rgponce View Post
My style sheet:

body {
color: #393939;
background:#F9F0C9 url('file:///C:/Program Files (x86)/Calibre2/resources/images/old_paper.jpg');
text-align:justify;
line-spacing:1.8;
margin-right:8em !important;
margin-left:8em !important;
}
p {
text-indent:2.5em !important;
padding-bottom:0.5em;
font-family: "Book Antiqua", Palatino, serif !important;
}
h1, h2, h3, h4, h5, h6, .p6 {
color: #330000 !important;
border-bottom: 2px solid #330000 !important;
text-align:right !important;
font-style:italic !important;
font-weight:bold !important;
font-size: 1.3em !important;
}
::selection {
background: #FADC5C;
}

image used as background:
The background must be embedded in your book if you wish it to work on any other device. In Sigil, the source would be (in the) "../Images /old_paper.jpg"
theducks is online now   Reply With Quote
Old 06-15-2012, 07:33 AM   #133
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 8,735
Karma: 12488297
Join Date: Feb 2009
Location: North Carolina
Device: Nexus 7
Quote:
Originally Posted by theducks View Post
The background must be embedded in your book if you wish it to work on any other device. In Sigil, the source would be (in the) "../Images /old_paper.jpg"
Good info, but off topic. This thread is all about calibre's viewer css not getting the css to work in a book.
DoctorOhh is offline   Reply With Quote
Old 06-15-2012, 07:38 AM   #134
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 14,100
Karma: 5468860
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by dwanthny View Post
Good info, but off topic. This thread is all about calibre's viewer css not getting the css to work in a book.

My oops!
theducks is online now   Reply With Quote
Old 06-20-2012, 09:49 AM   #135
werewolfery
Junior Member
werewolfery began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jul 2010
Device: ipod touch
Hi there another vewbie to the whole css stuff. so I managed to get a nice set of stuff for both day and night reading using my little 11inch notebook, is there any way to make something that could switch between my day and night settings rather than me copying and pasting the codes every 12 hours or so...

thanks
werewolfery 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
Custom CSS for output deckoff Calibre 1 08-28-2010 11:55 PM
ePub with custom .css on a 505 dicknskip Sony Reader Dev Corner 3 06-09-2010 11:34 PM
User stylesheets for ePub files salty-horse Sony Reader Dev Corner 12 02-23-2010 07:44 AM
ePub conversion: override existing css with a custom one sbin Calibre 1 01-09-2010 04:03 AM
Calibre's generated css for epub brewt Calibre 7 12-29-2008 09:59 AM


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


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