WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Css doesnt apply images (8 posts)

  1. xevasz21
    Member
    Posted 1 year ago #

    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

  2. Andrew
    Forum Moderator
    Posted 1 year ago #

    Can you link the website that has the issue?

  3. xevasz21
    Member
    Posted 1 year ago #

    Link to website

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

  4. Pioneer Valley Web Design
    Member
    Posted 1 year ago #

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

  5. xevasz21
    Member
    Posted 1 year ago #

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

  6. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    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.

  7. xevasz21
    Member
    Posted 1 year ago #

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

  8. xevasz21
    Member
    Posted 1 year ago #

    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 .

Topic Closed

This topic has been closed to new replies.

About this Topic