Adam.13
Adam.13

Reputation: 41

Jquery Mobile Navbar outline/border colour

I have been working on a JQuery Mobile App and have tried everything to change this. I my app has a navbar in which I have set a background color and have used custom images for icons. I am trying to get the outline around each navbar button white but it is currently black.

I have set up a an example here http://jsfiddle.net/HuHNK/

My code for my header is:

<div data-role="page" id="demo-page" data-theme="c">
    <div data-role="header">
        <img border="0" src="../../images/logo.png" height="28px" alt="ISOSEC" style="float:left;display:inline; padding-left:25px; padding-top: 5px; padding-right: 5px; max-height:28px max-width:1422px; heigh:auto; width:auto;" />
         <h1>Patient: Daniel Jones - SD65432 - ACU <br>SMF  - ASS - 409 825 6334</h1>
 <span class="ui-btn-right">
            <img src="../../images/image.jpg?height=100&amp;width=443" style="border:none;margin-right:5px;margin-top:0px;height:2.4vw;width:12.3vw; padding-right:25px;" onclick="showDlgPIN( );"></img>
        </span>

        <div data-role="navbar">
            <!-- navbar -->
            <ul>
                <li><a href="index.html" data-ajax="false" data-transition="flip" id="other-color"><div class="navbar-padding"><img src="../../images/icons/SearchLarge.png" height="30px;" width="30px;" style="vertical-align:middle"></div></a>

                </li>
                <li><a href="../../index.html" data-ajax="false" id="other-color"><div class="navbar-padding"><img src="../../images/icons/ApplicationL.png" height="30px;" width="30px;" style="vertical-align:middle"></div></a>
                </li>
                <li><a href="../App/index.html" data-ajax="false" id="other-color"><div class="navbar-padding"><img src="../../images/icons/applogo.png" height="30px;" width="30px;" style="vertical-align:middle"></div></a>
                </li>
                <li><a href="#" data-ajax="false" id="other-color"><div class="navbar-padding"><img src="../../images/icons/View.png" height="30px;" width="10px;" style="vertical-align:middle"></div></a>
                </li>
                <li><a href="#" data-ajax="false" id="other-color"><div class="navbar-padding"><img src="../../images/icons/LastValue2.png" height="30px;" width="30px;" style="vertical-align:middle"></div></a>
                </li>
            </ul>
        </div>
        <!-- /navbar -->
    </div>
    <!-- /header -->

The main custom css I have set is:

#other-color {
    background: rgba(115, 189, 226, 0.9);
}

.ui-btn-inner{
    background: rgba(115, 189, 226, 0.9);
}

.ui-body-c {
    background-image: url(../../images/BackgroundDot2.png);
    border: #FFFFFF;
}

.navbar-padding
{
    padding-top: 6px;
    padding-bottom: 6px;

}

.listItemNoIcon .ui-icon
{

 display: none;

}

.navbar
{
    outline-color: #FFFFFF !important;
    border-color: #FFFFFF !important;
}

I would really appreciate any help with this I have tried a few different techniques as can be seen above.

Upvotes: 1

Views: 3981

Answers (2)

Put an id="testing" to your navbar, then on your css code use:

#testing ul li a{
  border-color:"white";
}

This works for me, have a nice day!

Upvotes: 1

Nagama Inamdar
Nagama Inamdar

Reputation: 2857

We are allowed to edit the jquery mobile css unminified version for the purpose of debugging.You can try out the following code.For customized navigation bar styling.Give them your own css classes.

<div data-role="header"   data-position="fixed">
    <div data-role="navbar" class="footer-tab">
        <ul>
            <li class="head-foot-color-active"><a href="sample1.html" data-transition="none" class="ui-btn-active"><img src="pqr.png" height="20" width="30"/></a></li>
            <li class="head-foot-color"><a href="sample2.html" data-transition="none"><img src="xyz.png" height="20" width="30" /></a></li>
            <li class="head-foot-color"><a href="sample3.html" data-transition="none"><img src="abc.png" height="20" width="35" /></a></li>
        </ul>
    </div><!-- /navbar -->
</div> <!---header--->

the customized css as follows.

.head-foot-color-active a
{

background: #709630; 
border-style:groove;


}
.head-foot-color a{


background: #99ce3e ; 

}
 .footer-tab
{

bottom: 0px;
background: #6aaedb;

}

This might help.

Upvotes: 1

Related Questions