Laman

Sunday, July 28, 2013

iPhone browser simulator

If you are web developer or web designer, you should try iphone4simulator.com website for test you iPhone website app, you can test vertical layout or horizontal layout.

Even you can test with iPhone 5 mobile app version.



Thursday, July 25, 2013

Looking for Nicer Icon?

If you are looking something nicer Icons for your web, here at http://iconmonstr.com/ you can find the nicer icons for free.


CSS: Responsive Navigation Menu

Now we learning about how to make a responsive Navigation, this tutorial can help you to make responsive website.

 Lets start...

Here we use clean and semantic HTML5 markup to make navigation structure, without any javascript code. This code work for all browser include IE.

Using Nav HTML Markup :

Here is the markup for the navigation. The <nav> tag is required to create the dropdown with the css property absolute position. I will explain this later in the tutorial. The .current class indicates the active/current menu link.

<nav class="nav">
<ul>
<li class="current"><a href="#">Portfolio</a></li>
<li><a href="#">Illustration</a></li>
<li><a href="#">Web Design</a></li>
<li><a href="#">Print Media</a></li>
<li><a href="#">Graphic Design</a></li>
</ul>
</nav>

CSS

The CSS for the navigation (desktop view) is pretty straight forward, so I'm not going to get into the details. Note that I specified display:inline-block instead of float:left for the nav <li> element. This allows the menu buttons to be able to align left, center or right by specifying text-align on the <ul> element.

/* nav */
.nav {
position: relative;
margin: 20px 0;
}
.nav ul {
margin: 0;
padding: 0;
}
.nav li {
margin: 0 5px 10px 0;
padding: 0;
list-style: none;
display: inline-block;
}
.nav a {
padding: 3px 12px;
text-decoration: none;
color: #999;
line-height: 100%;
}
.nav a:hover {
color: #000;
}
.nav .current a {
background: #999;
color: #fff;
border-radius: 5px;
}



Center and Right Alignment
As mentioned above, you can change the alignment of the buttons by using text-align property.

/* right nav */
.nav.right ul {
text-align: right;
}

/* center nav */
.nav.center ul {
text-align: center;
}

Internet Explorer Support

HTML5 <nav> tag and media query is not supported by Internet Explorer 8 or older. Include css3-mediaqueries.js (or respond.js) and html5shim.js to provide fallback support. If you don't want to add html5shim.js, replace the <nav> tag with a <div> tag.

<!--[if lt IE 9]>
<script src="http://css3-mediaqueries-js.googlecode.com/files/css3-mediaqueries.js"></script>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->



Responsive

Now here comes the fun part - making the menu responsive with media query! Read my previous articles on responsive design and media query if you are not familar with responsive design.

On 600px breakpoint, I set the nav element to relative position so I can place the <ul> menu list on top with absolute position. I hide all <li> elements by specifying display:none, but keep the .current <li> displaying as block. Then on the nav hover, I set all <li> back to display:block (this will produce the dropdown list result). I added a check icon graphic on the .current element to indicate it is the active item. For the center and right alignment menu, use left and right property to position the <ul> list. View the demo to see the final result.

@media screen and (max-width: 600px) {
.nav {
position: relative;
min-height: 40px;
}
.nav ul {
width: 180px;
padding: 5px 0;
position: absolute;
top: 0;
left: 0;
border: solid 1px #aaa;
background: #fff url(images/icon-menu.png) no-repeat 10px 11px;
border-radius: 5px;
box-shadow: 0 1px 2px rgba(0,0,0,.3);
}
.nav li {
display: none; /* hide all <li> items */
margin: 0;
}
.nav .current {
display: block; /* show only current <li> item */
}
.nav a {
display: block;
padding: 5px 5px 5px 32px;
text-align: left;
}
.nav .current a {
background: none;
color: #666;
}

/* on nav hover */
.nav ul:hover {
background-image: none;
}
.nav ul:hover li {
display: block;
margin: 0 0 5px;
}
.nav ul:hover .current {
background: url(images/icon-check.png) no-repeat 10px 7px;
}

/* right nav */
.nav.right ul {
left: auto;
right: 0;
}

/* center nav */
.nav.center ul {
left: 50%;
margin-left: -90px;
}

}

And that it, simple but effective , good luck and see you in next tutorial.

Thursday, January 10, 2013

Mengenal CSS dasar

Sebelumnya mungkin banyak dari kalian yang sudah mengenal CSS ( Cascading Style Sheets ), tapi tidak mengerti cara mempergunakan atau cara membuatnya. CSS di gunakan para programer website untuk membuat tampilan website agar kelihatan lebih sempurna.

Belajar CSS tidaklah susah, kalian hanya perlu mengetahui apa yang akan kalian buat, karean semua yang anda fikirkan terutama masalah disain bisa di buat dengan CSS.

Dalam CSS ada beberapa elemen yang perlu di mengerti seperti ID dan CLASS, nah ID itu sendiri biasanya di gunakan untuk menenentukan style elemen tunggal yang unik, yang sertai banyak elemen di dalamanya.

Contoh penggunaan ID pada kode HTML :

<html>
<head>
<title>Belajar Website</title>

<style>
h1#pertama{
font-family:Verdana, Geneva, sans-serif;
font-size:20px;
color:#F90;
}

</style>
</head>

<body>

