Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 5 of 5
  1. #1
    Member Reza O's Avatar
    Join Date
    Nov 2012
    Posts
    53
    Member #
    33634
    Liked
    1 times
    This is the code.
    <style>
    ul
    {
    list-style:square url("sqpurple.gif");
    }
    </style>

    In the above the .gif is the bullet. So what does the square before it do??? It certainly doesn't show up.

    Thanks

  2.  

  3. #2
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,724
    Member #
    5580
    Liked
    718 times
    Look up your HTML / CSS questions using Google.

    Type: list-style:square into Google and view the w3schools response.


  4. #3
    Member Reza O's Avatar
    Join Date
    Nov 2012
    Posts
    53
    Member #
    33634
    Liked
    1 times
    Quote Originally Posted by mlseim, post: 243623
    Look up your HTML / CSS questions using Google.

    Type: list-style:square into Google and view the w3schools response.
    I know what list-style:square does alone. What I was saying is that I found that piece of code on w3schools. And the Square part doesn't do anything does it? Because the .gif is going to be the bullet.

  5. #4
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,724
    Member #
    5580
    Liked
    718 times
    Do you have a GIF image called: sqpurple.gif ?
    You need to actually have that image on your website.

    I see what you mean about the "square" part.
    Perhaps it doesn't matter if you say "square" or "round"?
    Guess I don't know ... I never use that property.
    I never like how they look.


  6. #5
    WDF Staff AlphaMare's Avatar
    Join Date
    Oct 2009
    Location
    Montreal, Canada
    Posts
    4,570
    Member #
    20277
    Liked
    878 times
    That code is trying to indicate a graphic to be used for the list markers in the list structure. It should be written as list-style-image: url(sqpurple.gif) . This will override the default appearance of list-markers in the current HTML list structure. If a ‘list-style-image’ is given a value of ‘none’ or the URL can not be loaded, the list-style-type specified for the document will be used in its place. The ‘list-style-type’ should always be specified for the document in the event the URL pointed to in ‘list-style-image’ can not be loaded.

    What the code you quoted is trying to do is to accomplish both the image placement and the reversion to default if there's no image, in one line of code. This may work in some browsers but I have not seen it done.
    Good design should never say "Look at me!"
    It should say "Look at this." ~ David Craib


    http://digitalinsite.ca ~ my current site . . info@digitalinsite.ca ~ my email

    If you feel that someone's post helped you fix your problem, answered your question, or just made you feel better, feel free to "Like" their post. The "Like" link is at the bottom right of each post, along side the "reply" link. And if you are being helped here, try to help someone else - pass it on!


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 10:19 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com