<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>html &amp;mdash; Attach to Process</title>
    <link>https://devblog.dinobansigan.com/tag:html</link>
    <description>Thoughts and Notes on Software Development</description>
    <pubDate>Mon, 27 Apr 2026 18:19:49 +0000</pubDate>
    <image>
      <url>https://i.snap.as/4wmUdb6N.png</url>
      <title>html &amp;mdash; Attach to Process</title>
      <link>https://devblog.dinobansigan.com/tag:html</link>
    </image>
    <item>
      <title>Hide HTML Element Without Taking Up Space</title>
      <link>https://devblog.dinobansigan.com/hide-html-element-without-taking-up-space?pk_campaign=rss-feed</link>
      <description>&lt;![CDATA[Most of the time, using display: none; is all you need to hide an HTML element. But every once in awhile, doing so will hide the element, but would not reclaim the space the element would have been occupying.&#xA;&#xA;To hide an HTML element and not have it take up space, you can do something like this:&#xA;&#xA;post-signature-hidden {&#xA;    max-height: 0;&#xA;    margin-top: -3em;&#xA;    visibility: hidden;&#xA;}&#xA;&#xA;In case you&#39;re wondering, that&#39;s the CSS I use to stop my Post Signatures from showing up on the pinned pages on my journal.&#xA;&#xA;Tags: #HTML #CSS&#xA;&#xA;a href=&#34;https://remark.as/p/devblog.dinobansigan.com/hide-html-element-without-taking-up-space&#34;Discuss.../a or leave a comment below.]]&gt;</description>
      <content:encoded><![CDATA[<p>Most of the time, using <code>display: none;</code> is all you need to hide an HTML element. But every once in awhile, doing so will hide the element, but would not reclaim the space the element would have been occupying.</p>

<p>To hide an HTML element and not have it take up space, you can do something like this:</p>

<pre><code class="language-css">#post-signature-hidden {
    max-height: 0;
    margin-top: -3em;
    visibility: hidden;
}
</code></pre>

<p>In case you&#39;re wondering, that&#39;s the CSS I use to stop my <em>Post Signatures</em> from showing up on the pinned pages on my <a href="https://journal.dinobansigan.com/">journal</a>.</p>

<p><em>Tags: <a href="https://devblog.dinobansigan.com/tag:HTML" class="hashtag"><span>#</span><span class="p-category">HTML</span></a> <a href="https://devblog.dinobansigan.com/tag:CSS" class="hashtag"><span>#</span><span class="p-category">CSS</span></a></em></p>

<p><strong><a href="https://remark.as/p/devblog.dinobansigan.com/hide-html-element-without-taking-up-space">Discuss...</a></strong> or leave a comment below.</p>
]]></content:encoded>
      <guid>https://devblog.dinobansigan.com/hide-html-element-without-taking-up-space</guid>
      <pubDate>Tue, 19 Jan 2021 02:00:00 +0000</pubDate>
    </item>
    <item>
      <title>Domain Redirect via HTML and JavaScript</title>
      <link>https://devblog.dinobansigan.com/domain-redirect-via-html-and-javascript?pk_campaign=rss-feed</link>
      <description>&lt;![CDATA[I purchased a new domain, nowlisteningto.com for my Now Listening to... music blog. Prior to buying the new domain name, I didn&#39;t realize how big of a pain it was going to be to set up redirection. Turns out, you can&#39;t setup a 301 redirect using just DNS records. It has to be done on a web server level, or via your domain registrar. My issue is that I can&#39;t use my domain registrar for redirects, because I use Netlify to manage the DNS records for my domains. And from what I can see, Netlify doesn&#39;t have a menu option for redirecting from one domain to another.&#xA;&#xA;So, I ended up doing a redirect via HTML and JavaScript, by hosting a static site on Netlify. This static site&#39;s purpose is to simply redirect from nowlisteningto.dinobansigan.com to nowlisteningto.com. It is not ideal, but this will do for now until I figure out a better solution. Thanks to this answer on StackOverflow for the idea.&#xA;&#xA;Tags: #CustomDomain #DomainRedirect #HTML #JavaScript&#xA;&#xA;a href=&#34;https://remark.as/p/devblog.dinobansigan.com/domain-redirect-via-html-and-javascript&#34;Discuss.../a or leave a comment below.]]&gt;</description>
      <content:encoded><![CDATA[<p>I purchased a new domain, <strong>nowlisteningto.com</strong> for my <a href="https://nowlisteningto.com/">Now Listening to... music blog</a>. Prior to buying the new domain name, I didn&#39;t realize how big of a pain it was going to be to set up redirection. Turns out, you can&#39;t setup a 301 redirect using just DNS records. It has to be done on a web server level, or via your domain registrar. My issue is that I can&#39;t use my domain registrar for redirects, because I use Netlify to manage the DNS records for my domains. And from what I can see, Netlify doesn&#39;t have a menu option for redirecting from one domain to another.</p>

<p>So, I ended up doing a redirect via HTML and JavaScript, by hosting a static site on Netlify. This static site&#39;s purpose is to simply redirect from <em>nowlisteningto.dinobansigan.com</em> to <em>nowlisteningto.com</em>. It is not ideal, but this will do for now until I figure out a better solution. Thanks to this <a href="https://stackoverflow.com/a/5411601/5041911">answer on StackOverflow</a> for the idea.</p>

<p><em>Tags: <a href="https://devblog.dinobansigan.com/tag:CustomDomain" class="hashtag"><span>#</span><span class="p-category">CustomDomain</span></a> <a href="https://devblog.dinobansigan.com/tag:DomainRedirect" class="hashtag"><span>#</span><span class="p-category">DomainRedirect</span></a> <a href="https://devblog.dinobansigan.com/tag:HTML" class="hashtag"><span>#</span><span class="p-category">HTML</span></a> <a href="https://devblog.dinobansigan.com/tag:JavaScript" class="hashtag"><span>#</span><span class="p-category">JavaScript</span></a></em></p>

<p><strong><a href="https://remark.as/p/devblog.dinobansigan.com/domain-redirect-via-html-and-javascript">Discuss...</a></strong> or leave a comment below.</p>
]]></content:encoded>
      <guid>https://devblog.dinobansigan.com/domain-redirect-via-html-and-javascript</guid>
      <pubDate>Tue, 15 Dec 2020 02:00:00 +0000</pubDate>
    </item>
    <item>
      <title>How to Embed Responsive YouTube Videos on Write.as</title>
      <link>https://devblog.dinobansigan.com/how-to-embed-responsive-youtube-videos-on-write-as?pk_campaign=rss-feed</link>
      <description>&lt;![CDATA[Updated: 4/26/2021&#xA;&#xA;Coney complained to me this morning that the YouTube videos on my latest music log entry were getting cut off when viewed from her phone. I&#39;ve known about this issue for awhile, but didn&#39;t really try to find a solution for it. Well, today I did and it turns out to be really easy.&#xA;&#xA;The issue stems from the fact that I have to use iframes to embed videos on write.as sites. To make the YouTube videos I embed on write.as sites responsive, I simply followed the instructions from this Responsive Youtube Embed post. Specifically, these are the changes I added to my journal.&#xA;!--more--&#xA;&#xA;Custom CSS&#xA;I added the following Custom CSS:&#xA;/ Responsive Video Container /&#xA;.video-container {&#xA;    position: relative;&#xA;    padding-bottom: 56.25%;&#xA;    padding-top: 30px; height: 0; overflow: hidden;&#xA;}&#xA; &#xA;.video-container iframe,&#xA;.video-container object,&#xA;.video-container embed {&#xA;    position: absolute;&#xA;    top: 0;&#xA;    left: 0;&#xA;    width: 100%;&#xA;    height: 100%;&#xA;}&#xA;&#xA;HTML Changes&#xA;And on my posts where I embedded YouTube videos, I simply wrapped the iframe element with a div element that had a class attribute value of &#34;video-container&#34;, like this:&#xA;div class=&#34;video-container&#34;iframe width=&#34;560&#34; height=&#34;315&#34; src=&#34;https://www.youtube-nocookie.com/embed/nJS5VpoGbc4&#34; frameborder=&#34;0&#34; allowfullscreen=&#34;&#34;/iframe/div&#xA;&#xA;With those changes in place, I have found that the YouTube videos I embedded on my posts will shrink down to match the size of the screen on a mobile phone, or will expand to match the width of the text on a post when viewed on a desktop browser. Pretty cool.&#xA;&#xA;Tags: #HowTo #HTML #CSS #WriteAs&#xA;&#xA;a href=&#34;https://remark.as/p/devblog.dinobansigan.com/how-to-embed-responsive-youtube-videos-on-write-as&#34;Discuss.../a or leave a comment below.]]&gt;</description>
      <content:encoded><![CDATA[<p><em>Updated: 4/26/2021</em></p>

<p>Coney complained to me this morning that the YouTube videos on my latest <a href="https://journal.dinobansigan.com/music-log-025">music log entry</a> were getting cut off when viewed from her phone. I&#39;ve known about this issue for awhile, but didn&#39;t really try to find a solution for it. Well, today I did and it turns out to be really easy.</p>

<p>The issue stems from the fact that I have to use iframes to embed videos on <a href="https://write.as/">write.as</a> sites. To make the YouTube videos I embed on write.as sites responsive, I simply followed the instructions from this <a href="https://avexdesigns.com/responsive-youtube-embed/">Responsive Youtube Embed</a> post. Specifically, these are the changes I added to my <a href="https://journal.dinobansigan.com/">journal</a>.
</p>

<h4 id="custom-css" id="custom-css">Custom CSS</h4>

<p>I added the following Custom CSS:</p>

<pre><code class="language-css">/* Responsive Video Container */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 30px; height: 0; overflow: hidden;
}
 
.video-container iframe,
.video-container object,
.video-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
</code></pre>

<h4 id="html-changes" id="html-changes">HTML Changes</h4>

<p>And on my posts where I embedded YouTube videos, I simply wrapped the iframe element with a div element that had a class attribute value of “video-container”, like this:</p>

<pre><code class="language-html">&lt;div class=&#34;video-container&#34;&gt;&lt;iframe width=&#34;560&#34; height=&#34;315&#34; src=&#34;https://www.youtube-nocookie.com/embed/nJS5VpoGbc4&#34; frameborder=&#34;0&#34; allowfullscreen=&#34;&#34;&gt;&lt;/iframe&gt;&lt;/div&gt;
</code></pre>

<p>With those changes in place, I have found that the YouTube videos I embedded on my posts will shrink down to match the size of the screen on a mobile phone, or will expand to match the width of the text on a post when viewed on a desktop browser. Pretty cool.</p>

<p><em>Tags: <a href="https://devblog.dinobansigan.com/tag:HowTo" class="hashtag"><span>#</span><span class="p-category">HowTo</span></a> <a href="https://devblog.dinobansigan.com/tag:HTML" class="hashtag"><span>#</span><span class="p-category">HTML</span></a> <a href="https://devblog.dinobansigan.com/tag:CSS" class="hashtag"><span>#</span><span class="p-category">CSS</span></a> <a href="https://devblog.dinobansigan.com/tag:WriteAs" class="hashtag"><span>#</span><span class="p-category">WriteAs</span></a></em></p>

<p><strong><a href="https://remark.as/p/devblog.dinobansigan.com/how-to-embed-responsive-youtube-videos-on-write-as">Discuss...</a></strong> or leave a comment below.</p>
]]></content:encoded>
      <guid>https://devblog.dinobansigan.com/how-to-embed-responsive-youtube-videos-on-write-as</guid>
      <pubDate>Sun, 19 Apr 2020 18:07:39 +0000</pubDate>
    </item>
  </channel>
</rss>