{"id":57682,"date":"2022-12-04T03:01:42","date_gmt":"2022-12-03T17:01:42","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/ITblog\/?p=57682"},"modified":"2022-12-04T05:44:32","modified_gmt":"2022-12-03T19:44:32","slug":"css-and-svg-xml-title-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/css-and-svg-xml-title-tutorial\/","title":{"rendered":"CSS and SVG XML Title Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/cursorexample.html\"><img decoding=\"async\" style=\"float:left; border: 15px solid pink;\" alt=\"CSS and SVG XML Title Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/cursorexamplemore.jpg\" title=\"CSS and SVG XML Title Tutorial\"   \/><\/a><p class=\"wp-caption-text\">CSS and SVG XML Title Tutorial<\/p><\/div>\n<p>In yesterday&#8217;s <a title='CSS and SVG XML Primer Tutorial' href='#csssvgxmlpt'>CSS and SVG XML Primer Tutorial<\/a> the emphasis was on <a target=_blank title=SVG href='https:\/\/www.w3schools.com\/graphics\/svg_intro.asp'>SVG<\/a><sub>+XML<\/sub> and today we want to broaden the scope to how that SVG contributes to the construction of your webpage&#8217;s CSS, which we now do for non-mobile users, in their textarea title attributes, via them hovering over any of the textarea elements.<\/p>\n<p>If its CSS here, how can Javascript (DOM) help, as we tagged with yesterday&#8217;s and today&#8217;s tutorials?  Well, the great thing about CSS styling is that, using inline CSS styling it can be dynamic by just adding &lt;style&gt; CSS Styling &lt;\/style&gt; stylesheet styling by appending it to document.body (or some other element&#8217;s) innerHTML DOM attribute.  It is noteworthy that inline CSS can be usefully placed in both document.head and document.body webpage sections, and that priority goes with the latest &#8220;mention&#8221; <font size-1>(hence the <I>Cascading<\/I> Style Sheet meaning of CSS)<\/font> or via the use of &#8220;!important&#8221; clause.<\/p>\n<p>We also add the prefix and suffix strings making up the CSS styling around the SVG in small, so far uneditable, span elements above and below.<\/p>\n<p>So feel free to try <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/cursorexample.html-GETME\">the more contextual<\/a> <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/cursorexample.html-GETME\">&#8220;proof of concept&#8221; second draft<\/a> <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/cursorexample.html\" title=\"Click picture\">web application<\/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\/new-css-and-svg-xml-primer-tutorial\/'>New CSS and SVG XML Primer Tutorial<\/a>.<\/p-->\n<hr>\n<p id='csssvgxmlpt'>Previous relevant <a target=_blank title='CSS and SVG XML Primer Tutorial' href='\/\/www.rjmprogramming.com.au\/ITblog\/css-and-svg-xml-primer-tutorial\/'>CSS and SVG XML Primer Tutorial<\/a> is shown below.<\/p>\n<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/cursorexample.html\"><img decoding=\"async\" style=\"float:left; border: 15px solid pink;\" alt=\"CSS and SVG XML Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/cursorexampletwo.jpg\" title=\"CSS and SVG XML Primer Tutorial\"   \/><\/a><p class=\"wp-caption-text\">CSS and SVG XML Primer Tutorial<\/p><\/div>\n<p>Ever since <a target=_blank title=SVG href='https:\/\/www.w3schools.com\/graphics\/svg_intro.asp'>SVG<\/a> came on the scene CSS got that much more interesting.   You can apply SVG<sub>+XML<\/sub> protocol in your CSS styling to create your own tailored, and dynamic &#8230;<\/p>\n<ul>\n<li>background (image) &#8230; with or without an opacity consideration (via a linear gradient)<\/li>\n<li>border image &#8230; not for the faint hearted<\/li>\n<li>cursor &#8230; non-mobile only<\/li>\n<\/ul>\n<p> &#8230; and we&#8217;ve written a <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/cursorexample.html_GETME\">&#8220;proof of concept&#8221; first draft<\/a> <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/cursorexample.html\" title=\"Click picture\">web application<\/a> you can try, here, even below, where seeing the SVG might tweak your &#8220;ideas palette&#8221;!<\/p>\n<p><iframe src='\/\/www.rjmprogramming.com.au\/cursorexample.html' style=width:100%;height:900px;><\/iframe><\/p>\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='#d57673' onclick='var dv=document.getElementById(\"d57673\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/security\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d57673' 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='#d57682' onclick='var dv=document.getElementById(\"d57682\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/title\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d57682' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>In yesterday&#8217;s CSS and SVG XML Primer Tutorial the emphasis was on SVG+XML and today we want to broaden the scope to how that SVG contributes to the construction of your webpage&#8217;s CSS, which we now do for non-mobile users, &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/css-and-svg-xml-title-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,14,37],"tags":[4128,281,354,541,1608,576,2233,652,997,1209,1211,1212,1226,2167,1319,1366,1480],"class_list":["post-57682","post","type-post","status-publish","format-standard","hentry","category-elearning","category-event-driven-programming","category-tutorials","tag-important","tag-css","tag-dom","tag-graphics","tag-hover","tag-html","tag-inline-css","tag-javascript","tag-programming","tag-style","tag-stylesheet","tag-styling","tag-svg","tag-title","tag-tutorial","tag-vector","tag-xml"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/57682"}],"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=57682"}],"version-history":[{"count":7,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/57682\/revisions"}],"predecessor-version":[{"id":57689,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/57682\/revisions\/57689"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=57682"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=57682"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=57682"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}