jQWidgets Forums

jQuery UI Widgets Forums Grid ICONS not Displayed

This topic contains 3 replies, has 2 voices, and was last updated by  Vladimir 9 years, 9 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • ICONS not Displayed #76160

    andreperpetuo
    Participant

    Hi,

    The Grid of icons are displayed only when the site runs localhost.

    When I publish on the server are not displayed.
    All images were copied and the way in css is correct.
    In base.css have for example the line
    background-image: url (“images / icon-calendar.png”); Not work
    When change to
    background-image: url (“/ content / jqxwidgets / images / icon-calendar.png”); it works
    Any idea?

    ICONS not Displayed #76161

    Vladimir
    Participant

    Hello andreperpetuo,

    Paths that start with a slash / are server relative and the slash points to the root of your website as configured by your webserver.
    Paths that start with a folder, are relative to your file location, in this case the url is relative to the base.css file.
    So if you have the base.css in /content/jqxwidgets/styles/base.css then you need to have images folder be a subfolder of the styles folder.

    Best Regards,
    Vladimir

    jQWidgets Team
    http://www.jqwidgets.com

    ICONS not Displayed #76163

    andreperpetuo
    Participant

    The images folder is already a subfolder in styles.
    When run in localhost works and the server does not.

    ICONS not Displayed #76168

    Vladimir
    Participant

    Hello andreperpetuo,

    Check you developer console network tab to see what files are not loaded and where it is looking for them.
    Also make sure that the webserver is properly hosting the images folder and is giving access to the images folder inside the styles folder.
    If background-image: url “/content/jqxwidgets/images/icon-calendar.png”); really works, then your images folder is not inside the styles folder.

    Best Regards,
    Vladimir

    jQWidgets Team
    http://www.jqwidgets.com

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.