05-28-2013, 10:38 AM | #1 |
Enthusiast
Posts: 25
Karma: 10
Join Date: Feb 2013
Device: None
|
Removing underlines in Sigil/conflicts with sgc-#?
Hi all
I have been trying to figure this out for ages, but had no luck, so thought I should ask the experts. I have generated an ePub file from InDesign CS5.5. I then run it into Sigil to do some tweaking. I wanted to try and remove the underlines from internal hyperlinks within the file. I have tried text-decoration:none on the relevant CSS, but still no changes. I then discovered the span classes than Sigil inserts (sgc-#). Thinking this may be causing the problem, I also inserted text-decoration:none into the html header alongside the inline styles for sgc. Still this didnt remove the underlining. Does anyone have any idea of other things I could try? Many thanks in advance Dan |
05-28-2013, 10:40 AM | #2 |
Resident Curmudgeon
Posts: 74,498
Karma: 129668758
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Turn off tidy. It will stop generating those sgc-# styles that should not be there.
|
Advert | |
|
05-28-2013, 10:49 AM | #3 |
Enthusiast
Posts: 25
Karma: 10
Join Date: Feb 2013
Device: None
|
Hi JSWolf
Thanks for that, I turned off tidy and it did remove the sgc tags. However, those underlines are still remaining. Can you think of anything I could do to remove the underlinings? Thanks |
05-28-2013, 10:51 AM | #4 |
Resident Curmudgeon
Posts: 74,498
Karma: 129668758
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Were the underlines in the ePub before it was loaded into Sigil?
|
05-28-2013, 10:53 AM | #5 |
Enthusiast
Posts: 25
Karma: 10
Join Date: Feb 2013
Device: None
|
Yes, they were in place before it came into Sigil.
|
Advert | |
|
05-28-2013, 10:54 AM | #6 |
Resident Curmudgeon
Posts: 74,498
Karma: 129668758
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
How are the underlines coded?
|
05-28-2013, 10:56 AM | #7 |
Enthusiast
Posts: 25
Karma: 10
Join Date: Feb 2013
Device: None
|
Do you mean in Sigil?
The ePub was generated in InDesign originally |
05-28-2013, 11:12 AM | #8 |
Resident Curmudgeon
Posts: 74,498
Karma: 129668758
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Please post a sample of the code with an underline.
|
05-28-2013, 11:27 AM | #9 |
Enthusiast
Posts: 25
Karma: 10
Join Date: Feb 2013
Device: None
|
'See example texts on 119' is the underlined text.
<span class="Hyperlinks" style="font-size:1em;">See Example texts on</span> <span class="Hyperlinks" style="font-size:1em;">119</span></a></p> and the Hyperlinks CSS it refers to is: span.Hyperlinks { font-family : "Sabon MT Std", serif; font-weight : normal; font-style : normal; font-size : 0.92em; text-decoration : none; font-variant : normal; color : #000000;} |
05-28-2013, 11:33 AM | #10 | |
Well trained by Cats
Posts: 29,926
Karma: 55705602
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Anchors are links Links get underlined by default the <a takes precedence over your span |
|
05-28-2013, 11:37 AM | #11 |
Enthusiast
Posts: 25
Karma: 10
Join Date: Feb 2013
Device: None
|
Thanks for this.
This is the full section of code. Does this still look wrong? <p class="examples_texts_ref"><img alt="example_texts.jpg" class="image" src="../Images/example_texts_fmt.jpeg" width="7%" /> <a id="See-Example-Texts_Celebrity-84"></a><a href="../Text/insides_52_kindle-60.html#Example_texts_Geocaching"><span class="Hyperlinks" style="font-size:1em;">See Example texts on</span> <span class="Hyperlinks" style="font-size:1em;">119</span></a></p> |
05-28-2013, 11:48 AM | #12 |
Well trained by Cats
Posts: 29,926
Karma: 55705602
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
a { color: black; text-decoration: none; }
make all anchors Black and no underline |
05-28-2013, 11:49 AM | #13 | |
A Hairy Wizard
Posts: 3,117
Karma: 18727091
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Quote:
<a href="..."><span class="Hyperlinks" style="font-size:1em;">See Example texts on 119</span></a></p> Personally I don't like putting an extra span inside of another tag when you can just apply the style to the tag itself, like this: <a href="..." class="Hyperlinks" style="font-size:1em;">See Example texts on 119</a></p> or even more compact - just style the <a> tag itself in the css: a {font-family : "Sabon MT Std", serif; font-weight : normal; font-style : normal; font-size : 0.92em; 1em; text-decoration : none; font-variant : normal; color : #000000; inherit} <a href="...">See Example texts on 119</a></p> |
|
05-28-2013, 11:49 AM | #14 |
Enthusiast
Posts: 25
Karma: 10
Join Date: Feb 2013
Device: None
|
Thanks!
Do you mean to do this inline, or in the head of the html, or in the css? |
05-28-2013, 11:53 AM | #15 |
A Hairy Wizard
Posts: 3,117
Karma: 18727091
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Dang...I got ninja'd by 3 posts!!! must be a slow-typing day!
I like to use "inherit" in my link color so the links don't disappear if the reader chooses "night mode"...the link will stay whatever color the normal text is... |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Remove contents page underlines in epub book using Sigil | Andy Sinden | Sigil | 30 | 12-16-2012 10:09 AM |
removing top margin/header/border with sigil genereated epub | jezzad | ePub | 9 | 03-16-2012 03:35 PM |
Mounted Device Conflicts with Toolbar Settings | LaneLester | Calibre | 4 | 08-11-2011 04:42 PM |
Can I stop Sigil from inserting sgc formatting commands? | ramjet1953 | Sigil | 4 | 11-22-2010 11:59 AM |
Hmmm, SGC's being added weirdness | Hitch | Sigil | 8 | 09-26-2010 04:01 AM |