Column Intelligence Editing Tutorial

Column Intelligence Editing Tutorial

Column Intelligence Editing Tutorial

Lately we’ve been excited about various ways to use the contenteditable=”true” global HTML attribute to turn HTML “display” elements into “that and more”, in other words “display and edit” elements. Fast forward to a couple of days back with Column Intelligence Float Tutorial and we find ourselves at a point where we’d like the user to be able to edit the content of their “online newspaper that scrolls and floats” we, naturally, were pretty keen to involve that contenteditable=”true” idea, but it is a salutary lesson that all things new are not always the apt solution. Reread HTML Div Overlay Jigsaw Talents Primer Tutorial and you’ll see where we started out on our journey down the analysis and comparison of HTML …

… elements, and it just so happens that the concept of contenteditable=”true” global HTML attribute muddies the water a little (but not entirely), allowing for the HTML div elements be “editors”, as we did with HTML div Versus hr Contenteditable Tutorial, but the facts remain, on analyzing the scenario for the case at hand it was better not to turn the HTML div elements of the newspaper into editable elements, because they are there as display elements, and we need to add in more elements (as we did with HTML div Versus hr Contenteditable Tutorial‘s table’s extra row’s set of two new cells (td element)), and those new elements may as well be textarea elements that remain uniquely “talented” to allow < and > in their content. On the other hand, if some colour coding was required we might consider using HTML div and map the < and > of the content to &lt; and &gt; for content editing purposes.

To add this new functionality today, we involve …

  • hashtag navigation (within the same web page) … and …
  • new emojis (which we hope are self explanatory themselves as to what functionality they point at)

Which brings us to today’s HTML and CSS and Javascript live run link that has underlying HTML and CSS and Javascript backgroundattachment.html changed from yesterday’s work in this way. We hope you try editing your online newspaper yourself.


Previous relevant Column Intelligence Float Tutorial is shown below.

Column Intelligence Float Tutorial

Column Intelligence Float Tutorial

If yesterday’s Column Intelligence Primer Tutorial started us out on a project for online newspaper looking web page, it got the concept of “columns” look started, but lacked that “real world” newspaper “column look” where columns don’t just have uninterrupted textual data in paragraphs, they have …

  • image data … and ala Harry Potter … because we are online … we add …
  • animated or video data … in an HTML iframe element

… and the main “word” to describe the methodology behind this is …


float:[none]/left/right/both/inherit

That’s an oversimplification, of course, but it is a good word to have in mind researching on the search engines. We came across a couple of really great online resources for the research on this topic, namely …

… both of which helped get to some new CSS styling to use getting text to wrap around images and animations …


<style>
.oval {
width: 100px;
height: 62px;
color: #111;
border-radius: 50%;
text-align: center;
font-size: 20px;
float: left;
shape-outside: ellipse();
padding: 10px;
background-color: MediumPurple;
background-clip: content-box;
}

.circle {
width: 100px;
height: 62px;
color: #111;
border-radius: 50%;
text-align: center;
font-size: 20px;
float: right;
shape-outside: circle();
padding: 10px;
background-color: MediumPurple;
background-clip: content-box;
}

.polygon {
width: 100px;
height: 62px;
color: #111;
border-radius: 50%;
text-align: center;
font-size: 20px;
float: right;
shape-outside: polygon(0 0, 100% 100%, 0 100%);
padding: 10px;
background-color: MediumPurple;
background-clip: content-box;
}

span {
padding-top: 12px;
display: inline-block;
}
</style>

… used in the new HTML and CSS and Javascript live run link that has underlying HTML and CSS and Javascript background_attachment.htm changed from yesterday’s work in this way. We hope you try it out for yourself.


Previous relevant Column Intelligence Primer Tutorial is shown below.

Interesting Places Primer Tutorial

Column Intelligence Primer Tutorial

Newspapers work as a media source largely because of their column format. It is no coincidence newspapers got this format, if you research typesetting.

In the online world, presentation formats have more possibilities and varieties than newspapers presented, but that doesn’t mean “newspaper column” or “newspaper column with intelligence” can’t be options for the design of online web pages. Today, we tip our toes in the waters of this topic by creating an HTML and CSS and Javascript web application with …

  • an HTML div element nesting …
  • three HTML div elements placed to the left, in the middle, and to the right … our 3 (newspaper) columns … except that …

… intelligence to scroll the (newspaper) column content made up of

  1. text … and …
  2. background image

… is scrollable, relative to each other, in three different ways, namely …

  • style=” background-attachment: fixed; ” … text, only, moves as you scroll, and the (first of the) background imagery’s top/left is the web page’s top/left
  • style=” background-attachment: local; ” … both, above, move together as you scroll … new with CSS3
  • style=” background-attachment: scroll; ” … text, only, moves as you scroll, and the (first of the) background imagery’s top/left is the styled element’s top/left

You can try this out with our live run link that has underlying HTML and CSS and Javascript background_attachment.html.

Did You Know?

We’re having a purple patch regarding “old chestnut” cracking! Today’s is that wish to apply opacity just to background image, but not the corresponding textual data (or other types) that is the primary content of that HTML element. How to do? Well, we were lucky enough to stumble upon the wonderful additional styling advice from this stupendous webpage, thanks, regarding the CSS styling (example) …


<style>
#left { // background-color: #661715;
background-image: linear-gradient(rgba(255,255,255,0.4),rgba(255,255,255,0.4)), url('//www.rjmprogramming.com.au/Welcome_files/shapeimage_1a.png');
background-repeat: repeat;
background-position: top left;
background-attachment: fixed; }

#middle { // background-color: #661715;
background-image: linear-gradient(rgba(255,255,255,0.4),rgba(255,255,255,0.4)), url('//www.rjmprogramming.com.au/Welcome_files/shapeimage_1a.png');
background-repeat: repeat;
background-position: top left;
background-attachment: local; }

#right { // background-color: #661715;
background-image: linear-gradient(rgba(255,255,255,0.4),rgba(255,255,255,0.4)), url('//www.rjmprogramming.com.au/Welcome_files/shapeimage_1a.png');
background-repeat: repeat;
background-position: top left;
background-attachment: scroll; }
p { opacity: 1.0; }
h3 { opacity: 1.0; }
</style>

If this was interesting you may be interested in this too.


If this was interesting you may be interested in this too.


If this was interesting you may be interested in this too.

This entry was posted in eLearning, Tutorials and tagged , , , , , , , , , , , , , , , , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>