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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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.
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.
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..).
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

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/>
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.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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.
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; }
Revolution9Author Commented:
Padas - you're a freaking genius.  Thanks for the complete and easy to follow answer.  Thank you bro!!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
HTML

From novice to tech pro — start learning today.