PDA

View Full Version : Text Not Wrapping Around Image



Elbee
12-03-2010, 06:20 PM
1) Script Title: Accordion Content script (v1.9)

2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex17/ddaccordion.htm

3) Describe problem:
Even though I copied the script directly from the DD page, the text is not wrapping around the image of the dog.
[URL]http://jaxpubliclibrary.org/accordian.html[URL]
________________________________________________________
[CODE]
<a href="#" onClick="ddaccordion.expandone('mypets', 0); return false">Expand 1st header</a> | <a href="#" onClick="ddaccordion.collapseone('mypets', 0); return false">Collapse 1st header</a> | <a href="#" onClick="ddaccordion.toggleone('mypets', 1); return false">Toggle 2nd header</a>

<h5 class="mypets">Dogs</h5>
<div class="thepet">
<img src="http://i10.tinypic.com/7xlrga1.jpg"/>
The dog is a domestic subspecies of the wolf, a mammal of the Canidae family of the order Carnivora. The term encompasses both feral and pet varieties and is also sometimes used to describe wild canids of other subspecies or species. The domestic dog has been (and continues to be) one of the most widely-kept working and companion animals in human history, as well as being a food source in some cultures.
</div>


<h5 class="mypets">Cats</h5>
<div class="thepet">
The Cat, also known as the Domestic Cat or House Cat to distinguish it from other felines, is a small carnivorous species of crepuscular mammal that is often valued by humans for its companionship and its ability to hunt vermin. It has been associated with humans for at least 9,500 years.
</div>

<h5 class="mypets">Rabbits</h5>
<div class="thepet">
Rabbits are small mammals in the family Leporidae of the order Lagomorpha, found in several parts of the world. There are seven different genera in the family classified as rabbits, including the European rabbit (Oryctolagus cuniculus), cottontail rabbit (genus Sylvilagus; 13 species), and the Amami rabbit (Pentalagus furnessi, endangered species on Amami O-shima, Japan). There are many other species of rabbit, and these, along with cottontails, pikas, and hares, make up the order Lagomorpha. Rabbits generally live between four and twenty years.
</div>
[CODE]

Thank you for your help, Elbee

ddadmin
12-04-2010, 12:46 AM
This is simply a CSS issue- try floating the dog image, ie:


<img src="http://i10.tinypic.com/7xlrga1.jpg" style="float:left" />