<h1 id="pertama">Hello Dunia</h1>
<p>Belajar CSS tingkat dasar</p>
</body>
</html>


Dilihat dari kode di atas, membuat CSS ID sangatlah mudah tergantung kondisi yang ingin anda buat, contoh di atas akan terlihat seperti di bawah 

Hello Dunia

Belajar CSS tingkat dasar

Elemen ID dilambangkan dengan tanda # pada penulisan di style.

Dan CLASS digunakan untuk menentukan style pada sekelompok element tertentu, CLASS bisa di tuliskan lebih dari satu pada satu CLASS pada kode tag HTML, contoh <div class="pertama kedua">...</div>, untuk penulisan CLASS yang lebih dari satu harus di pisahkan dengan spasi, jika tidak CLASS yang ke 2 tidak akan terbaca oleh kode style itu sendiri.

Contoh CLASS pada HTML :

<html>
<head>
<title>Belajar Website</title>

<style>
h1.pertama{
font-family:Verdana, Geneva, sans-serif;
font-size:20px;
color:#FFF;
} 

p.keuda{
color:#C3F;
font-family:Verdana, Geneva, sans-serif;
font-size:12px; 
border-bottom:1px solid #C3F;
} 

p.multi{
color:#000;
font-family:Verdana, Geneva, sans-serif;
font-size:12px; 
}
</style>
</head>

<body>

<h1 class="pertama">Hello Dunia</h1>
<p class="kedua">Belajar CSS CLASS tingkat dasar</p>
<p class="multi">Penggunaan CLASS lebih dari satu</p>
</body>
</html>


Akan terlihat seperti di bawah :
 

Hello Dunia

Belajar CSS CLASS tingkat dasar
Penggunaan CLASS lebih dari satu

Sangat mudah untuk belajar CSS, yang terpenting dalam CSS adalah anda harus mengetahui dulu apa yang ingin anda buat.

Selamat mencoba.

Monday, January 7, 2013

Dari sebuah ide menjadi sebuah karya

Beberapa contoh website yang saya ambil dari beberapa website yang menurut saya bagus dari segi layout dan komposisi serta typography, mungkin bisa di pergunakan sebagai inspirasi untuk anda dalam membuat sebuat design website.

WrightFeldhusen
wrightfeldhusen
Simple, Clean, Minimalist, White, Photo

Swedish Seasons
swedishseasons
Black, Bold, Clean, Minimal

Resonate
resonate.io
Clean, CSS, Minimal, Typhography, White, Grid

Get Going
getgoingtoday.org
Clean, CSS, Minimal, Typhography, Photos, Grid

Iconmonstr
iconmonstr
Bold, Clean, CSS, Minimal, Illustration, Grid

Cara membuat kolom HTML dengan TABLE

Cara membuat kolom table di HTML sangatlah mudah, dengan mengetahui cara membuat kolom dengan table anda dengan mudah bisa membuat sebuah disain halaman sesuai dengan kehendak anda sendiri.

Disini yang kita perlu mengerti dengan membuat kolom adalah table/ kolom seperti apa yang ingin kita buat.

Contoh sederhana pembuatan kolom menggunakan tag <table>...</table> seperti di bawah

<html>
<head>
<title>Title dari website</title>
</head>

<body>

<table border="1">
<tr>
<th>
<a href="linka.html">Link a</a>
<a href="linkb.html">Link b</a>
<a href="linkc.html">Link c</a>
<th>
</tr>

<tr>
<td>
Belajar website sederhana.
</td>
</tr>
</table>
</body>
</html>



Akan terlihat seperti di bawah :
Link a Link b Link c
Belajar website sederhana.

Pengertian tag table di atas :

  1. <table> adalah tabel
  2. <tr> adalah tabel baris/ table row
  3. <th> adalah tabel heading
  4. <td> adalah tabel cell/ tabel  kolom. 
NB : Selalu di ingat setiap kali kita membuat tag kode harus selalu di tutup kode tag ( </> ) tersebut di tutup, contoh <tag>....</tag>

Selamat mencoba.

Sunday, January 6, 2013

Cara membuat link pada halaman website

Cara pembuatan link pada halaman website menggunakan text editor dan dreamwever code editor

Setelah sebelumnya kita sudah menyelesaikan tahapan pembuatan struktur dasar dari halaman website, mari kita lanjutkan dengan langkah ke dua dengan membuat link.

Perhatikan contoh di bawah

<html>
<head>
<title>Title dari website</title>
</head>

<body>

<a href="linka.html">Link a</a><a href="linkb.html">Link b</a>
<a href="linkc.html">Link c</a>

Belajar website sederhana.

</body>
</html>


Simpan file dan sekarang buka file tadi di browser anda dan anda akan melihat disana ada 3 link di halam website yang sudah dibuat.















Disana kita lihat antara link dan konten berjejer sejajar, sekarang kita buat agar konten turun di bawah link.

Tambahkan kode tag <br/> antara kode tag link dan konten seperti pada contoh.

NB : penggunaan tag <br/> bisa di gunakan lebih dari satu sesuai dengan keinginan untuk memberikan jarak atau paragrap pada setiap konten.

<html>
<head>
<title>Title dari website</title>
</head>

<body>

<a href="linka.html">Link a</a><a href="linkb.html">Link b</a>
<a href="linkc.html">Link c</a>
<br/><br/>
Belajar website sederhana.

</body>
</html>


Save file dan test di browser.