{"id":3050,"date":"2010-10-29T12:17:34","date_gmt":"2010-10-29T17:17:34","guid":{"rendered":"http:\/\/susangibb.net\/blog2\/?p=3050"},"modified":"2010-10-29T12:17:34","modified_gmt":"2010-10-29T17:17:34","slug":"hypertext-code-why-a-little-knowledge-is-dangerous","status":"publish","type":"post","link":"https:\/\/susangibb.net\/blog2\/2010\/10\/hypertext-code-why-a-little-knowledge-is-dangerous\/","title":{"rendered":"HYPERTEXT &#038; CODE: Why a little knowledge is dangerous"},"content":{"rendered":"<p><span class=\"drop\">I<\/span>n trying to solve my image problem (not my personal image; that I&#8217;ve come to gradually accept) I of course found a round-about more difficult and time-consuming solution.<\/p>\n<p>Since I wanted the images to be centered within the boxes, and since they are linked out of text or stretchtext, changing the margin edge by the code I showed in the previous post didn&#8217;t work unless the image was the only stretchTarget. Otherwise, the new margin set changed the text as well. Soooooo&#8230;<\/p>\n<p>I worked around the code problem by making the images the smaller size of 400 pixels in Photoshop, made up a new file in Photoshop with a 550 width (as the images were marked, to give a 25 px each side border), painted it black (the background color of the piece, both column and body in A Bottle of Beer), and dragged the Photoshop image onto the black background and centered it, figuring in advance based on the resized image to leave a 10 px top and bottom margin and resulting in 75 px side margins. And, it works.<\/p>\n<p>Of course as usual, I&#8217;ve solved an immediate problem for a particular piece of work rather than learning the right way of doing things by taking the time to look up the code scenario. It just seems that if I sit and figure things out logically, play with the code or find a way around it, it not only produces an answer, it&#8217;s a lot more fun. Somewhere in the future I&#8217;ll need to do this again, only it won&#8217;t work with the particulars and elements of the new piece.<\/p>\n<p>That&#8217;s when I hope to have learned the right way of doing things.<\/p>\n","protected":false},"excerpt":{"rendered":"<p><span class=\"drop\">I<\/span>n trying to solve my image problem (not my personal image; that I&#8217;ve come to gradually accept) I of course found a round-about more difficult and time-consuming solution. Since I wanted the images to be centered within the boxes, and since they are linked out of text or stretchtext, changing the margin edge by the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"nf_dc_page":"","footnotes":""},"categories":[37,5,42],"tags":[],"class_list":["post-3050","post","type-post","status-publish","format-standard","hentry","category-code","category-hypertext","category-hypertext-project-1"],"_links":{"self":[{"href":"https:\/\/susangibb.net\/blog2\/wp-json\/wp\/v2\/posts\/3050","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/susangibb.net\/blog2\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/susangibb.net\/blog2\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/susangibb.net\/blog2\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/susangibb.net\/blog2\/wp-json\/wp\/v2\/comments?post=3050"}],"version-history":[{"count":2,"href":"https:\/\/susangibb.net\/blog2\/wp-json\/wp\/v2\/posts\/3050\/revisions"}],"predecessor-version":[{"id":3052,"href":"https:\/\/susangibb.net\/blog2\/wp-json\/wp\/v2\/posts\/3050\/revisions\/3052"}],"wp:attachment":[{"href":"https:\/\/susangibb.net\/blog2\/wp-json\/wp\/v2\/media?parent=3050"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/susangibb.net\/blog2\/wp-json\/wp\/v2\/categories?post=3050"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/susangibb.net\/blog2\/wp-json\/wp\/v2\/tags?post=3050"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}