View Single Post
Old 06-01-2010, 09:22 AM   #1
Pablo
Guru
Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.
 
Pablo's Avatar
 
Posts: 722
Karma: 2541163
Join Date: Mar 2009
Location: Rosario, Argentina
Device: SONY PRS-505, PRS-T2
WIDTH and HEIGHT in <img> tags

Maybe this was asked before, but I really can't find it:

In my source html file I have the following
Code:
<IMG style="WIDTH: 365px; HEIGHT: 47px" src="BdIm__2.png" border=0>
When I import with Sigil, I get:

Code:
img.sgc-4 {WIDTH: 365px; HEIGHT: 47px}
and
Code:
<img class="sgc-4" border="0" src="../Images/BdIm__2.png" />
The question is: Do I really need to include WIDTH and HEIGHT?
If I delete them, it seems to work Ok, and the resulting CSS is simpler.
And what about "border"?

Last edited by Jellby; 06-01-2010 at 01:26 PM. Reason: Fixed typo in title
Pablo is offline   Reply With Quote