![]() |
#1 |
Junior Member
![]() 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. |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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" />
|
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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:
![]() 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/ ![]() 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 |
|
![]() |
![]() |
![]() |
#4 |
Junior Member
![]() 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"
![]() |
![]() |
![]() |
![]() |
|
![]() |
||||
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 |