Link to home
Start Free TrialLog in
Avatar of Revolution9
Revolution9

asked on

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.
Avatar of Scott Fell
Scott Fell
Flag of United States of America image

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.
Avatar of Revolution9
Revolution9

ASKER

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.
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..).
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/>
ASKER CERTIFIED SOLUTION
Avatar of Scott Fell
Scott Fell
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.
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; }
Padas - you're a freaking genius.  Thanks for the complete and easy to follow answer.  Thank you bro!!