{"id":1386,"date":"2014-12-13T06:18:03","date_gmt":"2014-12-13T06:18:03","guid":{"rendered":"http:\/\/www.webhozz.com\/blog\/?p=1386"},"modified":"2019-06-25T14:18:07","modified_gmt":"2019-06-25T14:18:07","slug":"css-float-properti","status":"publish","type":"post","link":"https:\/\/www.webhozz.com\/blog\/css-float-properti\/","title":{"rendered":"CSS Float Properti"},"content":{"rendered":"<p><a href=\"http:\/\/www.webhozz.com\/blog\/wp-content\/uploads\/2014\/12\/css_layout_float.gif\"><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone  wp-image-1387\" src=\"http:\/\/www.webhozz.com\/blog\/wp-content\/uploads\/2014\/12\/css_layout_float-300x174.gif\" alt=\"css_layout_float\" width=\"423\" height=\"246\" \/><\/a><\/p>\n<p>Oke teman-teman Webhozz untuk kali ini saya akan coba menjelaskan apa itu kegunaan dari fungsi Properti Float.<\/p>\n<p><!--more--><\/p>\n<p>Sudah siap!? Oke. Fungsi Properti Float pada CSS digunakan untuk meratakan element ke kiri atau ke kanan. Jika kita ingin meratakirikan element kita tinggal menambahkan float:left, begitu juga sebaliknya. Oke kita lihat contohnya:<\/p>\n<p><a href=\"http:\/\/www.webhozz.com\/blog\/wp-content\/uploads\/2014\/12\/float.png\"><img decoding=\"async\" class=\"alignnone  wp-image-1388\" src=\"http:\/\/www.webhozz.com\/blog\/wp-content\/uploads\/2014\/12\/float-300x150.png\" alt=\"float\" width=\"358\" height=\"179\" srcset=\"https:\/\/www.webhozz.com\/blog\/wp-content\/uploads\/2014\/12\/float-300x150.png 300w, https:\/\/www.webhozz.com\/blog\/wp-content\/uploads\/2014\/12\/float.png 740w\" sizes=\"(max-width: 358px) 100vw, 358px\" \/><\/a><\/p>\n<p>Biasanya ketika kita akan membuat sebuah website dengan 2 (dua) kolom atau lebih, kita menggunakan fungsi Float ini.<\/p>\n<div>Menggunakan properti float atau clear:<\/div>\n<ul>\n<li>Float:left \u2013&gt; elemen akan menempel pada sebelah kiri elemen induk.<\/li>\n<li>Float:right \u2013&gt; elemen akan menempel pada sebelah kanan elemen induk.<\/li>\n<li>Clear:left \u2013&gt; elemen akan menempel pada sebelah kiri dan berada di bawah.<\/li>\n<li>Clear:right \u2013&gt; elemen akan menempel pada sebelah kanan dan berada dibawah<\/li>\n<li>Clear:both \u2013&gt; elemen akan berada pada posisi bawah elemen diatasnya.<\/li>\n<\/ul>\n<p>Silahkan teman-teman coba, lebih jelasnya bisa dilihat <a title=\"float\" href=\"http:\/\/jsfiddle.net\/miftahfs\/nnqjj3gL\/6\/\" target=\"_blank\" rel=\"noopener noreferrer\"><span style=\"color: #008000\"><strong>DEMO<\/strong><\/span><\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Oke teman-teman Webhozz untuk kali ini saya akan coba menjelaskan apa itu kegunaan dari fungsi Properti Float.<\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[32,13,250,12,9,243,199,10],"class_list":["post-1386","post","type-post","status-publish","format-standard","hentry","category-belajar-web-design","tag-belajar-web-design-2","tag-belajar-website","tag-css3","tag-desain-website","tag-belajar-html","tag-html-5","tag-html5","tag-web-design"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>CSS Float Properti - WebHozz Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.webhozz.com\/blog\/css-float-properti\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"CSS Float Properti - WebHozz Blog\" \/>\n<meta property=\"og:description\" content=\"Oke teman-teman Webhozz untuk kali ini saya akan coba menjelaskan apa itu kegunaan dari fungsi Properti Float.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.webhozz.com\/blog\/css-float-properti\/\" \/>\n<meta property=\"og:site_name\" content=\"WebHozz Blog\" \/>\n<meta property=\"article:published_time\" content=\"2014-12-13T06:18:03+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-06-25T14:18:07+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.webhozz.com\/blog\/wp-content\/uploads\/2014\/12\/css_layout_float.gif\" \/>\n\t<meta property=\"og:image:width\" content=\"460\" \/>\n\t<meta property=\"og:image:height\" content=\"267\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/gif\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/css-float-properti\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/css-float-properti\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/#\\\/schema\\\/person\\\/ad1c5822a60b5b228c5ceda20e439fea\"},\"headline\":\"CSS Float Properti\",\"datePublished\":\"2014-12-13T06:18:03+00:00\",\"dateModified\":\"2019-06-25T14:18:07+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/css-float-properti\\\/\"},\"wordCount\":142,\"publisher\":{\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/css-float-properti\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/www.webhozz.com\\\/blog\\\/wp-content\\\/uploads\\\/2014\\\/12\\\/css_layout_float-300x174.gif\",\"keywords\":[\"belajar web design\",\"belajar website\",\"css3\",\"desain website\",\"HTML\",\"html 5\",\"html5\",\"web design\"],\"articleSection\":[\"Belajar Web Design\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/css-float-properti\\\/\",\"url\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/css-float-properti\\\/\",\"name\":\"CSS Float Properti - WebHozz Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/css-float-properti\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/css-float-properti\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/www.webhozz.com\\\/blog\\\/wp-content\\\/uploads\\\/2014\\\/12\\\/css_layout_float-300x174.gif\",\"datePublished\":\"2014-12-13T06:18:03+00:00\",\"dateModified\":\"2019-06-25T14:18:07+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/css-float-properti\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/css-float-properti\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/css-float-properti\\\/#primaryimage\",\"url\":\"http:\\\/\\\/www.webhozz.com\\\/blog\\\/wp-content\\\/uploads\\\/2014\\\/12\\\/css_layout_float-300x174.gif\",\"contentUrl\":\"http:\\\/\\\/www.webhozz.com\\\/blog\\\/wp-content\\\/uploads\\\/2014\\\/12\\\/css_layout_float-300x174.gif\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/css-float-properti\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"CSS Float Properti\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/\",\"name\":\"WebHozz Blog\",\"description\":\"Kursus Web &amp; Android di Jakarta Bandung\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/#organization\",\"name\":\"WebHozz\",\"url\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/04\\\/logo-persegi.jpg\",\"contentUrl\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/04\\\/logo-persegi.jpg\",\"width\":442,\"height\":442,\"caption\":\"WebHozz\"},\"image\":{\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/#\\\/schema\\\/person\\\/ad1c5822a60b5b228c5ceda20e439fea\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/bff35e4083f3870e2f911c4437e788147d340f274268d361dd7e1cf20bebb156?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/bff35e4083f3870e2f911c4437e788147d340f274268d361dd7e1cf20bebb156?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/bff35e4083f3870e2f911c4437e788147d340f274268d361dd7e1cf20bebb156?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"url\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/author\\\/putralucio\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"CSS Float Properti - WebHozz Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.webhozz.com\/blog\/css-float-properti\/","og_locale":"en_US","og_type":"article","og_title":"CSS Float Properti - WebHozz Blog","og_description":"Oke teman-teman Webhozz untuk kali ini saya akan coba menjelaskan apa itu kegunaan dari fungsi Properti Float.","og_url":"https:\/\/www.webhozz.com\/blog\/css-float-properti\/","og_site_name":"WebHozz Blog","article_published_time":"2014-12-13T06:18:03+00:00","article_modified_time":"2019-06-25T14:18:07+00:00","og_image":[{"width":460,"height":267,"url":"https:\/\/www.webhozz.com\/blog\/wp-content\/uploads\/2014\/12\/css_layout_float.gif","type":"image\/gif"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.webhozz.com\/blog\/css-float-properti\/#article","isPartOf":{"@id":"https:\/\/www.webhozz.com\/blog\/css-float-properti\/"},"author":{"name":"admin","@id":"https:\/\/www.webhozz.com\/blog\/#\/schema\/person\/ad1c5822a60b5b228c5ceda20e439fea"},"headline":"CSS Float Properti","datePublished":"2014-12-13T06:18:03+00:00","dateModified":"2019-06-25T14:18:07+00:00","mainEntityOfPage":{"@id":"https:\/\/www.webhozz.com\/blog\/css-float-properti\/"},"wordCount":142,"publisher":{"@id":"https:\/\/www.webhozz.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.webhozz.com\/blog\/css-float-properti\/#primaryimage"},"thumbnailUrl":"http:\/\/www.webhozz.com\/blog\/wp-content\/uploads\/2014\/12\/css_layout_float-300x174.gif","keywords":["belajar web design","belajar website","css3","desain website","HTML","html 5","html5","web design"],"articleSection":["Belajar Web Design"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.webhozz.com\/blog\/css-float-properti\/","url":"https:\/\/www.webhozz.com\/blog\/css-float-properti\/","name":"CSS Float Properti - WebHozz Blog","isPartOf":{"@id":"https:\/\/www.webhozz.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.webhozz.com\/blog\/css-float-properti\/#primaryimage"},"image":{"@id":"https:\/\/www.webhozz.com\/blog\/css-float-properti\/#primaryimage"},"thumbnailUrl":"http:\/\/www.webhozz.com\/blog\/wp-content\/uploads\/2014\/12\/css_layout_float-300x174.gif","datePublished":"2014-12-13T06:18:03+00:00","dateModified":"2019-06-25T14:18:07+00:00","breadcrumb":{"@id":"https:\/\/www.webhozz.com\/blog\/css-float-properti\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.webhozz.com\/blog\/css-float-properti\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webhozz.com\/blog\/css-float-properti\/#primaryimage","url":"http:\/\/www.webhozz.com\/blog\/wp-content\/uploads\/2014\/12\/css_layout_float-300x174.gif","contentUrl":"http:\/\/www.webhozz.com\/blog\/wp-content\/uploads\/2014\/12\/css_layout_float-300x174.gif"},{"@type":"BreadcrumbList","@id":"https:\/\/www.webhozz.com\/blog\/css-float-properti\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.webhozz.com\/blog\/"},{"@type":"ListItem","position":2,"name":"CSS Float Properti"}]},{"@type":"WebSite","@id":"https:\/\/www.webhozz.com\/blog\/#website","url":"https:\/\/www.webhozz.com\/blog\/","name":"WebHozz Blog","description":"Kursus Web &amp; Android di Jakarta Bandung","publisher":{"@id":"https:\/\/www.webhozz.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.webhozz.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.webhozz.com\/blog\/#organization","name":"WebHozz","url":"https:\/\/www.webhozz.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webhozz.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.webhozz.com\/blog\/wp-content\/uploads\/2018\/04\/logo-persegi.jpg","contentUrl":"https:\/\/www.webhozz.com\/blog\/wp-content\/uploads\/2018\/04\/logo-persegi.jpg","width":442,"height":442,"caption":"WebHozz"},"image":{"@id":"https:\/\/www.webhozz.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.webhozz.com\/blog\/#\/schema\/person\/ad1c5822a60b5b228c5ceda20e439fea","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/bff35e4083f3870e2f911c4437e788147d340f274268d361dd7e1cf20bebb156?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/bff35e4083f3870e2f911c4437e788147d340f274268d361dd7e1cf20bebb156?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/bff35e4083f3870e2f911c4437e788147d340f274268d361dd7e1cf20bebb156?s=96&d=mm&r=g","caption":"admin"},"url":"https:\/\/www.webhozz.com\/blog\/author\/putralucio\/"}]}},"_links":{"self":[{"href":"https:\/\/www.webhozz.com\/blog\/wp-json\/wp\/v2\/posts\/1386","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webhozz.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webhozz.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webhozz.com\/blog\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webhozz.com\/blog\/wp-json\/wp\/v2\/comments?post=1386"}],"version-history":[{"count":6,"href":"https:\/\/www.webhozz.com\/blog\/wp-json\/wp\/v2\/posts\/1386\/revisions"}],"predecessor-version":[{"id":8586,"href":"https:\/\/www.webhozz.com\/blog\/wp-json\/wp\/v2\/posts\/1386\/revisions\/8586"}],"wp:attachment":[{"href":"https:\/\/www.webhozz.com\/blog\/wp-json\/wp\/v2\/media?parent=1386"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webhozz.com\/blog\/wp-json\/wp\/v2\/categories?post=1386"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webhozz.com\/blog\/wp-json\/wp\/v2\/tags?post=1386"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}