Help - Search - Members - Calendar
Full Version: Is DIV tag what I use?
HTMLHelp Forums > Web Authoring > General Web Design
ChrisH
Yes....I'm a relative "newbie" when it comes to HTML. And if I knew what to search for, I might find that my question is answered somewhere in this forum?

I would like to learn how to place a picture, section of text, adsense, etc, on a web page, and be able to have my text wrap around the side?

For example, on the page referenced here, http://webdesign.about.com/od/htmltags/a/aa011000a.htm you'll note how the "Sponsored Links" box in the body is aligned to the left, and the text continues around to the right of the box. In other words, I don't want to have a small picture aligned to the left or right, with no text beside it. I know this is probably something basic, but I'm in "learning" mode and this is something I haven't done yet. I thought that using a "div" tag would accomplish what I wanted, but apparently it doesn't? sad.gif

Thanks for any help you could shoot my way!
Regards,
Chris
pandy
Hi! smile.gif

Yes, you can use a DIV. But the magic isn't in the DIV but in the CSS you apply to it. In this case you would like to float the DIV left or right.
http://www.htmlhelp.com/reference/css/box/float.html
http://www.w3.org/TR/CSS2/visuren.html#propdef-float

A DIV is the appropriate element in this case. But you can float any element. Always use a more meaningful element than DIV and SPAN if you can. In this case you can't and DIV is good for dividing the page in sections.
pandy
Since you are new, you may want to start to read about CSS here so you'll know how to use that 'float'. happy.gif
http://www.htmlhelp.com/reference/css/
ChrisH
Thank you very much for your help and your quick response! I shall check out the links as well as reading up on the CSS.

Regards,
Chris
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.