Skip navigation
Currently Being Moderated

Question about CSS classes, subclasses and Dreamweaver

Jul 4, 2013 10:40 AM

Hi there,

 

I've following code in my .css file:

 

 

ul.unordered {
clear: both;
padding: 0;
padding-top: 1px;
padding-left: 1em;
margin: 0;
list-style-image: none;
list-style-type: none;
}
ul.unordered li  {
padding:0 0 1em 25px;
background-position: 0 1px;
background-repeat:no-repeat;
}

   
ul.unordered.medium li {background-image:url(../images/icons/diamonds_m.png);}
ul.unordered.small li {background-image:url(../images/icons/diamonds_s.png);}
ul.unordered.large li {background-image:url(../images/icons/diamonds_l.png);}

 

In Dreamweaver CS5, code hinting will not show 'large' but shows small and medium. If I type by hand 'large' in my html, it works. I'm quite consfused as why  code hinting will show medium and small but not large.

 

Any clues?

 

Thanks

 

Joe Green

 
Replies
  • Currently Being Moderated
    Jul 4, 2013 10:44 AM   in reply to GreenGoneMad

    In Dreamweaver CS5, code hinting will not show 'large' but shows small and medium. If I type by hand 'large' in my html, it works. I'm quite consfused as why  code hinting will show medium and small but not large.

     

    Any clues?

     

    It could be that at the time of looking at the code hint or at the time of entering a new css code, your page wasn't saved or that "large" class and related html was not entered in the body section of the page.

     

    Without seeing your html code, it is difficult to say why.  It all boils down to what is already in the HTML code of the page when it is saved.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 4, 2013 1:22 PM   in reply to GreenGoneMad

    GreenGoneMad wrote:

     

    This is what I've in code saved:

     

    <ul class ="unordered">

         <li>item 1</li>

         <li> item 2</li>

    </ul>

     

    Have you got anywhere anything labeled as class="large"  If you have then please tell us about it otherwise, I can't see how it works on your pageIt is impossible that it will work if you put it in your html.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points