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 4 of 4
  1. #1
    Senior Member
    Join Date
    Jan 2014
    Posts
    392
    Member #
    38172
    Liked
    4 times

    list style none???

    i havent had this problem before so posting here. i have an image as a link. its in a unordered list and for some reaon i cant get rid of the bullet point. this is the bit of the css. .fiat is the class i have specified for the li

    in any other pagei have made text-decoration: none; ha done the job. what am i missing here?

    .fiat ul li a {
    text-decoration: none;
    list-style-type: none;
    }

    .fiat a {
    position: relative;
    left: 10px;
    margin: 0 auto;
    box-shadow: 0px 0px 5px black;
    background: url("../images/fiatpro.jpg");
    width:122px;
    height:146px;
    display:inline-block;
    z-index: 2;
    }

  2.  

  3. #2
    Senior Member Ronald Roe's Avatar
    Join Date
    Mar 2011
    Location
    Oklahoma City
    Posts
    3,139
    Member #
    27197
    Liked
    959 times
    You're trying to add the list-style to the a. You need to add it directly to the li itself.
    Ron Roe
    Web Developer
    "If every app were designed using the same design template, oh wait...Bootstrap."

  4. #3
    Member djitsz's Avatar
    Join Date
    Jan 2014
    Posts
    67
    Member #
    38199
    Liked
    17 times
    List style is applied to the <ul> element, not the <li> element :-)

    Also make sure you write it as "list-style:none;", not "list-style-type:none;".

  5. #4
    Senior Member DC Web Design's Avatar
    Join Date
    Jan 2014
    Location
    Washington, DC
    Posts
    128
    Member #
    38178
    Liked
    37 times
    Quote Originally Posted by djitsz View Post
    List style is applied to the <ul> element, not the <li> element :-)

    Also make sure you write it as "list-style:none;", not "list-style-type:none;".
    Not exactly true. You can use list-style(-type) on any element that is set to display: list-item. By default, that includes "li" as well.

    Also, list-style and list-style-type will have the same effect when using "none" ...either way, you don't see a disc to the left of each list item.


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
  •  

Search tags for this page

bootstrap list-style none

Click on a term to search for related topics.
All times are GMT -6. The time now is 07:48 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2020 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com