Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 04-25-2013, 04:24 PM   #1
Alesorta
Junior Member
Alesorta began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Apr 2013
Device: Kindle amazon
IMG in Sigil

Hi everyone

I have an issue with sigil and I did not find any way to solve it.

I neet to enclose to my ebook some images, and I want them to have a border.
I applied a border to the tag as follow
Code:
<img src="xxxxx" border="1">
The problem is when I try to validate the document, sigil gives me this message
Code:
attibute 'border' is not declared for element 'img'
I then tried to delet the border attribute, adding on the other hand this code to the css
Code:
img {border: solid black 1px;}
The problem with this second case is that nothing appears around the image.

Any help?
Alesorta is offline   Reply With Quote
Old 04-25-2013, 06:47 PM   #2
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: 29,781
Karma: 54830978
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 Alesorta View Post
Hi everyone

I have an issue with sigil and I did not find any way to solve it.

I neet to enclose to my ebook some images, and I want them to have a border.
I applied a border to the tag as follow
Code:
<img src="xxxxx" border="1">
The problem is when I try to validate the document, sigil gives me this message
Code:
attibute 'border' is not declared for element 'img'
I then tried to delet the border attribute, adding on the other hand this code to the css
Code:
img {border: solid black 1px;}
The problem with this second case is that nothing appears around the image.

Any help?
It (the short form)may be order sensitive:

Width
Style
Color

when debugging, try using the long form
border-width: 1px ;
border-style: solid';
border-color: black;
theducks is online now   Reply With Quote
Old 04-26-2013, 10:54 AM   #3
mrmikel
Color me gone
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
Put border first: <img border="5" alt="" src="../Images/warpsychiatry_pic0010.jpg" />

It just tested it in Sigil and it worked.
mrmikel is offline   Reply With Quote
Old 04-26-2013, 10:57 AM   #4
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: 29,781
Karma: 54830978
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 mrmikel View Post
Put border first: <img border="5" alt="" src="../Images/warpsychiatry_pic0010.jpg" />

It just tested it in Sigil and it worked.
That will work, but does it validate?
I think this will validate:
Code:
<img style="border="5"" alt="" src="../Images/warpsychiatry_pic0010.jpg" />
theducks is online now   Reply With Quote
Old 04-26-2013, 02:55 PM   #5
mrmikel
Color me gone
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
That won't validate but this will:
<img style="border:5px solid black" alt="" src="../Images/warpsychiatry_pic0010.jpg" />

The above example is from w3schools.com.
http://www.w3schools.com/tags/att_img_border.asp
mrmikel is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with centering DIV and IMG rhino79 Sigil 8 04-23-2013 11:01 AM
<svg> to <img> codrutoctavian ePub 8 03-01-2012 08:54 PM
<img longdesc= traskilajussi EPUBReader 3 02-23-2011 08:15 AM
vfat.img pewterbot9 enTourage Archive 11 12-29-2010 06:41 PM
Can you decompile an IMG file? Nate the great Android Devices 3 06-06-2010 07:37 AM


All times are GMT -4. The time now is 12:42 PM.


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