{"id":68397,"date":"2013-07-02T13:02:52","date_gmt":"2013-07-02T17:02:52","guid":{"rendered":"http:\/\/www.bu.edu\/tech\/?page_id=68397"},"modified":"2023-03-08T16:42:53","modified_gmt":"2023-03-08T21:42:53","slug":"find-area-width","status":"publish","type":"page","link":"https:\/\/www.bu.edu\/tech\/services\/cccs\/websites\/www\/wordpress\/how-to\/find-area-width\/","title":{"rendered":"Find the dimensions of a web page element"},"content":{"rendered":"<p>When adding images and videos, it&#8217;s best to make them no wider than they need to be. This helps preserve the correct design layout and helps significantly with page load and download times. Follow these instructions to determine the dimensions of any element on your web page, including the width of your content area:<\/p>\n<h2>If you&#8217;re using a standard Flexi theme&#8230;<\/h2>\n<ol>\n<li>The width of your content area is\u00a0<b>550 pixels<\/b> in all standard Flexi themes that are using the &#8220;medium&#8221; layout option.<\/li>\n<\/ol>\n<h2>If you&#8217;re using a custom theme&#8230;<\/h2>\n<h3>Chrome<\/h3>\n<ol>\n<li>Using the\u00a0<b>Chrome<\/b> browser, right click \/ control click anywhere inside your content area and select\u00a0<b>Inspect Element<\/b>.\n<p><div id=\"attachment68399\" style=\"width: 516px\" class=\"wp-caption alignnone\"><img aria-describedby=\"caption-attachment68399\" loading=\"lazy\" src=\"\/tech\/files\/2013\/07\/tw-howto-find-size-chrome-step-1.png\" alt=\"Image showing a contextual menu with &quot;Inspect Element&quot; highlighted\" title=\"Finding the dimensions of an element for Chrome, step 1\" width=\"506\" height=\"348\" class=\"size-full wp-image-68399\" \/><p id=\"caption-attachment68399\" class=\"wp-caption-text\">In Chrome, right-click (or control + click) in the content area and choose &#8220;Inspect Element&#8221; to open the element inspector.<\/p><\/div><\/li>\n<li>In the new window that appears in the bottom of your browser, move your mouse within the code until you see the content area highlighted (usually in blue).\n<p><div id=\"attachment68400\" style=\"width: 516px\" class=\"wp-caption alignnone\"><img aria-describedby=\"caption-attachment68400\" loading=\"lazy\" src=\"\/tech\/files\/2013\/07\/tw-howto-find-size-chrome-step-2.png\" alt=\"The Element Inspector visible at the bottom of the screen showing the content area in the DOM highlighted in blue.\" title=\"Finding the dimensions of an element for Chrome, step 2\" width=\"506\" height=\"348\" class=\"size-full wp-image-68400\" \/><p id=\"caption-attachment68400\" class=\"wp-caption-text\">Find the content area in the Element Inspector. It&#8217;ll be highlighted in blue.<\/p><\/div><\/li>\n<li>You&#8217;ll notice a tooltip near the highlighting. The <strong>first number<\/strong> is the width.\n<p><div id=\"attachment68401\" style=\"width: 516px\" class=\"wp-caption alignnone\"><img aria-describedby=\"caption-attachment68401\" loading=\"lazy\" src=\"\/tech\/files\/2013\/07\/tw-howto-find-size-chrome-step-3.png\" alt=\"A tooltip showing the dimensions of the selected element.\" title=\"Finding the dimensions of an element for Chrome, step 3\" width=\"506\" height=\"348\" class=\"size-full wp-image-68401\" \/><p id=\"caption-attachment68401\" class=\"wp-caption-text\">The width of the element will be the first number in the yellow tooltip.<\/p><\/div><\/li>\n<\/ol>\n<h3>Safari<\/h3>\n<ol>\n<li>You&#8217;ll first need to enable the Developer Toolbar in the browser. To do this:\n<ol>\n<li>Open Safari <strong>Preferences<\/strong> (Macs click Safari and navigate to <strong>Preferences.<\/strong> PCs click <strong>File<\/strong> and navigate to <strong>Preferences<\/strong>)<\/li>\n<li>Click the <strong>Advanced<\/strong> tab (the gear on the far right)<\/li>\n<li>Select the <strong>Show Develop menu in menu bar<\/strong> box at the bottom of this pane.<\/li>\n<li>Close the <strong>Preferences<\/strong> window<\/li>\n<\/ol>\n<\/li>\n<li>Right click \/ control click anywhere inside your content area and select\u00a0<b>Inspect Element<\/b>.<\/li>\n<li>In the new window that appears in the bottom of your browser, move your mouse within the code until you see the content area highlighted (usually in blue).<\/li>\n<li>You&#8217;ll notice a tooltip near the highlighting. The first number is the width.<\/li>\n<\/ol>\n<h3>Firefox<\/h3>\n<ol>\n<li>Right click \/ control click anywhere inside your content area and select\u00a0<b>Inspect Element<\/b>.<\/li>\n<li>In the new window that appears in the bottom of your browser, click the button that looks like a mouse cursor going into a square.<\/li>\n<li>With the <strong>Select Element<\/strong> tool enabled, move your mouse over your site. You&#8217;ll notice dotted lines appearing around elements on your page. Find the content area and click to focus on it.<\/li>\n<li>Back in the bottom window, click <strong>Box Model<\/strong> on the right.<\/li>\n<li>The width and height will be shown. The first number is the width.<\/li>\n<\/ol>\n<h3>Microsoft Edge<\/h3>\n<ol>\n<li>Press <strong>F12<\/strong> or <strong>Ctrl+Shift+I <\/strong>to bring up the <strong>Developer Tools.\u00a0<\/strong><\/li>\n<li>Right-click on any image on the web page and click on<span>\u00a0<\/span><em>Inspect.<\/em><\/li>\n<li>Make sure the<span>\u00a0<\/span><em>Elements<\/em><span>\u00a0<\/span>tab is selected.<\/li>\n<li>Select the Properties or Computed tab listed below.<\/li>\n<li>The height and width will be listed for either tab options.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>When adding images and videos, it&#8217;s best to make them no wider than they need to be. This helps preserve the correct design layout and helps significantly with page load and download times. Follow these instructions to determine the dimensions of any element on your web page, including the width of your content area: If&#8230;<\/p>\n","protected":false},"author":6044,"featured_media":0,"parent":304,"menu_order":22,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/pages\/68397"}],"collection":[{"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/users\/6044"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/comments?post=68397"}],"version-history":[{"count":7,"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/pages\/68397\/revisions"}],"predecessor-version":[{"id":143992,"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/pages\/68397\/revisions\/143992"}],"up":[{"embeddable":true,"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/pages\/304"}],"wp:attachment":[{"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/media?parent=68397"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}