WebArtz - The Web Design Forum
Welcome to WebArtz, Guest!

WebArtz is a nice place for discussions related to web designing and coding. We help our members to code their own website templates with HTML and CSS. We give them advice on various issues.

To know more about WebArtz Forum, visit the About Us page.

At the moment, you are viewing the forum as a guest. As a guest you can't make post and participate in discussions. You need to register and become a member of the forum. Click the register link below and become a part of this forum.

Thank You

WebArtz - The Web Design Forum
Welcome to WebArtz, Guest!

WebArtz is a nice place for discussions related to web designing and coding. We help our members to code their own website templates with HTML and CSS. We give them advice on various issues.

To know more about WebArtz Forum, visit the About Us page.

At the moment, you are viewing the forum as a guest. As a guest you can't make post and participate in discussions. You need to register and become a member of the forum. Click the register link below and become a part of this forum.

Thank You


You are not connected. Please login or register

View previous topic View next topic Go down  Message [Page 1 of 1]

1Text wrap around image? Empty Text wrap around image? Fri Feb 05, 2010 10:54 pm

karna

karna
Registered Member
Registered Member
hey, I am stuck at css. I have a paragraph and an image in it which is about 150 x 220 pixels. When I put image in paragraph it leaves blank space in paragraph. It shows the text above and below it. But it is not what I want.
I want the text in paragraph to wrap around it and not to leave space Neutral

any ideas?

2Text wrap around image? Empty Re: Text wrap around image? Sat Feb 06, 2010 12:22 am

ze_chaofan

ze_chaofan
Registered Member
Registered Member
Hello...

Can I have a screen capture of the problem, and the CSS you used ?

http://www.sos-forum.com/

3Text wrap around image? Empty Re: Text wrap around image? Sat Feb 06, 2010 9:36 am

karna

karna
Registered Member
Registered Member
Hi there ze_chaofan,
I have a simple one column layout. in which I have this html code.
Code:
<p class="intro">
<img src="intro-pic.jpg" width="150px" height="220px" />
lorem ipsum dolor sit amet lorem ipsum dolor sit amet lorem ipsum dolor sit amet lorem ipsum dolor sit amet lorem ipsum dolor sit ametlorem ipsum dolor sit amet lorem ipsum dolor sit amet lorem ipsum dolor sit amet lorem ipsum dolor sit amet lorem ipsum dolor sit amet

lorem ipsum dolor sit amet lorem ipsum dolor sit amet lorem ipsum dolor sit amet lorem ipsum dolor sit amet lorem ipsum dolor sit amet</p>

if you see this code in your browser you'll get what I am saying. the image shows first and then text.
You might have seen in some blogs where image is lying on left side and text goes on right side. I want the same thing.

4Text wrap around image? Empty Re: Text wrap around image? Sat Feb 06, 2010 11:40 am

Kratos

Kratos
Registered Member
Registered Member
Code:
 <img src="intro-pic.jpg" width="150px" height="220px" align=left/>

just replace your image code with this it should work fine

5Text wrap around image? Empty Re: Text wrap around image? Sat Feb 06, 2010 10:02 pm

karna

karna
Registered Member
Registered Member
That worked for me. Thanks Black Cat Very Happy

6Text wrap around image? Empty Re: Text wrap around image? Sun Feb 07, 2010 2:49 am

Kratos

Kratos
Registered Member
Registered Member
My pleasure...Since this appears to be solved any admin or mod can lock it Question

7Text wrap around image? Empty Re: Text wrap around image? Sun Feb 07, 2010 5:09 am

jshushij

jshushij
Registered Member
Registered Member
Thanks Black Cat. I needed this code too. Very Happy

8Text wrap around image? Empty Re: Text wrap around image? Sun Feb 07, 2010 8:55 am

ankillien

ankillien
Administrator
Administrator
Solved | Locked

Sponsored content


View previous topic View next topic Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum