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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.