Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: images  (Read 3079 times)

0 Members and 1 Guest are viewing this topic.

Dross

    Topic Starter


    Greenhorn

    images
    « on: April 13, 2008, 11:17:19 AM »
    I would like to replace a marker with an image in an unordered list.
    Right now my list code looks like this.
    <ul style="list-style-type: square">
    I would like to replace the square marker with an image. I believe the code to do this would be as follows.
    <ul style="list-style-image: flask.jpg">
    The image file is located in the same folder as the rest of my files for this web page on my own computer.
    I can bring up all of my other images with no problem, but when it comes to changing my markers to an image it does not want to take.
    Can some one help?

    soybean



      Genius
    • The first soybean ever to learn the computer.
    • Thanked: 469
    • Computer: Specs
    • Experience: Experienced
    • OS: Windows 10
    Re: images
    « Reply #1 on: April 14, 2008, 08:54:18 AM »
    Based on numerous HTML references, I believe you only have three choices with ul tags; they are disc, circle, and square. 

    However, you can replace standard HTML bullets with graphic bullets by using  <DL> tags.  See this reference for more: http://www.web-source.net/html_graphic_bullets.htm

    diablo416



      Hopeful
      Re: images
      « Reply #2 on: April 14, 2008, 08:56:13 AM »
      you could try this instead

      <dl>
      <dd><img src="bullet1.png"><font size="1">List1</font></dd>
      <dd><img src="bullet2.png"><font size="1">List2</font></dd>
      <dd><img src="bullet3.png"><font size="1">List3</font></dd>
      </dl>

      Astoria



        Intermediate

        Re: images
        « Reply #3 on: April 19, 2008, 03:56:25 PM »
        It's easy:

        for my MySpace site I use a list which lists my fav music. For the image I use a small .gif of a guitar.
        I uploaded this image to photobucket.com.

        and here's the code to do it:
        Code: [Select]
        ul.guitar (list-style-image: url(here the photobucket URL))

        and to use it:

        Code: [Select]
        <ul class="guitar">
        <li>item 1
        <li>item 2
        etc.
        </ul>

        simple

        here's the example:

        « Last Edit: April 19, 2008, 04:08:10 PM by Astoria »