inserting image into Dreamweaver HTML5 div

Help!!!  I had a developer create a page with an HTML5 div, but I can't insert an image using Dreamweaver's design view the way I used to do it.

Please check out www.sharonfarber.com/demo/bio.html

Did they screw up, or is it me?  How do I insert an image and style it with margins and caption tags?

Thanks so much in advance.
Revolution9Asked:
Who is Participating?
 
Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
One option is to add padding to the right and bottom of the image like below.

   <img src="images/bio_sfChair.jpg" width="220" height="312" align="left" style="padding-right:10px; padding-bottom:5px" alt="Sharon Farber">

Or keep the image with just the hight and width.

<img src="images/bio_sfChair.jpg" width="220" height="312"  alt="Sharon Farber">

Then in your style.css add the following code

p img {
      float: left;
      margin-right: 10px;
      margin-bottom: 10px;
}

Then any time you place an image after the p tag (paragraph), you will get the same padding.  Play with the numbers changing the 10 to see what you like the best.
0
 
Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
The page looks fine.    Just go to split or code view if you are having problem and insert your image in the same way on the code side.
0
 
Revolution9Author Commented:
Check out www.sharonfarber.com/demo/bio1.html

I can insert the image in code view, but need you to walk me through on how to style the image (since I can't click on only the image to create a new css rule).  I need to add a right and bottom margin and a caption.

Thanks.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
andreitexCommented:
I am not a Dreamweaver fan, but I know HTML/CSS.
So in the code of the page you have this:
    <div id="divMain1" class="slickscroll">
    <p>
    Award winning Composer <strong>Sharon Farber</strong>, originally from Israel, has
.
.
.
In addition, Sharon is the Music Director of <strong>Temple of the Arts in Beverly Hills</strong>. </p></div>

if you put a tag like <img src="image.jpg" alt="" /> anywhere in the <div></div> declaration you should be able to see the image (be aware that it must be in the same folder as the HTML file)

And also you should see it in the design section afterwards and modify it however you would like (captions,margins, etc..).
0
 
Revolution9Author Commented:
Even though I have the image placed as you suggested, I still cannot isolate the image in design view in order to style it.  For some reason, when I click on the image, the entire div is selected, with the copy and image, not just the image.  

<div id="divMain1" class="slickscroll">
    <p>
    <img src="images/bio_sfChair.jpg" width="220" height="312" align="left" alt="Sharon Farber">Award winning Composer <strong>Sharon Farber</strong>, originally from Israel, has received critical acclaim as a composer in the Concert world as well as that of Film and TV. She brings to her music influences from her Middle Eastern heritage as well as her extensive knowledge of Classical and Western music.<br/><br/>
0
 
Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
Try and avoid making changes in the design view other then changing words.  You will be better off in the end working in the code view or split view and directly editing the code.  A little learning curve but you will get better results in the end.
0
 
andreitexCommented:
ok.. than do it like this:

<div id="photo">
<img src="images/bio_sfChair.jpg" width="220" height="312" align="left" alt="Sharon Farber" />
<div id="caption">Caption text</div>
</div>

in css:
#photo { width: 230px; text-align:center; float:left; }
#caption { width: 230px; float:left; text-align:center; }
0
 
Revolution9Author Commented:
Padas - you're a freaking genius.  Thanks for the complete and easy to follow answer.  Thank you bro!!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.