Latest Added Tutorials
23-09-2017
Php Codes
<div class="pagination-wrapper">
<ul class="pagination">
<li><a href="?page=<?= $page > 1 ? ( $page - 1 ) : '1' ?>" aria-label="Previous"><span
aria-hidden="true"><i
class="fa fa-long-arrow-left"></i> Önceki Sayfa</span></a></li>
<?php
$databaseUtil = new \hatim\Libraries\DatabaseUtil();
$limit = 2;
$total = $databaseUtil->count( "hatim" );
$pages = ceil( $total / $limit );
// What page are we currently on?
$page = get_query_var( "page" );
$page = $page == 0 ? 1 : $page;
// Calculate...Continue Reading
21-03-2016
By using following codes, we can get rid of marquee element. For more information please click
<style type="text/css">
.wordwrap {
white-space: -moz-pre-wrap; /* Firefox */
white-space: -pre-wrap; /* Opera <7 */
white-space: -o-pre-wrap; /* Opera 7 */
word-wrap: break-word; /* IE */
}
.marquee,.marquee-left { overflow: hidden; }
</style>
<script type="text/javascript" src="/Scripts/marquee.js"></script>
<script type="text/javascript" src="/Scripts/...Continue Reading
10-06-2015
Jsp Page
In Jsp, there is no break element to break foreach loop, so we have used begin, end and var attributes. When parentPage is null, then count variable will be set to end attribute value to break foreach loop as follows:
<section class="in_sec_nrd">
<article class="art_loop_nrd">
Where I am:
<c:forEach begin="0" end="100" var="count">
<c:if test="${not empty parentPage}">
<a title="${parentPage.title}" href="<c:url value="/content/${parentPage.url}" />">
${par...Continue Reading
13-02-2015
If you design mobile web application, your layout should look like as follows:
Css:
//you can use other html elements that needs word-wrap
h1,h2,h3,h4,p,span,label{
word-wrap: break-word;
}
.page {
height: 100%;
padding: 10px;
}
.topic {
text-align: justify;
}
Html:
<div class='page'">
<div class='topic'>
<!--other html elements-->
</div>
</div>...Continue Reading