Monaca In the "Train Catalog" template, which you can choose from a new project, the train images referenced from the list have margins, up, down, left, right, and right.
Is it possible to remove this margin and display the image?
<div data-role="page"id="tokaido-page">
<div data-role="header" data-position="fixed" class="jqm-header-custom" data-theme="c">
<h1> Train Catalog</h1>
</div>
<div data-role="content">
<ul data-role="listview">
<li data-role="list-divider">Tokaido Shinkansen Trains</li>
<li><a href="#"onclick="showDetail('0kei', 'Series 0')">Series 0</a></li>
</ul>
The CSS is as follows:
display:block;
margin-left:0px;
margin-right:0px;
width: 100%;
height —100%;
Since the page itself has padding:15
, and the image has margin:0505
, set these values to 0px
.
<div data-role="page"id="detail-page">
<div data-role="page" id="detail-page" class="train-page">
Change to style.css
and add the following:
.train-page{
padding-top:0px!important;
}
.train-page.ui-content{
padding:0px;
}
.train-page.ui-content#train-image{
margin:0px;
width: 100%;
height —100%;
}
© 2023 OneMinuteCode. All rights reserved.