• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Wrapping Text around a Picture

New Here ,
Aug 29, 2009 Aug 29, 2009

Copy link to clipboard

Copied

Sorry, I am new to this. I have Dreamweaver 8. How do I put a picture on the right of a frame and have the text "Wrap around" it on the left?

TOPICS
How to

Views

42.4K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Aug 29, 2009 Aug 29, 2009

Copy link to clipboard

Copied

Not sure what your whole page is like but you can float your image to the right and text will automatically wrap on the left.

Just add as following:

<img style="float:right"...>

To learn more you may refer to followiing link also:

http://codex.wordpress.org/Wrapping_Text_Around_Images

Regards,

vinay

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 24, 2013 Feb 24, 2013

Copy link to clipboard

Copied

thank you very much this works grate just to try and help other out abit more add the link to ur pic and the size and ur url and where alt is put something that contains ur domain name its better in google for you

<img src="addthelinktourpichere" width="180" style="float:left" height="150" alt="Laptoprepaircourses" longdesc="    " />

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 29, 2009 Aug 29, 2009

Copy link to clipboard

Copied

You do this with CSS floats and margins like so:

http://alt-web.com/DEMOS/CSS2-Captions-on-floated-images.shtml

Please don't use Frames in the HTML sense.  They're terrible to work with and frustrating for site visitors.

http://apptools.com/rants/framesevil.php

Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media  Specialists
www.alt-web.com/
www.twitter.com/altweb
www.alt-web.blogspot.com

Nancy O'Shea— Product User, Community Expert & Moderator

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Aug 29, 2009 Aug 29, 2009

Copy link to clipboard

Copied

