Jump to content

[solved] center CSS background-image in tags_block_left


BoKr

Recommended Posts

Hello

 

sorry but today I do not get how set a background-image to the tags-cloud block. It shall be centered and best be a bit transparent but I think via CSS it is a no go and I have to use transparency in the image.

 

However, can I center a background-image in a block?

/themes/mytheme/css/modules/blocktags/blocktags.css

#tags_block_left {

    background-color: aliceblue!important;
    /*background: url({$img_dir}/img/design/footprint.gif) no-repeat ;!important */
    background: url('../../../img/design/footprint.gif') no-repeat  transparent !important;
    
}
Edited by B.Köring (see edit history)
Link to comment
Share on other sites

Postioning and path work now but I wonder if I did it correctly. However, thanks a lot Vekia for looking in (shop url via pm).

#tags_block_left {
    background-color: aliceblue!important;
    
/*background:url(../../../img/arrow_right_2.png) no-repeat 1px 10px transparent;*/
/*background: url({$img_dir}/img/design/footprint.gif) no-repeat ;!important */
    
    background: url('../../../img/design/footprint.gif') no-repeat  transparent !important;
    background-position: 50% 60%!important;
    
/*
    width: auto;
    height: 50px;
    top: 0;
    left: 0;
    
    z-index: -1;
    content: "";
 */
}
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...