Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 12-14-2012, 01:39 AM   #1
JanGLi
Junior Member
JanGLi began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Dec 2012
Location: Pakistan
Device: Kindle 4
CSS Problem

Hi, I am new at HTML and CSS.
I formatting an an EBOOK. I want to add CSS file. I have created one in sigil. But when i compile it it gives me warning. I have attached a picture of it.
I think i have to add css in every xhtml file. I have tried it but it is still not working. Picture is attached.

Please help and correct me where i am wrong.
Regards.
Attached Thumbnails
Click image for larger version

Name:	content-OPF.jpg
Views:	143
Size:	339.6 KB
ID:	97660   Click image for larger version

Name:	CSS-link.jpg
Views:	160
Size:	430.3 KB
ID:	97661  
JanGLi is offline   Reply With Quote
Old 12-14-2012, 02:58 AM   #2
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,724
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
The path to the stylesheet is missing the folder name. Try:

Code:
<link href="../Styles/STYLE1.css" rel="stylesheet" type="text/css" />
Doitsu is offline   Reply With Quote
Advert
Old 12-14-2012, 04:27 AM   #3
theducks
Well trained by Cats
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: 31,003
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by Doitsu View Post
The path to the stylesheet is missing the folder name. Try:

Code:
<link href="../Styles/STYLE1.css" rel="stylesheet" type="text/css" />
Close

The link in the Red section says: ../Text and as you pointed out it should be in the : ../Styles folder

OP
we code using .. (back a level on the file path) because all the folders shown in the book browser are on the same level

which translates in the device to: OEBPS/

In the future, save yourself this grief (Sigil 6.x) and let Sigil do it.
Right click on the section name in the book browser: Link style sheet: (tick the sheet(s) on the list that this section will need): OK
theducks is offline   Reply With Quote
Old 12-15-2012, 04:38 AM   #4
JanGLi
Junior Member
JanGLi began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Dec 2012
Location: Pakistan
Device: Kindle 4
Solved

Thank you. It worked. For some unknown reason i didn't see the "link style sheet"
JanGLi is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sigil 0.6.0 & CSS problem? michaelbr Sigil 2 11-21-2012 08:38 PM
Problem with CSS. mattst Kindle Formats 8 05-18-2012 01:13 AM
CSS problem, can someone help me ? Nick_1964 General Discussions 6 02-07-2012 11:02 AM
CSS Styles From InDesign 5.5 Export Problem SamL ePub 4 11-10-2011 01:46 PM
Justification problem even with extra css hiperlink Recipes 2 03-09-2011 08:40 AM


All times are GMT -4. The time now is 04:09 PM.


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