Oh...I thought frame referred to create an image frame in general...(can't help but to think like a designer all the time )

Yes as Nancy said Frames are a strict NO NO...

Regards,

Vinay

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 29, 2009 Aug 29, 2009

Copy link to clipboard

Copied

Nancy, Again, sorry. I am new to this.

Do I have to do this with HTML code? Is there a tool I can click on in dreamweaver to make this happen?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 29, 2009 Aug 29, 2009

Copy link to clipboard

Copied

Dreamweaver is a web authoring tool;  not a drag & drop desktop publishing app.  It does many time saving things for you to save you from hand coding  but it's only as good as the skills you bring to the table.  Working in code view is similar to checking  under the hood of your car.  You  need to do it in order to keep everything running smoothly.

Start here:

HTML & CSS Tutorials - http://w3schools.com/

When you understand the basics, work your way through the following tutorials.

From Tables to CSS Web Design Part 1 -
http://www.adobe.com/devnet/dreamweaver/articles/table_to_css_pt1.html

From  Tables to CSS Web Design Part 2 -
http://www.adobe.com/devnet/dreamweaver/articles/table_to_css_pt2.html

Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media  Specialists
www.alt-web.com/
www.twitter.com/altweb
www.alt-web.blogspot.com

Nancy O'Shea— Product User, Community Expert & Moderator

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Aug 29, 2009 Aug 29, 2009

Copy link to clipboard

Copied

Go up to Insert | Image, find your image and click OK. A dialog box will pop up asking your to put in your Alt Text, (A description of the image)do that as well.

Now switch to split view, click once on the image in design view, the code in code view will hightlight.  Hit Control X to cut this code out, (thus deleting the image) and place your curser in the text close to where you want the image to be, hit control V to paste the image back in.

Your code will look like this

<img src="images/picturefilename.png" alt="The alt text you already added" />

NOw just like Vinay said, you will add style="float:right;"  to  the above code directly after the png", so it will look like this.

<img src="images/picturefilename.png" style="float:right;"  alt="The alt text you already added" />

You may want to reposition (cut and paste same as above) once you see how it lays out.

Then pat yourself on the back, you just worked with HTML code.

Gary

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 29, 2009 Aug 29, 2009

Copy link to clipboard

Copied

Don't forget about float clearing.  

CSS:


.clearing {/** to clear floats after they are not needed **/
clear:both;
height:1px;
width:100%;

}

HTML:

<br class="clearing" /> <!--apply to <br> <p> <hr> or <div>  to clear floats -->

Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media  Specialists
www.alt-web.com/
www.twitter.com/altweb
www.alt-web.blogspot.com

Nancy O'Shea— Product User, Community Expert & Moderator

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Aug 29, 2009 Aug 29, 2009

Copy link to clipboard

Copied

Nancy O. wrote:

Don't forget about float clearing.  

Hey Nancy,

but you don't have to clear an image every time though.  I hardly ever use a clearing if I'm floating images left or right and never had a problem  🙂

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 30, 2009 Aug 30, 2009

Copy link to clipboard

Copied

Hey Nancy,

but you don't have to clear an image every time though.

I know, Nadia. Most times this is perfectly fine.  But  telling people about floats without showing them how to clear them is like handing someone a slice of bread and calling it a  sandwich.  Something's been left out.

To illustrate what clearing does, look at the following screen shots.

#1 - No float clearing.

"Float right" text moves up and wraps around the "float left" image.

NoFloatClearing.gif

#2 - With Float Clearing

"Float right" text remains below "float left" image.

WithFloatClearing.gif

Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media  Specialists
www.alt-web.com/
www.twitter.com/altweb
www.alt-web.blogspot.com

Nancy O'Shea— Product User, Community Expert & Moderator

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Aug 31, 2009 Aug 31, 2009

Copy link to clipboard

Copied

Thanks for that Nancy,

I normally think of floating images so that text 'floats' around them no matter which way the images are floated on the page.  I guess people would have a need to have the 'break' in text, before they float an image on the opposite side.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Aug 31, 2009 Aug 31, 2009

Copy link to clipboard

Copied

Or just to keep the relevant paragraph aligned with the relevant picture.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Aug 31, 2009 Aug 31, 2009

Copy link to clipboard

Copied

Kath-H wrote:

Or just to keep the relevant paragraph aligned with the relevant picture.

Yep, that's how I pretty much do it too.  I doubt I've ever once had to use a clearing float when floating images  🙂

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Aug 31, 2009 Aug 31, 2009

Copy link to clipboard

Copied

??? I do it all the time (doing it now) because the paragraph is shorter than I want the picture to appear.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Aug 29, 2009 Aug 29, 2009

Copy link to clipboard

Copied

Why teach to use an inline style, when it's better in the stylesheet or head of the document so it can be used as many times as needed?  🙂

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Apr 06, 2013 Apr 06, 2013

Copy link to clipboard

Copied

LATEST

I wanted to wrap text arond an FLV player. I floated the player left, and the text wrapped as hoped, except that I wanted it to wrap over the top too, with the player embedded in the text. But when I would move the player down, it left a blank zone over the top-- the text would not fall in over the top, leaving a nice big white area. Nothing semed to work-- tweaking posiitonong, margins, clearing floats, nothing. THen I remembered the advice here about inserting the image in the text close to where you want to position it. SO I went into Code View and put the cursor right in the middle of a paragraph, and pasted-in the FLV player. That worked!

So I thought I'd post this in case (1) it would help anyone else, or (2) what I did was completely wrong even tho it worked, and someone more knowledgeable than me can tell me how a real webmaster would do it! (DW CS6)

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Aug 29, 2009 Aug 29, 2009

Copy link to clipboard

Copied

You need to be in code view for the following:

In the head of your document just before the closing </head> tag.  copy and paste the following style rules:

<style type="text/css">


/* floats an image right, so text wraps around it */
.imgright {
    float: right;
    padding: 2px;
    margin-left: 10px;
}

/* floats an image left, so text wraps around it */
.imgleft {
    float: left;
    padding: 2px;
    margin-right: 10px;
    }
</style>

In Design View, select your image.  Look at the tag selector above the Property Inspector and you'll see the <img> tag.

Right click on the tag and select "Class".  You should see two classes.  imgright and imgleft.

Select imgright.  This floats the image to the right.   If you want to have the image on the left, choose the .imgleft class.

The HTML will look like this when the class has been applied to the image.

<img src="79267-org.jpg" alt="" width="113" height="91" class="imgright" />

You can use this as many times as you like on a page because we are using a class rule not an ID (#) which can only be used once per page.

set-class.jpg

Example can be see here

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines