• Resolved xevasz21

    (@xevasz21)


    Hello my issue is that i made a new page where i wanted to add new menu however it doesnt apply css and java either, so i tested it with simply div with some css style and it wont there either it does apply background color but no images :/

    <style type=”text/css”>
    #aria {
    background-color: #0C9;
    background-attachment: fixed;
    background-image: url(images/testápolás.png);
    background-repeat: no-repeat;
    height: 200px;
    width: 400px;
    }
    </style>

    THis apply only the color , but when i put it simply like this

    <img src=”<?php bloginfo(‘template_directory’); ?>/images/testápolás.png” />

    it apply the image so the wordpress see where the file is but not when it comes to style . its essenital for me to make it work in css .

    plz help

    regards -kesz

Viewing 7 replies - 1 through 7 (of 7 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Can you link the website that has the issue?

    Thread Starter xevasz21

    (@xevasz21)

    Link to website

    Its the teszt page of my website there where is the green box should be the image .

    this may be an issue with the file name…try renaming it with standard characters to see if so…

    Thread Starter xevasz21

    (@xevasz21)

    i tried with a diffren image whit normal file name still no luck ..

    CSS code should go in an external stylesheet (or possibly in the head section of the page. Yours seems to be in the HTML of the page. It also looks like the file path is broken or wrong.

    Thread Starter xevasz21

    (@xevasz21)

    The ccs is working it applyes the Background-color,size etc. but not the background image :/

    Thread Starter xevasz21

    (@xevasz21)

    I solve it the problem was apperently that i was useing CSS on the same page with the html in <style> code , wordpress dont like it

    Linking a CSS style sheet with code there fixed this error .

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Css doesnt apply images’ is closed to new replies.