dl dd button

Discussion in 'HTML' started by Clues, Apr 11, 2006.

  1. Clues

    Clues Guest

    Hello,
    I'm again here for a "stylistic/conceptual" request.

    I red a wonderful tutorial here:
    http://www.maxdesign.com.au/presentation/definition/index.htm

    and I found this structure very useful for use in a project
    (it creates a sort of "Polaroid" with a description).

    <dl class="float-right">
    <dt>Banksia flower</dt>
    <dd><img src="flower.jpg" alt=""></dd>
    <dd><em>Banksius maximus</em></dd>
    <dd>Found off the coast of Australia</dd>
    </dl>

    Now:
    I would like to add two buttons ("Previous" and "Next") to change photo.

    The question: which would be the best way?

    1) <dd><button_here></dd>;
    2) </dl><div><buttons_here></div>;
    3) other I can't imagine;

    Thanks, Clues
    Clues, Apr 11, 2006
    #1
    1. Advertising

  2. Clues

    Andy Dingley Guest

    Re: dl dd button

    Clues wrote:

    > I would like to add two buttons ("Previous" and "Next") to change photo.
    >
    > The question: which would be the best way?
    >
    > 1) <dd><button_here></dd>;
    > 2) </dl><div><buttons_here></div>;


    What is the "scope" of this button?

    Is this "list" a single item, where the button changes the whole
    contents of the list? Then place the button outside the list.

    Is the list either multiple items, where the button affects only one at
    a time? Or is it a single item list where the button changes something
    about the display (switching images for the same flower, perhaps) but
    doesn't change the "identity" of the list item. Then place the button
    inside the list element.
    Andy Dingley, Apr 11, 2006
    #2
    1. Advertising

  3. Clues

    Clues Guest

    Re: dl dd button


    >
    > Is this "list" a single item, where the button changes the whole
    > contents of the list? Then place the button outside the list.
    >
    > Is the list either multiple items, where the button affects only one at
    > a time? Or is it a single item list where the button changes something
    > about the display (switching images for the same flower, perhaps) but
    > doesn't change the "identity" of the list item. Then place the button
    > inside the list element.
    >




    Hello:
    the buttons change the content of the attribute src of img

    Clues
    Clues, Apr 11, 2006
    #3
  4. Clues

    Andy Dingley Guest

    Re: dl dd button

    Clues wrote:
    > >
    > > Is this "list" a single item, where the button changes the whole
    > > contents of the list? Then place the button outside the list.
    > >
    > > Is the list either multiple items, where the button affects only one at
    > > a time? Or is it a single item list where the button changes something
    > > about the display (switching images for the same flower, perhaps) but
    > > doesn't change the "identity" of the list item. Then place the button
    > > inside the list element.


    > the buttons change the content of the attribute src of img


    That's not really the relevant factor. That's a "how" answer, not a
    "what". I don't care that it "changes the content of the attribute src
    of img" - I care instead about _why_ it does that.

    Is this changing the _content_ of the list? Or is it changing the
    presentation of one element of the list? In particular I don't care
    whether it's "changing the src attribute" or if it's "calling some
    random JavaScript" or "submitting a seaerch form"

    If the image you're changing is the image that "represents the content
    of the list" then the button goes outside.

    If the image you're changing is "photo #1 of #5 for this item" then it
    goes inside the list.

    Also (as a side issue) just changing the src attribute might not be
    enough. What about captions, alt ot title properties too?
    Andy Dingley, Apr 12, 2006
    #4
  5. Clues

    Clues Guest

    Re: dl dd button

    The images are photos of a school (so, classrooms, a garden etc.).
    I care about the side issue, but I only needed help about what I asked
    for :)

    Clues




    Andy Dingley wrote:

    >
    > If the image you're changing is "photo #1 of #5 for this item" then it
    > goes inside the list.
    >
    > Also (as a side issue) just changing the src attribute might not be
    > enough. What about captions, alt ot title properties too?
    >
    Clues, Apr 18, 2006
    #5
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Purvi T
    Replies:
    0
    Views:
    802
    Purvi T
    Oct 19, 2004
  2. Wes Weems
    Replies:
    1
    Views:
    465
    Natty Gur
    Jul 20, 2003
  3. Chris Lane
    Replies:
    4
    Views:
    11,181
    Chris Lane
    Nov 17, 2003
  4. jorge
    Replies:
    2
    Views:
    1,243
    jorge
    May 26, 2004
  5. Russell
    Replies:
    3
    Views:
    6,888
    Lau Lei Cheong
    Jun 24, 2004
Loading...

Share This Page