Welcome visitor
* Login
* Register
It is currently January 17th, 2019, 12:26 am
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Client Side » HTML



Post new topic Reply to topic  [ 4 posts ] 
Author Message
  image with a line below
PostPosted: June 5th, 2009, 7:36 am 

Posts: 23
hi there,

im going crazy with a line that shows below an image. i've tried margin, padding and the line stills there. my code is
<div style="background-color: #ab3"><img src="hawaii.jpg"></div>
the background color is showing me the line that is below. if you need a picture let me know.


Top
 Profile  
 
  Re: image with a line below
PostPosted: June 5th, 2009, 7:58 am 

Posts: 55
<style type="text/css">
  img{display : block}
</style>


Top
 Profile  
 
  Re: image with a line below
PostPosted: June 5th, 2009, 8:06 am 

Posts: 23
thanks but that alter negatively some other images :(


Top
 Profile  
 
  Re: image with a line below
PostPosted: June 5th, 2009, 8:12 am 

Posts: 55
Ok then use a class to alter that single object:
<style type="text/css">
  #pict{display : block}
</style>


<img src="file.jpg" id="pict" />


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

FORUMS » Client Side » HTML


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron