Results 1 to 2 of 2

Thread: Text Not Wrapping Around Image

  1. #1
    Join Date
    Aug 2010
    Location
    Jacksonville, FL
    Posts
    85
    Thanks
    31
    Thanked 0 Times in 0 Posts

    Default Text Not Wrapping Around Image

    1) Script Title: Accordion Content script (v1.9)

    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici...daccordion.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

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    This is simply a CSS issue- try floating the dog image, ie:

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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •