Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 04-25-2013, 05: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, 07:47 PM   #2
theducks
Grand Sorcerer
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: 15,268
Karma: 6020309
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
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 offline   Reply With Quote
Old 04-26-2013, 11: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,086
Karma: 1444487
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, 11:57 AM   #4
theducks
Grand Sorcerer
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: 15,268
Karma: 6020309
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
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 offline   Reply With Quote
Old 04-26-2013, 03: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,086
Karma: 1444487
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

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


All times are GMT -4. The time now is 04:46 AM.


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