Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 06-01-2010, 09:22 AM   #1
Pablo
Guru
Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.
 
Pablo's Avatar
 
Posts: 970
Karma: 4999999
Join Date: Mar 2009
Location: Rosario, Argentina
Device: SONY PRS-505, PRS-T2
WIDTH and HEIGHT in <img> tags

Maybe this was asked before, but I really can't find it:

In my source html file I have the following
Code:
<IMG style="WIDTH: 365px; HEIGHT: 47px" src="BdIm__2.png" border=0>
When I import with Sigil, I get:

Code:
img.sgc-4 {WIDTH: 365px; HEIGHT: 47px}
and
Code:
<img class="sgc-4" border="0" src="../Images/BdIm__2.png" />
The question is: Do I really need to include WIDTH and HEIGHT?
If I delete them, it seems to work Ok, and the resulting CSS is simpler.
And what about "border"?

Last edited by Jellby; 06-01-2010 at 01:26 PM. Reason: Fixed typo in title
Pablo is offline   Reply With Quote
Old 06-02-2010, 05:34 PM   #2
paulpeer
Zealot
paulpeer is on a distinguished road
 
paulpeer's Avatar
 
Posts: 147
Karma: 56
Join Date: Dec 2009
Location: Antwerpen
Device: iPhone, Sony PRS-505, EPUBreader
I would recommend that you do not use absolute values for width and height. In some cases it can be interesting to use "width: 100%" if you want the image to be page large.

Border or not is a matter of taste.
paulpeer is offline   Reply With Quote
Advert
Old 06-02-2010, 05:43 PM   #3
Pablo
Guru
Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.
 
Pablo's Avatar
 
Posts: 970
Karma: 4999999
Join Date: Mar 2009
Location: Rosario, Argentina
Device: SONY PRS-505, PRS-T2
Thanks for your answer!!!
Pablo is offline   Reply With Quote
Old 06-10-2010, 05:37 PM   #4
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,460
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Question

Quote:
Originally Posted by paulpeer View Post
I would recommend that you do not use absolute values for width and height. In some cases it can be interesting to use "width: 100%" if you want the image to be page large.

Border or not is a matter of taste.
Hi:

How does the width:100% parameter work when you covert epub to another format, i.e., .mobi; do you know if this functions in Kindle at all? This could save me a boatload of brain-damage if it does...

Hitch
Hitch is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Old Thread] Epub Output: Line Height greenapple Conversion 20 01-27-2013 09:27 AM
Fit PDF to screen height Hugo Amazon Kindle 15 01-21-2011 01:07 AM
Max-Height theducks Sigil 6 09-02-2010 05:40 PM
Epub line height problem dorotie Calibre 5 08-24-2010 03:23 PM
PRS-900 Help! Who can help me to pack the opt.img alansuyalun Sony Reader 5 05-08-2010 09:25 PM


All times are GMT -4. The time now is 02:39 PM.


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