css div image before parent div background

user3433303

Is it possible to make a image show before it's div background? here my code:

<li class="contest55">
    <div class="view-image-fid"></div>
</li>

and in my css i have:

#latest_ideas .contest55{
    background-image: url('images/image.png');
    background-size: Auto 185px;
    background-repeat:no-repeat;
    }

I need the background start immediately under the div view-image-fid that has width 250px

tips or idea on how to do it?

user3433303

solved using jquery

<script>
    $( document ).ready(function() 
    {
        $(".views-image-fid").each(function()
            {
            if ($(this).find(".views-image-fid").length == 1)
            {
            $(this).parent().css("background-position","0 190px");
            }
            });
    });
</script>

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Aligning div with background image of parent div

From Dev

CSS: div with background image not displaying

From Dev

CSS - Background Image With a fixed Div

From Dev

Set background image of div in CSS

From Dev

Responsive image with div by css background-image

From Dev

Keep Div Parent Background Image when using Div:hover

From Dev

CSS: hexagon with text on div with background-image

From Dev

CSS - Padding affecting background image on DIV

From Dev

Adding background image to div using CSS

From Dev

<div> blur of part of Background image with css

From Dev

CSS background image for DIV not working with auto

From Dev

css control position of background image within div

From Dev

CSS oblique div few deg with background image

From Dev

CSS: How to blur background image within the div?

From Dev

CSS Border on top of background image (same div?)

From Dev

Is it possible to crop the background image of a div with CSS/JavaScript?

From Dev

CSS: How to blur background image within the div?

From Dev

CSS: hexagon with text on div with background-image

From Dev

Set Background Image in Div Without Separate CSS

From Dev

CSS Image expanding over parent div size

From Dev

CSS dynamic image width of parent div

From Dev

CSS Parent Div Not Resizing to Responsive Image

From Dev

CSS :before/:after selectors are suddenly being positioned separately of parent div

From Dev

css box shadow, not working when parent div has background

From Dev

CSS transition not working because of a parent container DIV background property

From Dev

Div Background image disappears

From Java

Fit background image to div

From Dev

Targeting background image of div

From Dev

Fixed background image for a div

Related Related

HotTag

Archive