Jump to content

How to deal with this photo ?


Rommeo

Recommended Posts

I have a "wrapper", In wrapper I have a "news" div.

My problem is, I made the "news"-div-bottom dotted. But when I run it, It does not see the photo, It ends where the text ends(photo and text are together). I want to make the bottom dotted ( where the photo ends )

Please check attachment photo, you will see it clearly ;

http://img150.imagevenue.com/img.php?image=35492_problem_122_723lo.jpg

th_35492_problem_122_723lo.jpg

 

my html is :

<body>
<div id="wrapper">
  <div id="news"><img src="federer.jpg" width="124" height="121" class="photo">Federer is ready !(here is inside the news div)
  </div>
</div>
</body>

 

and my css file is :

#wrapper {
margin: 0px;
padding: 0px;
width: 200px;
}
#news {
margin: 0px;
padding: 0px;
width: 200px;
border-bottom-width: 1px;
border-bottom-style: dotted;
}
.photo {
margin: 0px;
padding: 0px;
float: left;
}

Was trying to solve this problem for hours, tried everything -div inside the div, float left, clear both did not work.. What should I do to make it longer enough ?

Link to comment
https://forums.phpfreaks.com/topic/176436-how-to-deal-with-this-photo/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.