Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Shafeeq 17 posts 87 karma points
    Nov 27, 2014 @ 15:13
     Shafeeq
    0

    css background image is not displaying..

    Dear all,

    I used to convert my html websites to umbraco..that time I was using old version of umbraco.After a while I again reached to umbraco new version7 ,Unfortunatly most of the templating systems are not working here.I have a css file with background images property,but its not showing my browser.Please give me a clear idea about media folder and image path.Before I get image path from property tab, Now I only get image id from there..

    Also I need help to create content place holders,from where I can insert content place holder..?

    My CSS Code :

    #menu {
    clear: both;
    height: 35px;
    color: #FFF;
            background-image:url('/media/Images/1068/menuBg.jpg');
    background-repeat: repeat-x;
    background-position: top;

    }

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Nov 27, 2014 @ 15:19
    Jan Skovgaard
    1

    Hi Shafeeq

    Does it work if you try using this path - The /Images/ part should not be there.

    background:url('/media/1068/menuBg.jpg');
    

    /Jan

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Nov 27, 2014 @ 15:22
    Dennis Aaen
    0

    Hi Shafeeq,

    What if you do something like this. If I remember correctly Umbraco doesn't include folders in the media section in it´s path

    #menu {
    clear: both;
    height: 35px;
    color: #FFF;
            background-image:url('/media/1068/menuBg.jpg');
    background-repeat: repeat-x;
    background-position: top;
    }

    Hope this helps,

    /Dennis

  • Shafeeq 17 posts 87 karma points
    Nov 27, 2014 @ 15:26
     Shafeeq
    0

    Dear Dennis and Jan,

    I had tried all this codes..No luck..

    I dont know the reason..I surprised , Very strange this issue..

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Nov 27, 2014 @ 15:27
    Jan Skovgaard
    0

    Hi Shafeeq

    Ok...If you on the disk go to your umbraco installation and look in the /media/ folder...do you then see a folder with the specified id? If not...did you upgrade the old installation or did you start out on a fresh installation uploading the images again? If so then the id's will have changed and that's why you don't see any images.

    Looking forward to hearing from you.

    /Jan

  • Shafeeq 17 posts 87 karma points
    Nov 27, 2014 @ 15:49
     Shafeeq
    100

    Dear Jan..

    Thank you very much..You saved  my time..I checked the installation folder and removed all images from media folder.
    then reuploaded all images again..But in media window its showing different id (1006) compared to instalation media folder(id:1072).
    So why this different..? 
    Reagards Jan.. 

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Nov 27, 2014 @ 16:22
    Jan Skovgaard
    0

    Hi Shafeeq

    Glad you got it figured out :)

    Well, whenever you create content er media in Umbraco it get's an id. The id is just incremented each time something new is created. So it can differ when you're re-creating items. It does not have a unique GUID, which would have been the same (Depending on how changes are made).

    /Jan

Please Sign in or register to post replies

Write your reply to:

Draft