We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36461
    • 102 Posts
    Hi,

    At the moment I have a html + css template and I’m in process of adding it to modx, everything is working great, but one of images isn’t showing at all.

    I have, of course, changed all paths in html and css and uploaded all files to server and all of the images and styles are showing when I preview site. But I’m having problems with this one image. I suspect It might be something with code, but when I view this template from my computer using internet browser everything is displayed as it should. It’s navigation section:

    HTML
    <div class="nav">
                                <ul>
                                  <li><a href="index.html">sadla1</a></li>
                                  <li><a href="index-1.html"><span>sadala123</span></a></li>
                                  <li><a href="index-2.html"><span>sadala1234</span></a></li>
                                  <li><a href="index-3.html"><span>sadala</span></a></li>
                                  <li><a href="index-4.html"><span>sadala</span></a></li>
                                </ul>
                            </div>

    CSS:
    .nav ul {
    	display: block; 
    	padding: 0px; 
    	margin: 0px; 
    	list-style: none; 
    	text-align: center; 
    	}
    
    .nav ul li {
    	 display: block;
    	 float: left; 
    	 margin: 0px; 
    	 list-style: none;  }
    
    .nav a {
    	 display: block; 
    	 background: url('assets/templates/mipasumi/images/poga.png') top left no-repeat; 
    	 width: 106px; 
    	 height: 65px; 
    	 padding: 0px 5px 0px 0px; 
    	 margin: 0px; 
    	 border: 0px; 
    	 color: white; 
    	 text-decoration: none; 
    	 font-size: 12px; }
    .nav ul li span {
    	display:block;
    	padding:20px 3px 0px 0px;}


    I’m in the process of adding this template to modx, I wanted to replace unordered list with [[Wayfinder? &startId=`0` &level=`1`]] so I could have working navigation, but I ran into this problem



    Web Server:

    * PHP version 5,2,12
    * Apache version 2,2,14
    * Operating System - Linux, don’t know version



    Database:

    * MySQL version 5,1,30




    MODx:

    * Version 1,0,3
    * Any changes you’ve made - It’s a fresh default installation
    * Any snippets you’re running on the page that is not working properly - none all of the snippets are standart
    * Any plugins you’re running - none yet



    Browser/Client:

    * Browser name and version - FF 3,6
    * Operating System and version Windows 7 x64
      • 36461
      • 102 Posts
      I’m sorry I didn’t find edit button, Path in css in previous post is wrong here since I copied it from offline css, but I have uploaded css with correct path :assets/templates/mipasumi/images/poga.png

      FOund It smiley

      Edit: I’m sorry for opening this topic, I found my mistake - in css I should have written ../images/poga.png instead of assets/templates/mipasumi/images/poga.png