{"id":68855,"date":"2025-07-01T03:01:00","date_gmt":"2025-06-30T17:01:00","guid":{"rendered":"https:\/\/www.rjmprogramming.com.au\/ITblog\/?p=68855"},"modified":"2025-07-01T10:00:00","modified_gmt":"2025-07-01T00:00:00","slug":"landing-page-web-inspector-iphone-css-styling-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/landing-page-web-inspector-iphone-css-styling-tutorial\/","title":{"rendered":"Landing Page Web Inspector iPhone CSS Styling Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=\"_blank\" href=\"http:\/\/www.rjmprogramming.com.au\/index.php\" rel=\"noopener\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"Landing Page Web Inspector iPhone CSS Styling Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/landing_page_iphone_tweak.gif\" title=\"Landing Page Web Inspector iPhone CSS Styling Tutorial\"  style=\"float:left;\"  \/><\/a><p class=\"wp-caption-text\">Landing Page Web Inspector iPhone CSS Styling Tutorial<\/p><\/div>\n<p>We&#8217;ve put up with a Landing Page annoyance regarding iPhone Portrait viewing for some time now, but today we&#8217;ve bitten the bullet and attended to the issue whereby the last &#8220;g&#8221; in RJM Programming butted up to the right hand side of the Portrait screen annoyingly.  They say &#8220;pixel perfect&#8221; and today&#8217;s work is a bit like that, further to other web inspector work helping the Landing Page talked about at <a title='Landing Page Web Inspector CSS Styling Tutorial' href='#lpwicssst'>Landing Page Web Inspector CSS Styling Tutorial<\/a>.<\/p>\n<p>Today, we make use of the fact that CSS can be dynamically changed in the arrangements of most webpages just by adding &lt;style&gt; CSS styling &lt;\/style&gt; into the innerHTML property of a suitable HTML element.<\/p>\n<p>We also found the CSS clause &#8230;<\/p>\n<blockquote><p>\n!important\n<\/p><\/blockquote>\n<p> &#8230; impotent, on occasions, trying to help, and so we went around with Javascript DOM &#8220;undoing&#8221; a className scenario, something we cannot remember ever undertaking, but not so strange given it is only &#8230;<\/p>\n<ol>\n<li>iPhone device width<\/li>\n<li>Portrait<\/li>\n<\/ol>\n<p> &#8230; scenarios we are talking about here.  That &#8220;<sup>un<\/sup>classing&#8221; leaves the door open to ensuring our chosen 62px font-size CSS property holds sway, for these scenarios.  In doing the job, it was our default just to break the &#8230; <\/p>\n<p><code><br \/>\nRJM Programming<br \/>\n<\/code><\/p>\n<p> &#8230; text at the space character, and that &#8220;ever so mild&#8221; scrunching up of content helped, but there are a myriad of ways to going about this job, tabularized below &#8230;<\/p>\n<table style=\"width:100%;\">\n<tr>\n<th>Idea<\/th>\n<th>Javascript DOM<\/th>\n<\/tr>\n<tr>\n<td style=vertical-align:top;><a target=\"_blank\" title='Uas' href='\/\/www.rjmprogramming.com.au\/index.php' rel=\"noopener\">Default<\/a><\/td>\n<td>\n<code style=font-size:8px;><br \/>\ndocument.getElementById('topspan').innerHTML=document.getElementById('topspan').innerHTML.replace('RJM Programming', 'RJM&lt;\/h1&gt;&lt;h1 style=font-size:62px;&gt;Programming').replace(\/\\&lt;\\\/hJUNK1\/g, '&lt;\/h2');<br \/>\n<\/code>\n<\/td>\n<\/tr>\n<tr>\n<td style=vertical-align:top;><a target=\"_blank\" title='Uas' href='\/\/www.rjmprogramming.com.au\/index.php?alt=border' rel=\"noopener\">Border<\/a><\/td>\n<td>\n<code style=font-size:8px;><br \/>\n       setTimeout(function(){       document.getElementById('toph1').className=document.getElementById('toph1').className.replace('jumbo', 'jumXbo');<br \/>\n       document.getElementById('laststyle').innerHTML+='&lt;style&gt; h1 {  font-size: 62px !important; } &lt;\/style&gt;';<br \/>\n       document.getElementById('laststyle').innerHTML+='&lt;style&gt; h1 {  outline-right: 6px solid transparent; } &lt;\/style&gt;';<br \/>\n       }, 200);<br \/>\n<\/code>\n<\/td>\n<\/tr>\n<tr>\n<td style=vertical-align:top;><a target=\"_blank\" title='Uas' href='\/\/www.rjmprogramming.com.au\/index.php?alt=class' rel=\"noopener\">Classname<\/a><\/td>\n<td>\n<code style=font-size:8px;><br \/>\n       setTimeout(function(){       document.getElementById('toph1').className=document.getElementById('toph1').className.replace('jumbo', 'jumXbo');<br \/>\n       document.getElementById('laststyle').innerHTML+='&lt;style&gt; h1 {  font-size: 62px !important; } &lt;\/style&gt;';<br \/>\n       }, 200);<br \/>\n<\/code>\n<\/td>\n<\/tr>\n<tr>\n<td style=vertical-align:top;><a target=\"_blank\" title='Uas' href='\/\/www.rjmprogramming.com.au\/index.php?alt=margin' rel=\"noopener\">Margin<\/a><\/td>\n<td>\n<code style=font-size:8px;><br \/>\n       setTimeout(function(){       document.getElementById('toph1').className=document.getElementById('toph1').className.replace('jumbo', 'jumXbo');<br \/>\n       document.getElementById('laststyle').innerHTML+='&lt;style&gt; h1 {  font-size: 62px !important; } &lt;\/style&gt;';<br \/>\n       document.getElementById('laststyle').innerHTML+='&lt;style&gt; h1 {  padding-right: 6px; } &lt;\/style&gt;';<br \/>\n       }, 200);<br \/>\n<\/code>\n<\/td>\n<\/tr>\n<tr>\n<td style=vertical-align:top;><a target=\"_blank\" title='Uas' href='\/\/www.rjmprogramming.com.au\/index.php?alt=font' rel=\"noopener\">Font<\/a><\/td>\n<td>\n<code style=font-size:8px;><br \/>\n       setTimeout(function(){       document.getElementById('toph1').className=document.getElementById('toph1').className.replace('jumbo', 'jumXbo');<br \/>\n       document.getElementById('laststyle').innerHTML+='&lt;style&gt; h1 {  font-size: 62px !important; } &lt;\/style&gt;';<br \/>\n       }, 200);<br \/>\n<\/code>\n<\/td>\n<\/tr>\n<tr>\n<td style=vertical-align:top;><a target=\"_blank\" title='Uas' href='\/\/www.rjmprogramming.com.au\/index.php?alt=after' rel=\"noopener\">After<\/a><\/td>\n<td>\n<code style=font-size:8px;><br \/>\n       setTimeout(function(){       document.getElementById('toph1').className=document.getElementById('toph1').className.replace('jumbo', 'jumXbo');<br \/>\n       document.getElementById('laststyle').innerHTML+='&lt;style&gt; h1 {  font-size: 62px !important; } &lt;\/style&gt;';<br \/>\n       document.getElementById('laststyle').innerHTML+=\"&lt;style&gt; h1:after {  content: ' ' !important; } &lt;\/style&gt;\";<br \/>\n       }, 200);<br \/>\n<\/code>\n<\/td>\n<\/tr>\n<tr>\n<td style=vertical-align:top;><a target=\"_blank\" title='Uas' href='\/\/www.rjmprogramming.com.au\/index.php?alt=wording' rel=\"noopener\">Wording<\/a><\/td>\n<td>\n<code style=font-size:8px;><br \/>\n       setTimeout(function(){       document.getElementById('toph1').className=document.getElementById('toph1').className.replace('jumbo', 'jumXbo');<br \/>\n       document.getElementById('laststyle').innerHTML+='&lt;style&gt; h1 {  font-size: 62px !important; } &lt;\/style&gt;';<br \/>\n       document.getElementById('toph1').innerHTML+=\" \";<br \/>\n       }, 200);<br \/>\n<\/code>\n<\/td>\n<\/tr>\n<tr>\n<td style=vertical-align:top;><a target=\"_blank\" title='Uas' href='\/\/www.rjmprogramming.com.au\/index.php?alt=overflow' rel=\"noopener\">Overflow<\/a><\/td>\n<td>\n<code style=font-size:8px;><br \/>\n       setTimeout(function(){       document.getElementById('toph1').className=document.getElementById('toph1').className.replace('jumbo', 'jumXbo');<br \/>\n       document.getElementById('laststyle').innerHTML+='&lt;style&gt; h1 {  font-size: 62px !important; } &lt;\/style&gt;';<br \/>\n       document.getElementById('topspan').style.width='' + eval(0 + eval('' + document.documentElement.clientWidth)) + 'px';<br \/>\n       document.getElementById('topspan').style.wordWrap='keep-all';<br \/>\n       }, 200);<br \/>\n<\/code>\n<\/td>\n<\/tr>\n<tr>\n<td style=vertical-align:top;><a target=\"_blank\" title='Uas' href='\/\/www.rjmprogramming.com.au\/index.php?alt=usedtobe' rel=\"noopener\">Was<\/a><\/td>\n<td>\n<\/td>\n<\/tr>\n<\/table>\n<p> &#8230; in <a target=\"_blank\" title='Default' href='http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/index.php-----GETME' rel=\"noopener\">a changed<\/a>  <a target=\"_blank\" title='Uas' href='\/\/www.rjmprogramming.com.au\/index.php-----GETME' rel=\"noopener\">index.php<\/a> <a target=\"_blank\" title='Uas' href='\/\/www.rjmprogramming.com.au\/index.php' rel=\"noopener\">RJM Programming Landing Page<\/a>.<\/p>\n<p><!--p>You can also see this play out at WordPress 4.1.1's <a target=\"_blank\" href='\/\/www.rjmprogramming.com.au\/ITblog\/landing-page-web-inspector-iphone-css-styling-tutorial\/' rel=\"noopener\">Landing Page Web Inspector iPhone CSS Styling Tutorial<\/a>.<\/p-->\n<hr>\n<p id='lpwicssst'>Previous relevant <a target=\"_blank\" title='Landing Page Web Inspector CSS Styling Tutorial' href='\/\/www.rjmprogramming.com.au\/ITblog\/landing-page-web-inspector-css-styling-tutorial\/' rel=\"noopener\">Landing Page Web Inspector CSS Styling Tutorial<\/a> is shown below.<\/p>\n<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=\"_blank\" href=\"http:\/\/www.rjmprogramming.com.au\/index.php\" rel=\"noopener\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"Landing Page Web Inspector CSS Styling Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/landing_page_tweak.gif\" title=\"Landing Page Web Inspector CSS Styling Tutorial\"  style=\"float:left;\"  \/><\/a><p class=\"wp-caption-text\">Landing Page Web Inspector CSS Styling Tutorial<\/p><\/div>\n<p>Are you a member of the IBORT?  If not, would you like to become a member?  <a target=\"_blank\" title='?' href='https:\/\/www.youtube.com\/watch?v=uhiCFdWeQfA' rel=\"noopener\">Anyone, anyone<\/a>?  Hang on, <a target=\"_blank\" title='?' href='https:\/\/en.wikipedia.org\/wiki\/List_of_scientific_skeptics' rel=\"noopener\">Isaac<\/a>, can you please &#8220;use your words&#8221; in front of the class, please &#8230; <\/p>\n<blockquote><p>\nWhat does IBORT stand for?\n<\/p><\/blockquote>\n<p>Okay, class &#8230; <a target=\"_blank\" title='?' href='https:\/\/www.youtube.com\/watch?v=uhiCFdWeQfA' rel=\"noopener\">over to you<\/a> &#8230;<\/p>\n<p>Well, okay <a target=\"_blank\" title=\"?\" href='https:\/\/en.wikipedia.org\/wiki\/Sandra_Bullock' rel=\"noopener\">Sandra<\/a>, yes, we understand &#8220;World Peace&#8221; might work &#8230; but <a target=\"_blank\" title='?' href='https:\/\/www.youtube.com\/watch?v=uhiCFdWeQfA' rel=\"noopener\">anyone else?<\/a><\/p>\n<p>.<br \/>\n.<br \/>\n.<br \/>\n.<br \/>\n.<br \/>\n.<br \/>\n.<br \/>\n.<br \/>\n.<br \/>\n.<br \/>\n.<br \/>\n.<br \/>\n.<br \/>\n.<br \/>\n.<br \/>\n.<br \/>\n.<br \/>\n.<br \/>\n.<br \/>\n.<\/p>\n<p>You all give up?!<\/p>\n<blockquote><p>\nInternational Board of Registered Tweakers<br \/>\n<font size=1>(no Registered Tweakers were harmed in the making of this infomercial)<\/font>\n<\/p><\/blockquote>\n<p>Yes, you can tweak webpages in the morning or afternoon, and for simple styling changes we recommend &#8230;<\/p>\n<ol>\n<li>getting the relevant webpage showing in your favoured web browser on a non-mobile platform &#8230;<\/li>\n<li>inspect that webpage via that web browser&#8217;s <a target=\"_blank\" title='Google Chrome Developer Tools' href='https:\/\/developer.chrome.com\/docs\/devtools\/' rel=\"noopener\">Web Inspector<\/a> &#8230; for Google Chrome on macOS we went &#8230;<br \/>\n<code><br \/>\nView -&gt; Developer -&gt; Developer Tools -&gt; \"Elements\" tab<br \/>\n<\/code><br \/>\n &#8230;\n<\/li>\n<li>the &#8220;before your eyes, dynamically&#8221; approach being to zero in on web element <i>style=&#8221;[CSS styling]&#8221;<\/i> parts and, &#8220;tweak away&#8221; &#8230;<\/li>\n<li>the results immediate and further tweakable, until you are happy &#8230; then &#8230;<\/li>\n<li>think what can be done to directly, or indirectly (eg. <a target=\"_blank\" href='https:\/\/www.rjmprogramming.com.au\/ITblog\/?s=client+pre-emptive+iframe' title='Client Pre-emptive Iframe techniques blog postings' rel=\"noopener\">&#8220;client pre-emptive iframe&#8221;<\/a> action) to simulate this change back at the relevant code (in our RJM Programming Landing Page case some PHP in our Apache web server&#8217;s Document Root folder called &#8220;index.php&#8221;) to simulate what you were happy with back at your Web Inspector session (ie. until this, your changes are <a target=\"_blank\" href=\"http:\/\/www.rjmprogramming.com.au\/ephemeral\" rel=\"noopener\">&#8220;Ephemeral&#8221;<\/a>) &#8230;<\/li>\n<li>you upload into place to turn a <a target=\"_blank\" href=\"http:\/\/www.rjmprogramming.com.au\/landing_page_tweak.gif\" rel=\"noopener\">&#8220;tweak&#8221;<\/a> into some <a target=\"_blank\" href=\"http:\/\/www.rjmprogramming.com.au\/index.php\" rel=\"noopener\">&#8220;tweak realia&#8221;<\/a><\/li>\n<\/ol>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d60711' onclick='var dv=document.getElementById(\"d60711\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/styling\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d60711' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n<hr>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d68855' onclick='var dv=document.getElementById(\"d68855\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/pixel\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d68855' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>We&#8217;ve put up with a Landing Page annoyance regarding iPhone Portrait viewing for some time now, but today we&#8217;ve bitten the bullet and attended to the issue whereby the last &#8220;g&#8221; in RJM Programming butted up to the right hand &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/landing-page-web-inspector-iphone-css-styling-tutorial\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,20,37],"tags":[161,4322,257,281,322,354,451,576,626,631,652,680,2673,2561,932,1918,997,2256,1209,1212,1319,2257,2544],"class_list":["post-68855","post","type-post","status-publish","format-standard","hentry","category-elearning","category-ios","category-tutorials","tag-border","tag-classname","tag-content","tag-css","tag-device","tag-dom","tag-font","tag-html","tag-ios","tag-iphone","tag-javascript","tag-landing-page","tag-margin","tag-overflow","tag-php","tag-pixel","tag-programming","tag-screen","tag-style","tag-styling","tag-tutorial","tag-width","tag-word-wrap"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/68855"}],"collection":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/comments?post=68855"}],"version-history":[{"count":14,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/68855\/revisions"}],"predecessor-version":[{"id":68873,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/68855\/revisions\/68873"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=68855"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=68855"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=68855"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}