how to change html5 tableView section color? - html5-appcache

<ul data-role="listview">
<li data-role="list-divider">A</li>
<li>Adam Kinkaid</li>
<li>Alex Wickerham</li>
<li>Avery Johnson</li>
<li data-role="list-divider">B</li>
<li>Bob Cabot</li>
</ul>
how can i change the scetion color? thank you.

I'm not sure if you're asking a simple change of color. But if I'm right :
You should simply add a class.
Then go to the css and there just add a .classname{ background-color: #color;}
Is that you are asking for ?

Related

Change font weight and opacity with Javascript

I'm super new to Javascript and I need help solving this problem.
I have created a list and I would like the font weight of the selected element to be bold and the opacity of the non-selected element dropping to .5 on the click.
I understood that I need to use an eventlistener "click" but I´m pretty stucked, if someone can give me some hints will be greatly, greatly, appreciated.
<div class="media">
<ul>
<li class="language" id="italian">Italian</li>
<li class="language" id="english">English</li>
</ul>
</div>
I do not know exactly what you are trying but changing CSS via java script, one way
<li class="language" id="selectedElement">Italian</li>
<li class="language" id="nonSelectedElement">Italian</li>
function click() {
document.getElementById("selectedElement").style.fontWeight = "bold";
document.getElementById("nonSelectedElement").style.opacity = 0.5;
}

font-awesome link makes icon blue. how do you change this color?

<a href="#resume" rel="facebox">
<i class="fa fa-align-left"></i>
</a>
I couldn't find where it changes icon to blue..
How do you change its color?
icons inherit the color property from his parents. Maybe you can specify like this
a .fa {
color: #777;
}

Navigation Bar highlights on current page or text decoration

here is my code sir.
http://cssdesk.com/9cWbV
which should I take out or should I add I wanted it to display a text decoration when it is on the current page any advice or tips I'm noob I feel my code is rather messy
or it's best if you can advice me on highlight it on current page
I'm noob so dont flame me soo much :/
You can add a class to the navigation item and apply CSS for that class.
<li class="active">Home</li>
ul#navbar li.active a {
background-color: #cccccc;
}
Use PHP to add that class
define("THIS_PAGE", "home");
<li if(THIS_PAGE=="home"){ echo 'class="active"'; }>
Home
</li>

How to remove > sign from list in jquery mobile? [duplicate]

Is possible to make a standard jquerymobile listview without the right arrow image that apears on the rigt of the li object?
Standard list view
Thanks
In versions of jQuery Mobile >= 1.0, use the data-icon attribute:
<li data-icon="false">Your Text</li>
data-icon="false" attribute removes the arrow.
Another way of doing this will be by adding data-icon="false" to the ul instead of li as indicated by Jacob above.
<ul data-role="listview" data-icon="false">
This way, all child objects within the listview will by default carry no icons.
If icon still persist just remove a tag or wrap it with a div.
e.g
<div>
<a> //your stuff here </a>
</div>
add data-icon-"false" on the li tag

jquery listview link cutting off body text

I built a listview using jquery mobile. However, I would like to have a little more body text than what fits on a typical mobile screen.
<article id="military_list">
<ul data-role="listview" data-inset="true">
<li><a href="barracks">
<img src="../img/structure/barracks.png"/>
<h3>Barracks</h3>
<p>Fearless fighters weilding with shield and sword</p>
</a></li>
<li><a href="mage">
<img src="../img/structure/mage.png"/>
<h3>Mage Quarters</h3>
<p>Where magical folk live</p>
</a></li>
</ul></article>
It takes the <p></p> tag and abbreviates it automatically. Is there a way to instead simply jump down a line? There appears to be a lot of space left over in the block.
Heres an example:
As you can see in the yellow area, it cuts off the string and adds 'grant you...' rather than going to the next line.
Use this css:
.ui-li-desc {
white-space: normal !important;
}
Here's an example: http://jsfiddle.net/Gajotres/3ZVeN/

Resources