I'm building a Windows 8 Metro style app and I'd like to style the tiles a little different than what's available out of the box. When the user hovers over a tile (div), a grey box appears around it. Here's a screenshot.
But there are no CSS styles associated with these grey borders in the code.
I tried overriding it anyway using the following code. But it didn't work.
div:hover {
border: none;
}
[Added in response to comments] Here's the HTML:
<body>
<h1>App title</h1>
<div id="categoriesTemplate" data-win-control="WinJS.Binding.Template">
<div class="category">
<a href="#" data-win-bind="innerText:title"></a>
</div>
</div>
<div id="headerTemplate"
data-win-control="WinJS.Binding.Template"
style="display: none">
<div class="simpleHeaderItem">
<h1 data-win-bind="innerText: title1"></h1>
</div>
</div>
<div id="semanticZoomTemplate" data-win-control="WinJS.Binding.Template"
style="display: none">
<div class="semanticZoomItem">
<h1 class="semanticZoomItem-Text"
data-win-bind="innerText: title1">
</h1>
</div>
</div>
<div id="semanticZoomDiv" data-win-control="WinJS.UI.SemanticZoom">
<div id="categoriesListView"
data-win-control="WinJS.UI.ListView"
data-win-options="{itemTemplate:categoriesTemplate,
groupHeaderTemplate: headerTemplate
,layout: {type: WinJS.UI.GridLayout} }">
</div>
<div id="zoomedOutListView"
data-win-control="WinJS.UI.ListView"
data-win-options="{itemTemplate: semanticZoomTemplate,
selectionMode: 'none',
tapBehavior: 'invoke',
swipeBehavior: 'none' }">
</div>
</div>
</body>
Here's the CSS.
div.category:hover {
width: 180px;
height: 50px;
background-color:#f6f4d3;
text-align:center;
padding-top:25px;
color: #f6f4d3;
outline:none;
border:none;
}
Any ideas?