Link to home
Start Free TrialLog in
Avatar of Nicholas_BlueStar
Nicholas_BlueStar

asked on

Change HTML code

Here is the current "template" code

.iosSlider .slider .item2 .inner { background-image: url(http://pimg.co/p/900x400/123321/fff/img.png); background-size: cover; }


I need to point this "url" line to root/images/index_page_mobile/Cover1.png

What should my code look like?

I changes it to /images/index_page_mobile/Cover1.png but it doe not load.
Avatar of Gary
Gary
Flag of Ireland image

Then the path must be wrong or the image doesn't exist.  What is the folder structure in relation to the root folder?
Is the images folder in the root of your website?
Note Linux OS is case sensitive
Hi,
have you tried your full qualified url?
Avatar of Nicholas_BlueStar
Nicholas_BlueStar

ASKER

@Rainerj

meaning something like

www.domain.com/images/index_page_mobile/Cover1.png?

I am using a testing server right now (i.e. test.domain.com)

So if I use the full URL it will only work on the test site, right? Then when I put my site "live" I would have to go back in there and rewrite all those lines from test. to www. right?

I know that my case is correct.

I was thinking maybe I needed " " around it? Or something small like that?
folder structure

root (all my html pages)
images (folder)
index_page_mobile (folder)
Cover 1.png
"" is not needed unless there is a space in the url.
If you give the real url we could test it.

So does Cover 1.png have a space or is it Cover1.png - you pasted the name with a space.
sorry. It is cover1.png (no space)

current URL

test.bluestarbussales.com/index-2.html

It should be the first "slide" - it is currently just blank.

again here is the code that I have in the .js file

.iosSlider .slider .item1 .inner { background-image: images/index_mobile_page/Cover1.png; background-size: cover; }
You need the leading / to say the path is from the root

.iosSlider .slider .item1 .inner { background-image: /images/index_mobile_page/Cover1.png; background-size: cover; }
okay I added the initial / before images

still loading a blank image
Have you uploaded this to the server because I am not seeing the image name anywhere.
Yes

I am connected with an FTP program just to verify.

The images are located under /images/index_mobile_page/

I have Cover1.png through Cover10.png images inside that folder...My FTP program can see those files on the test server.
I have no problem accessing the images directly but they do not exist in your CSS
All you have is

.iosSlider .slider .item1 .inner {
    background-size: cover;
}


etc...
weird...

Is it something with Dreamweaver not uploading the .css file correctly?

Do you have a suggestion to "override" this?

I am looking at the css file in dreamweaver right now and it does have the location of those images in the code
Hi,
just to add:
I get a 404 for the file "/css/lesssgrid.css"
so what does that mean?

Is dreamweaver known to have issues uploading all the files?

Im just curious what is making some of these files not to be put when I sync the local with the test server?
Just move it over manually - drag n drop into your ftp client in your css folder.

This is the file dc_ios.css
the leading slash refers to the current dirctory you nee to refer to the root with

../images/index_mobile_page/Cover1.png;

Cd&
manually updated the dc_ios.css file to the test server

still only seeing blank screens where the cover photos should be.
ASKER CERTIFIED SOLUTION
Avatar of Gary
Gary
Flag of Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Gary - you rock! That solved the issue!