How to change img style inside span in CSS?

Tags: html,css

Problem :

I need a quick help:

I have a CSS like this:

#ranking li span.awa

And HTML like this:

             <span class=\"awa\"> 
                <div >
                    <a href=''>
                      <img src=''>

Now i don't know what is the name of img and can not put class type to img tag. I need to set in CSS that img inside span of class awa should have border: 0px; How to do this?

In para langauge i need this:

#ranking li span.awa.img
    border: 0px;

But it does not work. How to write this properly?

Solution :

Use a space, just like you've used twice. A space means "somewhere inside":

#ranking li span.awa img
    border-style: none;

span.awa.img, my the way, means a span with two classes: <span class="awa img">.

    CSS Howto..

    How to give a matte-finish (non-glassy) look to an image with CSS?

    How to vary color of table row border based on div that it's in

    How do I make sure my text stays on same line when I add a 'space' inside
  • element?
  • ASP.NET Gridview - How do I change the color properties vertically?

    how to use input[type=range] CSS Pseudo-elements with firefox and IE

    How to position absolute in scrollable area? (Css)

    How to Implement YUI Compresser in a website [closed]

    How to order a css file?

    How to make two tooltip ids independently close, and remember cookie?

    How to make rotate photos when you change position iPhones in ios app [closed]

    How do you extend a Django project root HTML file in project apps?

    How to place an HTML element over another using CSS

    How to convert a .PNG file into a source code that can be stored into mysql and called up via CSS as “png”

    How to hide old styled version of select option? [duplicate]

    How to draw a circle css

    How to adjust CSS settings for jquery.simply-scroll plugin to occupy full screen

    WebPack how to put all css files into one css file

    How to insert line breaks between numbers and content in ordered list

    how to add class with animation?

    Using SASS how to prevent a css file from being generated inside of the SASS folder?

    How to get a CSS animation to run through the correct steps

    How can I prevent overflow from a fieldset?

    How to select the last element within an element regardless of type in CSS?

    How to identify unused css definitions [closed]

    how to repeat a small background image througout the page?

    How to link my css, js and image file link in django

    How to use CSS in ASP.NET application

    how does responsive design work?

    How can I make it so the first element in a DIV has a different CSS to others?

    Base 64 CSS background image not showing in IE