Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Regular Coder
    Join Date
    Sep 2011
    Posts
    264
    Thanks
    49
    Thanked 1 Time in 1 Post

    CSS not being applied

    On this website, there is a linked stylesheet which contains the CSS:
    Code:
    .two_column {
      list-style-type: none;
      margin: 0px;
      padding: 0px;
    }
    .two_column li {
      list-style-type: none;
      width: 42%;
      margin-right: 4%;
      float: left;
    }
    However, this code is not being applied to the front page, in particular the text underneath the bolded text.

    Why is this?
    Last edited by SRD75; 08-16-2013 at 03:43 AM.

  • #2
    New to the CF scene
    Join Date
    Aug 2013
    Location
    New York, USA
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Check your entry-content and post-7 classes to make sure that the list style type is not conflicting between stylesheets

  • #3
    Regular Coder
    Join Date
    Sep 2011
    Posts
    264
    Thanks
    49
    Thanked 1 Time in 1 Post
    Chrome code inspector shows no CSS for
    .entry-content li, or
    #post-7 li
    being applied so there's no conflicts.

  • #4
    Senior Coder
    Join Date
    Feb 2009
    Location
    Ilkley, West Yorkshire, UK
    Posts
    2,950
    Thanks
    9
    Thanked 724 Times in 718 Posts
    Your css:

    Code:
    .two_column {
      list-style-type: none;
      margin: 0px;
      padding: 0px;
    }
    Your html:

    Code:
    <ul class="two-column">
    Use the W3C HTML Validator and CSS Validator to check your code and Firebug to see what css is applied to an element
    Read Steve Krug's book Don't Make Me Think - essential reading on web usability
    I don't recommend much, but I do recommend Clook for UK web hosting

  • Users who have thanked SB65 for this post:

    SRD75 (08-15-2013)

  • #5
    Regular Coder
    Join Date
    Sep 2011
    Posts
    264
    Thanks
    49
    Thanked 1 Time in 1 Post
    Fantastic. Thanks SB65.


  •  

    Tags for this Thread

    Posting Permissions

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