{"id":26841,"date":"2024-11-14T15:23:35","date_gmt":"2024-11-14T14:23:35","guid":{"rendered":"https:\/\/www.digitizer.rs\/news-stories\/how-to-position-the-div\/"},"modified":"2024-11-14T15:43:51","modified_gmt":"2024-11-14T14:43:51","slug":"how-to-position-the-div","status":"publish","type":"post","link":"https:\/\/www.digitizer.rs\/en\/news-stories\/how-to-position-the-div\/","title":{"rendered":"How to position the DIV?"},"content":{"rendered":"<div class=\"wpb-content-wrapper\">[vc_row full_width=&#8221;stretch_row&#8221; css=&#8221;.vc_custom_1616420781152{padding-top: 20px !important;padding-bottom: 30px !important;}&#8221;][vc_column][vc_column_text css=&#8221;.vc_custom_1618213122574{padding-top: 30px !important;padding-bottom: 30px !important;}&#8221; font_family=&#8221;Open Sans&#8221;]\n<h2><span style=\"color: #ff6600;\"><strong>What is DIV?  <\/strong><\/span><\/h2>\n<p><span style=\"color: #333333;\"><span style=\"font-weight: 400;\">&#8220;HTML Content Division element&#8221; (<\/span>&lt; <span style=\"font-weight: 400;\">giant<\/span>&gt; <span style=\"font-weight: 400;\">) is the building block<\/span> <i><span style=\"font-weight: 400;\">of the web<\/span><\/i> <span style=\"font-weight: 400;\">sides. In our text, learn four ways to position a div element on a <em>website<\/em> page.   <\/span><\/span><\/p>\n<p><span style=\"color: #333333;\"><span style=\"font-weight: 400;\">Just as a brick is the building block of a wall, so<\/span> <i><span style=\"font-weight: 400;\">div<\/span><\/i> <span style=\"font-weight: 400;\">represents a &#8220;<\/span> <span style=\"font-weight: 400;\">brick&#8221; in the construction of <em>web<\/em> pages.<\/span><\/span><\/p>\n<p><span style=\"color: #333333;\"><span style=\"font-weight: 400;\"><em>A div<\/em> is a container for all elements. More is added to it   <\/span><i><span style=\"font-weight: 400;\">div<\/span><\/i> <span style=\"font-weight: 400;\">elements and<\/span> <span style=\"color: #ff6600;\"><a style=\"color: #ff6600;\" href=\"https:\/\/www.digitizer.rs\/en\/news-stories\/what-are-block-and-inline-elements-in-html-and-css\/\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400;\">all other elements<\/span><\/a><\/span> <span style=\"font-weight: 400;\">can go inside it.<\/span> <\/span><\/p>\n<p>&nbsp;<\/p>\n<h1><span style=\"color: #ff6600;\"><strong>How to position a DIV on a site page?<\/strong><\/span><\/h1>\n<p><span style=\"color: #333333;\">We&#8217;ll present you with four different methods you can use to position <em>a div<\/em> element on a site station.<\/span><\/p>\n<p>&nbsp;<\/p>\n<h3><span style=\"color: #ff6600;\"><strong>1st method &#8211; using &#8221; <i>flex layout<\/i> &#8220;<\/strong><\/span><\/h3>\n<p><span style=\"color: #333333;\"><span style=\"font-weight: 400;\"><em>Flex<\/em><\/span> <i><span style=\"font-weight: 400;\">layout<\/span><\/i> <span style=\"font-weight: 400;\">is the fastest way to fit multiple elements into a single<\/span> <i><span style=\"font-weight: 400;\">div.<\/span><\/i><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400; color: #333333;\">.child-div {<\/span><\/p>\n<p><span style=\"font-weight: 400; color: #333333;\">display:flex;<\/span><\/p>\n<p><span style=\"font-weight: 400; color: #333333;\">justify-content: center;<\/span><\/p>\n<p><span style=\"color: #333333;\"><span style=\"font-weight: 400;\"> <\/span> <span style=\"font-weight: 400;\">align-items: center;<\/span><\/span><\/p>\n<p><span style=\"font-weight: 400; color: #333333;\">}<\/span>[\/vc_column_text][vc_single_image image=&#8221;23901&#8243; css_animation=&#8221;fadeIn&#8221; alignment=&#8221;center&#8221; css=&#8221;.vc_custom_1618165824260{padding-top: 30px !important;padding-bottom: 30px !important;}&#8221; img_hover=&#8221;fade-out&#8221;][vc_column_text css=&#8221;.vc_custom_1618166802804{padding-top: 30px !important;padding-bottom: 30px !important;}&#8221; font_family=&#8221;Open Sans&#8221;]\n<h3><span style=\"color: #ff6600;\"><strong>2nd method &#8211; <i>margin auto<\/i> <\/strong><\/span><\/h3>\n<p><span style=\"color: #333333;\"><span style=\"font-weight: 400;\">A quick and simple solution, but it has its limitations. Only for elements that have a defined width.<\/span> <i><span style=\"font-weight: 400;\">The parent div<\/span><\/i> <span style=\"font-weight: 400;\">must contain<\/span> <i><span style=\"font-weight: 400;\">text-align: center;<\/span><\/i><span style=\"font-weight: 400;\">. Ne sme da ima   <\/span><i><span style=\"font-weight: 400;\">position fixed<\/span><\/i> <span style=\"font-weight: 400;\">or<\/span> <i><span style=\"font-weight: 400;\">absolute.<\/span><\/i><\/span><\/p>\n<p><span style=\"color: #333333;\"><span style=\"font-weight: 400;\">You can read more about positioning elements in CSS<\/span> <span style=\"color: #ff6600;\"><a style=\"color: #ff6600;\" href=\"https:\/\/www.digitizer.rs\/en\/news-stories\/positioning-elements-in-css\/\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400;\">here.<\/span><\/a><\/span><\/span><\/p>\n<p><span style=\"font-weight: 400; color: #333333;\">We cannot use it for vertical alignment.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400; color: #333333;\">.child-div {<\/span><\/p>\n<p><span style=\"font-weight: 400; color: #333333;\">background: url(&#8220;logo.png&#8221;) no-repeat;<\/span><\/p>\n<p><span style=\"font-weight: 400; color: #333333;\">background-size: 100%;<\/span><\/p>\n<p><span style=\"font-weight: 400; color: #333333;\">width: 200px;<\/span><\/p>\n<p><span style=\"font-weight: 400; color: #333333;\">height: 200px;<\/span><\/p>\n<p><span style=\"font-weight: 400; color: #333333;\">border-radius: 50%;<\/span><\/p>\n<p><span style=\"font-weight: 400; color: #333333;\">margin: 0 auto;  <\/span><\/p>\n<p><span style=\"font-weight: 400; color: #333333;\">}<\/span>[\/vc_column_text][vc_single_image image=&#8221;23902&#8243; css_animation=&#8221;fadeIn&#8221; alignment=&#8221;center&#8221; css=&#8221;.vc_custom_1618165967656{padding-top: 30px !important;padding-bottom: 30px !important;}&#8221; img_hover=&#8221;fade-out&#8221;][vc_column_text css=&#8221;.vc_custom_1618166605128{padding-top: 30px !important;padding-bottom: 30px !important;}&#8221; font_family=&#8221;Open Sans&#8221;]\n<h3><span style=\"color: #ff6600;\"><strong>3rd method &#8211; a combination of <i>text-align<\/i> and <i>inline-block<\/i><\/strong><\/span><\/h3>\n<p><span style=\"color: #333333;\"><span style=\"font-weight: 400;\">The difference between the 2nd and 3rd methods is that    <\/span><i><span style=\"font-weight: 400;\">width  <\/span><\/i><span style=\"font-weight: 400;\">should not be defined. Also we can&#8217;t use vertical alignment here either. <\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400; color: #333333;\">.child-div {<\/span><\/p>\n<p><span style=\"font-weight: 400; color: #333333;\">background: url(&#8220;logo.png&#8221;) no-repeat;  <\/span><\/p>\n<p><span style=\"font-weight: 400; color: #333333;\">background-size: 100%;<\/span><\/p>\n<p><span style=\"font-weight: 400; color: #333333;\">width: 200px;<\/span><\/p>\n<p><span style=\"font-weight: 400; color: #333333;\">height: 200px;<\/span><\/p>\n<p><span style=\"font-weight: 400; color: #333333;\">border-radius: 50%;<\/span><\/p>\n<p><span style=\"font-weight: 400; color: #333333;\">display: inline-block;<\/span><\/p>\n<p><span style=\"font-weight: 400; color: #333333;\">}<\/span>[\/vc_column_text][vc_single_image image=&#8221;23903&#8243; css_animation=&#8221;fadeIn&#8221; alignment=&#8221;center&#8221; css=&#8221;.vc_custom_1618166095227{padding-top: 30px !important;padding-bottom: 30px !important;}&#8221; img_hover=&#8221;fade-out&#8221;][vc_column_text css=&#8221;.vc_custom_1618166614597{padding-top: 30px !important;padding-bottom: 30px !important;}&#8221; font_family=&#8221;Open Sans&#8221;]\n<h3><span style=\"color: #ff6600;\"><strong>4th method &#8211; <i>2D Transform<\/i><\/strong><\/span><\/h3>\n<p><span style=\"color: #333333;\"><i><span style=\"font-weight: 400;\">Position, top and left and transform<\/span><\/i> <span style=\"font-weight: 400;\"><em>div<\/em> will always be in the middle of the screen (horizontally and vertically).<\/span><\/span><\/p>\n<p><span style=\"color: #333333;\"><i><span style=\"font-weight: 400;\">Div  <\/span><\/i><span style=\"font-weight: 400;\">will be over all other elements (due to absolute position). Width and height must be defined as well. <\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400; color: #333333;\">.child-div {<\/span><\/p>\n<p><span style=\"font-weight: 400; color: #333333;\">bacground: url(&#8220;logo.png&#8221;) no-repeat;<\/span><\/p>\n<p><span style=\"font-weight: 400; color: #333333;\">background-size: 100%;<\/span><\/p>\n<p><span style=\"font-weight: 400; color: #333333;\">width: 200px;<\/span><\/p>\n<p><span style=\"font-weight: 400; color: #333333;\">height: 200px;<\/span><\/p>\n<p><span style=\"font-weight: 400; color: #333333;\">border-radius: 50%;<\/span><\/p>\n<p><span style=\"font-weight: 400; color: #333333;\">position: absolute;<\/span><\/p>\n<p><span style=\"font-weight: 400; color: #333333;\">top: 50%;<\/span><\/p>\n<p><span style=\"font-weight: 400; color: #333333;\">left: 50%;<\/span><\/p>\n<p><span style=\"font-weight: 400; color: #333333;\">transform: translate(-50%, -50%);  <\/span><\/p>\n<p><span style=\"font-weight: 400; color: #333333;\">}<\/span>[\/vc_column_text][vc_single_image image=&#8221;23904&#8243; css_animation=&#8221;fadeIn&#8221; alignment=&#8221;center&#8221; css=&#8221;.vc_custom_1618166209029{padding-top: 30px !important;padding-bottom: 30px !important;}&#8221; img_hover=&#8221;fade-out&#8221;][vc_column_text css=&#8221;.vc_custom_1618166632474{padding-top: 70px !important;padding-bottom: 30px !important;}&#8221; font_family=&#8221;Open Sans&#8221;]<span style=\"color: #333333;\"><span style=\"font-weight: 400;\">For more news and interesting stories from digital marketing,<\/span> <span style=\"color: #ff6600;\"><a style=\"color: #ff6600;\" href=\"https:\/\/www.digitizer.rs\/en\/news-stories\/\"><span style=\"font-weight: 400;\">visit our blog page<\/span><\/a><\/span> <span style=\"font-weight: 400;\">or<\/span> <span style=\"color: #ff6600;\"><a style=\"color: #ff6600;\" href=\"https:\/\/www.instagram.com\/webdigitizer\/\"><span style=\"font-weight: 400;\">follow our Instagram profile.<\/span><\/a><\/span><\/span>[\/vc_column_text][\/vc_column][\/vc_row]\n[vc_row full_width=&#8221;stretch_row&#8221;][vc_column][vc_single_image source=&#8221;external_link&#8221; custom_src=&#8221;https:\/\/www.digitizer.rs\/blog\/digitizer-line.jpg&#8221;][vc_column_text]<em><span style=\"color: #333333;\">Made by Aleksandar \u0110ur\u0111evi\u0107 \u2013 Senior Web Developer @Digitizer<\/span><\/em>[\/vc_column_text][\/vc_column][\/vc_row][vc_row full_width=&#8221;stretch_row&#8221; css=&#8221;.vc_custom_1587387018476{padding-top: 30px !important;padding-right: 30px !important;padding-bottom: 30px !important;padding-left: 30px !important;}&#8221;][vc_column][vc_btn title=&#8221;Back to News &amp; Stories&#8221; style=&#8221;gradient-custom&#8221; gradient_custom_color_1=&#8221;#000000&#8243; gradient_custom_color_2=&#8221;#515151&#8243; align=&#8221;center&#8221; link=&#8221;url:https%3A%2F%2Fwww.digitizer.rs%2Fnews-stories%2F|title:Back%20to%20NEWS%20%26amp%3B%20STORIES|&#8221;][\/vc_column][\/vc_row]\n<\/div>","protected":false},"excerpt":{"rendered":"<p>[vc_row full_width=&#8221;stretch_row&#8221; css=&#8221;.vc_custom_1616420781152{padding-top: 20px !important;padding-bottom: 30px !important;}&#8221;][vc_column][vc_column_text css=&#8221;.vc_custom_1618213122574{padding-top: 30px !important;padding-bottom: 30px !important;}&#8221; font_family=&#8221;Open Sans&#8221;] What is DIV? &#8220;HTML Content Division element&#8221; (&lt; giant&gt; ) is the building block of the web sides. In our text, learn four ways to position a div element on a website page. Just as a brick is the building block&hellip;<\/p>\n","protected":false},"author":10,"featured_media":23905,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4384],"tags":[4439,4398,4403,4466,4407,4412,4411],"post_series":[],"class_list":["post-26841","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-website","tag-creation-and-design-of-websites","tag-google-en","tag-internet-en","tag-izrada-i-dizajn-sajtova-en","tag-online-en","tag-web-design-en","tag-wordpress-en","entry","has-media"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to position the DIV? - Digitizer<\/title>\n<meta name=\"description\" content=\"In our article, learn four ways to position a div element on a website page.\" \/>\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.digitizer.rs\/en\/news-stories\/how-to-position-the-div\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to position the DIV? - Digitizer\" \/>\n<meta property=\"og:description\" content=\"In our article, learn four ways to position a div element on a website page.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.digitizer.rs\/en\/news-stories\/how-to-position-the-div\/\" \/>\n<meta property=\"og:site_name\" content=\"Digitizer\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webdigitizer\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-14T14:23:35+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-14T14:43:51+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.digitizer.rs\/pictures\/digitizer-blog-kako-pozicionirati-div.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"535\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"nebojsa.radovanovic@digitizer.rs\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"How to position the DIV? - Digitizer\" \/>\n<meta name=\"twitter:description\" content=\"In our article, learn four ways to position a div element on a website page.\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"nebojsa.radovanovic@digitizer.rs\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.digitizer.rs\\\/en\\\/news-stories\\\/how-to-position-the-div\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.digitizer.rs\\\/en\\\/news-stories\\\/how-to-position-the-div\\\/\"},\"author\":{\"name\":\"nebojsa.radovanovic@digitizer.rs\",\"@id\":\"https:\\\/\\\/www.digitizer.rs\\\/en\\\/#\\\/schema\\\/person\\\/25e8bb23e8c57d47a985e7a45c11a753\"},\"headline\":\"How to position the DIV?\",\"datePublished\":\"2024-11-14T14:23:35+00:00\",\"dateModified\":\"2024-11-14T14:43:51+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.digitizer.rs\\\/en\\\/news-stories\\\/how-to-position-the-div\\\/\"},\"wordCount\":646,\"publisher\":{\"@id\":\"https:\\\/\\\/www.digitizer.rs\\\/en\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.digitizer.rs\\\/en\\\/news-stories\\\/how-to-position-the-div\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.digitizer.rs\\\/pictures\\\/digitizer-blog-kako-pozicionirati-div.jpg\",\"keywords\":[\"Creation and Design of Websites\",\"google\",\"internet\",\"Izrada i Dizajn Sajtova\",\"online\",\"web design\",\"wordpress\"],\"articleSection\":[\"Website\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.digitizer.rs\\\/en\\\/news-stories\\\/how-to-position-the-div\\\/\",\"url\":\"https:\\\/\\\/www.digitizer.rs\\\/en\\\/news-stories\\\/how-to-position-the-div\\\/\",\"name\":\"How to position the DIV? - Digitizer\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.digitizer.rs\\\/en\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.digitizer.rs\\\/en\\\/news-stories\\\/how-to-position-the-div\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.digitizer.rs\\\/en\\\/news-stories\\\/how-to-position-the-div\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.digitizer.rs\\\/pictures\\\/digitizer-blog-kako-pozicionirati-div.jpg\",\"datePublished\":\"2024-11-14T14:23:35+00:00\",\"dateModified\":\"2024-11-14T14:43:51+00:00\",\"description\":\"In our article, learn four ways to position a div element on a website page.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.digitizer.rs\\\/en\\\/news-stories\\\/how-to-position-the-div\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.digitizer.rs\\\/en\\\/news-stories\\\/how-to-position-the-div\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.digitizer.rs\\\/en\\\/news-stories\\\/how-to-position-the-div\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.digitizer.rs\\\/pictures\\\/digitizer-blog-kako-pozicionirati-div.jpg\",\"contentUrl\":\"https:\\\/\\\/www.digitizer.rs\\\/pictures\\\/digitizer-blog-kako-pozicionirati-div.jpg\",\"width\":1024,\"height\":535},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.digitizer.rs\\\/en\\\/news-stories\\\/how-to-position-the-div\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.digitizer.rs\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"News &#038; Stories\",\"item\":\"https:\\\/\\\/www.digitizer.rs\\\/en\\\/news-stories\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to position the DIV?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.digitizer.rs\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/www.digitizer.rs\\\/en\\\/\",\"name\":\"Digitizer\",\"description\":\"Google Ads - Social - Email Marketing - Web Design - Video Editing\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.digitizer.rs\\\/en\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.digitizer.rs\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.digitizer.rs\\\/en\\\/#organization\",\"name\":\"Digitizer\",\"url\":\"https:\\\/\\\/www.digitizer.rs\\\/en\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.digitizer.rs\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.digitizer.rs\\\/pictures\\\/Digitizer-digitalni-marketing-izrada-dizajn-sajtova-graficki-motion-dizajn.jpg\",\"contentUrl\":\"https:\\\/\\\/www.digitizer.rs\\\/pictures\\\/Digitizer-digitalni-marketing-izrada-dizajn-sajtova-graficki-motion-dizajn.jpg\",\"width\":1000,\"height\":466,\"caption\":\"Digitizer\"},\"image\":{\"@id\":\"https:\\\/\\\/www.digitizer.rs\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/webdigitizer\",\"https:\\\/\\\/www.instagram.com\\\/webdigitizer\\\/\",\"https:\\\/\\\/www.tiktok.com\\\/@webdigitizer\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/digitizer\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.digitizer.rs\\\/en\\\/#\\\/schema\\\/person\\\/25e8bb23e8c57d47a985e7a45c11a753\",\"name\":\"nebojsa.radovanovic@digitizer.rs\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b9bb082dbfe42607d74375a50a8acbf4083ae2a807b6f3d36e610fc2ea2c639b?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b9bb082dbfe42607d74375a50a8acbf4083ae2a807b6f3d36e610fc2ea2c639b?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b9bb082dbfe42607d74375a50a8acbf4083ae2a807b6f3d36e610fc2ea2c639b?s=96&d=mm&r=g\",\"caption\":\"nebojsa.radovanovic@digitizer.rs\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to position the DIV? - Digitizer","description":"In our article, learn four ways to position a div element on a website page.","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.digitizer.rs\/en\/news-stories\/how-to-position-the-div\/","og_locale":"en_US","og_type":"article","og_title":"How to position the DIV? - Digitizer","og_description":"In our article, learn four ways to position a div element on a website page.","og_url":"https:\/\/www.digitizer.rs\/en\/news-stories\/how-to-position-the-div\/","og_site_name":"Digitizer","article_publisher":"https:\/\/www.facebook.com\/webdigitizer","article_published_time":"2024-11-14T14:23:35+00:00","article_modified_time":"2024-11-14T14:43:51+00:00","og_image":[{"width":1024,"height":535,"url":"https:\/\/www.digitizer.rs\/pictures\/digitizer-blog-kako-pozicionirati-div.jpg","type":"image\/jpeg"}],"author":"nebojsa.radovanovic@digitizer.rs","twitter_card":"summary_large_image","twitter_title":"How to position the DIV? - Digitizer","twitter_description":"In our article, learn four ways to position a div element on a website page.","twitter_misc":{"Written by":"nebojsa.radovanovic@digitizer.rs","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.digitizer.rs\/en\/news-stories\/how-to-position-the-div\/#article","isPartOf":{"@id":"https:\/\/www.digitizer.rs\/en\/news-stories\/how-to-position-the-div\/"},"author":{"name":"nebojsa.radovanovic@digitizer.rs","@id":"https:\/\/www.digitizer.rs\/en\/#\/schema\/person\/25e8bb23e8c57d47a985e7a45c11a753"},"headline":"How to position the DIV?","datePublished":"2024-11-14T14:23:35+00:00","dateModified":"2024-11-14T14:43:51+00:00","mainEntityOfPage":{"@id":"https:\/\/www.digitizer.rs\/en\/news-stories\/how-to-position-the-div\/"},"wordCount":646,"publisher":{"@id":"https:\/\/www.digitizer.rs\/en\/#organization"},"image":{"@id":"https:\/\/www.digitizer.rs\/en\/news-stories\/how-to-position-the-div\/#primaryimage"},"thumbnailUrl":"https:\/\/www.digitizer.rs\/pictures\/digitizer-blog-kako-pozicionirati-div.jpg","keywords":["Creation and Design of Websites","google","internet","Izrada i Dizajn Sajtova","online","web design","wordpress"],"articleSection":["Website"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.digitizer.rs\/en\/news-stories\/how-to-position-the-div\/","url":"https:\/\/www.digitizer.rs\/en\/news-stories\/how-to-position-the-div\/","name":"How to position the DIV? - Digitizer","isPartOf":{"@id":"https:\/\/www.digitizer.rs\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.digitizer.rs\/en\/news-stories\/how-to-position-the-div\/#primaryimage"},"image":{"@id":"https:\/\/www.digitizer.rs\/en\/news-stories\/how-to-position-the-div\/#primaryimage"},"thumbnailUrl":"https:\/\/www.digitizer.rs\/pictures\/digitizer-blog-kako-pozicionirati-div.jpg","datePublished":"2024-11-14T14:23:35+00:00","dateModified":"2024-11-14T14:43:51+00:00","description":"In our article, learn four ways to position a div element on a website page.","breadcrumb":{"@id":"https:\/\/www.digitizer.rs\/en\/news-stories\/how-to-position-the-div\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.digitizer.rs\/en\/news-stories\/how-to-position-the-div\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.digitizer.rs\/en\/news-stories\/how-to-position-the-div\/#primaryimage","url":"https:\/\/www.digitizer.rs\/pictures\/digitizer-blog-kako-pozicionirati-div.jpg","contentUrl":"https:\/\/www.digitizer.rs\/pictures\/digitizer-blog-kako-pozicionirati-div.jpg","width":1024,"height":535},{"@type":"BreadcrumbList","@id":"https:\/\/www.digitizer.rs\/en\/news-stories\/how-to-position-the-div\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.digitizer.rs\/en\/"},{"@type":"ListItem","position":2,"name":"News &#038; Stories","item":"https:\/\/www.digitizer.rs\/en\/news-stories\/"},{"@type":"ListItem","position":3,"name":"How to position the DIV?"}]},{"@type":"WebSite","@id":"https:\/\/www.digitizer.rs\/en\/#website","url":"https:\/\/www.digitizer.rs\/en\/","name":"Digitizer","description":"Google Ads - Social - Email Marketing - Web Design - Video Editing","publisher":{"@id":"https:\/\/www.digitizer.rs\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.digitizer.rs\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.digitizer.rs\/en\/#organization","name":"Digitizer","url":"https:\/\/www.digitizer.rs\/en\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.digitizer.rs\/en\/#\/schema\/logo\/image\/","url":"https:\/\/www.digitizer.rs\/pictures\/Digitizer-digitalni-marketing-izrada-dizajn-sajtova-graficki-motion-dizajn.jpg","contentUrl":"https:\/\/www.digitizer.rs\/pictures\/Digitizer-digitalni-marketing-izrada-dizajn-sajtova-graficki-motion-dizajn.jpg","width":1000,"height":466,"caption":"Digitizer"},"image":{"@id":"https:\/\/www.digitizer.rs\/en\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webdigitizer","https:\/\/www.instagram.com\/webdigitizer\/","https:\/\/www.tiktok.com\/@webdigitizer","https:\/\/www.linkedin.com\/company\/digitizer"]},{"@type":"Person","@id":"https:\/\/www.digitizer.rs\/en\/#\/schema\/person\/25e8bb23e8c57d47a985e7a45c11a753","name":"nebojsa.radovanovic@digitizer.rs","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/b9bb082dbfe42607d74375a50a8acbf4083ae2a807b6f3d36e610fc2ea2c639b?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/b9bb082dbfe42607d74375a50a8acbf4083ae2a807b6f3d36e610fc2ea2c639b?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b9bb082dbfe42607d74375a50a8acbf4083ae2a807b6f3d36e610fc2ea2c639b?s=96&d=mm&r=g","caption":"nebojsa.radovanovic@digitizer.rs"}}]}},"_links":{"self":[{"href":"https:\/\/www.digitizer.rs\/en\/wp-json\/wp\/v2\/posts\/26841","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.digitizer.rs\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.digitizer.rs\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.digitizer.rs\/en\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/www.digitizer.rs\/en\/wp-json\/wp\/v2\/comments?post=26841"}],"version-history":[{"count":0,"href":"https:\/\/www.digitizer.rs\/en\/wp-json\/wp\/v2\/posts\/26841\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.digitizer.rs\/en\/wp-json\/wp\/v2\/media\/23905"}],"wp:attachment":[{"href":"https:\/\/www.digitizer.rs\/en\/wp-json\/wp\/v2\/media?parent=26841"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.digitizer.rs\/en\/wp-json\/wp\/v2\/categories?post=26841"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.digitizer.rs\/en\/wp-json\/wp\/v2\/tags?post=26841"},{"taxonomy":"post_series","embeddable":true,"href":"https:\/\/www.digitizer.rs\/en\/wp-json\/wp\/v2\/post_series?post=26841"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}