Gnetsys
Posts: 0
Joined: Tue Jul 31, 2012 9:31 pm

Accessing assets

How do I access assets in my assets folder? It is noted there was a change in the assets/asset-xxxx format. to "http://www.tiggzi.com/assets/myimage.png"

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Accessing assets

You can use this:

code
Tiggzi.getImagePath("name");
/code

Gnetsys
Posts: 0
Joined: Tue Jul 31, 2012 9:31 pm

Accessing assets

I would like to set the background image property via css. How could this be achieved.

Gnetsys
Posts: 0
Joined: Tue Jul 31, 2012 9:31 pm

Accessing assets

In addition, is there a method for employing @media for multiple screen sizes?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Accessing assets

You can run any CSS, you are building an HTML5 app (plug optionally PhoneGap) that's running in a web browser.

Gnetsys
Posts: 0
Joined: Tue Jul 31, 2012 9:31 pm

Accessing assets

This is noted hoe ever when I attempt to set the background-image property using the elements class name I draw a blank.

.mycontainer { background-image: url("path/assets/myimage.png");}

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Accessing assets

Where do you use/set .mycontainer?

Did you try the link that I posted above?

Gnetsys
Posts: 0
Joined: Tue Jul 31, 2012 9:31 pm

Accessing assets

Yes I tested the link and the bg is being displayed. How ever I seek to employ backgrounds for multiple scree sizes as indicated by the sizes in the preview.

How do I employ responsive style sheets?

Example

/* Portrait /
@media screen and (orientation:portrait) {
/ Portrait styles /
}
/ Landscape /
@media screen and (orientation:landscape) {
/ Landscape styles */
}

Gnetsys
Posts: 0
Joined: Tue Jul 31, 2012 9:31 pm

Accessing assets

Thanks

Return to “Issues”