![]() |
#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 |
![]() |
![]() |
![]() |
#2 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,136
Karma: 144284184
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 | |
|
![]() |
#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 |
![]() |
![]() |
![]() |
#4 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,136
Karma: 144284184
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?
|
![]() |
![]() |
![]() |
#5 |
Enthusiast
![]() Posts: 25
Karma: 10
Join Date: Feb 2013
Device: None
|
Yes, they were in place before it came into Sigil.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,136
Karma: 144284184
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?
|
![]() |
![]() |
![]() |
#7 |
Enthusiast
![]() Posts: 25
Karma: 10
Join Date: Feb 2013
Device: None
|
Do you mean in Sigil?
The ePub was generated in InDesign originally |
![]() |
![]() |
![]() |
#8 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,136
Karma: 144284184
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.
|
![]() |
![]() |
![]() |
#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;} |
![]() |
![]() |
![]() |
#10 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,908
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:
Anchors are links Links get underlined by default the <a takes precedence over your span |
|
![]() |
![]() |
![]() |
#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> |
![]() |
![]() |
![]() |
#12 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,908
Karma: 60358908
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 |
![]() |
![]() |
![]() |
#13 | |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,312
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/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> |
|
![]() |
![]() |
![]() |
#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? |
![]() |
![]() |
![]() |
#15 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,312
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/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... |
![]() |
![]() |
![]() |
|
![]() |
||||
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 |