As I work on my first Jquery Mobile application, I have successfully implemented a panel for navigation. Inside the panel, I am using an unordered list (
<ul><li>home</li><li>search</li><li>... etc</li></ul>
) to create a series of links. However, I am facing issues when trying to style the attributes of the #header_panel such as adjusting the width or height of the <li>
elements. Despite setting values for these properties in the CSS (#header_panel li), the changes do not reflect on the page. I would appreciate any assistance in achieving the desired layout where each <li>
appears stacked underneath one another with custom font size, borders, and occupying 100% of the panel's width and height.
<div data-role="panel" data-display="overlay" id="header_panel">
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">Articles</a></li>
<li><a href="#">Music</a></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
</div>
<div data-role="panel" data-display="overlay" id="header_panel">
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">Articles</a></li>
<li><a href="#">Music</a></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
</div>
#header_panel li{
width: 200px;
height: 100px;
padding: 10px;
}