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"
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"
You can use this:
code
Tiggzi.getImagePath("name");
/code
I would like to set the background image property via css. How could this be achieved.
In addition, is there a method for employing @media for multiple screen sizes?
You can run any CSS, you are building an HTML5 app (plug optionally PhoneGap) that's running in a web browser.
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");}
Where do you use/set .mycontainer?
Did you try the link that I posted above?
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 */
}
Thanks