Text Style Homework Made Simple - Essay for you

Essay for you

Text Style Homework Made Simple

Rating: 4.2/5.0 (16 Votes)

Category: Homework



COAP:COAP-3120/week2 1 COAP 3120 Week 2 program
  • Web typography and formatting large simple texts

Main learning goals

  • Be able to include CSS in an HTML document: external files, internal style sheets, @import, inline
  • Understand CSS rules: Selectors and properties
  • Be able to format longer text
  • Be able to use HTML elements made for CSS (div and span)
  • Use of text/HTML/CSS editors
  • Use browser extensions for checking HTML and CSS validity, and analyzing pages
  • Think about good style and good visual style
1.1 Monday
  • The three dominant HTML families (HTML 4x, XHTML 1x, HTML5), a short introduction
  • Handout: HTML
  1. Universal/global selector (using * or body selector)
  2. Using HTML tag names
  3. Using "position" of tags (children, siblings)
  4. Using pseudo-tags
  5. Basic cascading and inheritance principles (last rule found will win, children inherit from parents)

CSS properties for formatting text

  • Web typography (in particular font-family. using web-safe fonts, using fallbacks)
  • Units (pt, cm, %, em/x, font-size keywords)

Install (if not already done so)

  • Become familiar with Kompozer and Notetab
1.2 Wednesday

CSS properties for formatting text

  • Web typography (in particular font-family. using web-safe fonts, using fallbacks)
  • Units (pt, cm, %, em/x, font-size keywords)
  • Line spacing: line-height property
  • Negative and positive indentation of the first line: text-indent property
  • Text filling: text-align property
  • Underlining etc: text-decoration property
  • Margins: margin-left. margin-right. etc.
  • Shortcuts

Example file used:

(1) Find a long and simple text you want to work on. Since HTML should be clean and simple, we suggest to download an HTML file from

(2) Get the following CSS file

(3) Start working on homework 1, i.e. create a layout that is both visually pleasing and "readable"

  • Create a link to the CSS file in the HTML, e.g. copy and adjust the following line:
  • Open the CSS file in your favorite editor and start making modifications
  • Consider using the CSS text styling tutorial for guidance
  • If you are more ambitious, use Codeburner (SitePoint), the Textbook appendices, or another good CSS reference.
  • You may have to make minor modifications to the HTML file, e.g. add class attributes or div wrappers
  • Validate both HTML and CSS !
1.3 Homework 1

Subject: Styling of a text document

  • Please style a text-centered HTML file
  • You can choose any HTML text (or other source) you like, under the condition that you make significant modifications to the original CSS .

However, we suggest using an XHTML e-book from an online repository such as Gutenberg (http://www.gutenberg.org/ )

  • Start from the CSS file shown in class (http://tecfa.unige.ch/guides/css/ex/just-so-stories.css )
  • Validate both HTML and CSS
  • Double-check the requirements below before you turn in your homework.

(1) Your mini-project (homework) should include at least the following features:

  • HTML file with an external or internal style sheet (make sure that there are no internal unintentional CSS overrides)
  • Text indentations
  • Text margins
  • Line spacings
  • Appropriate font sizes and styles for various text elements (in particular for titles and paragraphs)
  • At least one pseudo tag selector (e.g. p:firstline, p:first-letter or :before)
  • At least a sibling selector (A + B)

(2) A short report

  • It should shortly explain your design, e.g. what you aimed to achieve
  • It should include references/sources used (in particular to the original HTML file). Be careful to respect general Webster rules about plagiarism.
  • It should shortly explain what you did in your CSS.
  • The report can be turned in any format (e.g. HTML, PDF or Word).
  • Wednesday week 3 (before start of class)
  • Upload (a) the HTML file, (b) the CSS file (if external) and (c) the report to the world classroom (hw 1)
  • If you use other assets (e.g. pictures) you also must upload these. However, we suggest working with a text that doesn't include any.
  • Make sure that the upload worked (e.g. don't forget to hit the submit button)
  • Requirements (presence of CSS elements) - 20%
  • Visual design / originality - 30%
  • Usability - 10% (is the text readable ?)
  • Technical quality (CSS structure and documentation, valid HTML and CSS) - 20%
  • Presence and quality of the report - 10%
  • On time - 10 % (only 2 days late = 5%)
1.4 Alternative homework for CSS experts

Homework for T.B (to be discussed)

  • Create a commented list of resources about CSS compatibility.
  • In particular:
    • Try to find resources that deal with either "implementation status" (implemented/partial/not yet) and/or "buggyness" (implementation errors).
    • Focus on recent and last generation browsers (e.g. IE8 / IE9 and rather skip older versions)
    • Also try to find resources that offer "work-around solutions".
  • Edit CSS compatibility

Note: Don't yet start writing about CSS compatibility. First stage (homework 1) is finding resources.

1.5 Reading, other resources and online services
  • Chapter 2, The Bits that make up a Style Sheet
  • Chapter 3, Selectors
  • Chapter 5, Applying Font Faces (only 73-82)
  • Chapter 6, Manipulating the Display of Text (only: “Line height” section)
  • Chapter 8, The Box Model (only: Margins section)

About web fonts and web typography (optional reading)

  • See the course home page for editing tools and browser extensions

Other articles

How to change text color of simple list item - Stack Overflow

I realize this question is a bit old but here's a really simple solution that was missing. You don't need to create a custom ListView or even a custom layout.

Just create an anonymous subclass of ArrayAdapter and override getView(). Let super.getView() handle all the heavy lifting. Since simple_list_item_1 is just a text view you can customize it (e.g. set textColor) and then return it.

Here's an example from one of my apps. I'm displaying a list of recent locations and I want all occurrences of "Current Location" to be blue and the rest white.

I'm also faced this situation. You can handle above method. but simple if you pass simple_dropdown_item_1line as resource. It will be black color text by default.

This is my code I have achieved in kind of situation.

Your code below:

Actually android.R.layout.simple_dropdown_item_1line is used for dropdown. I urge u to see this layout content once. It just simple textview. thats all. It's property will not affect your task. I checked It works fine.

3 Simple Ways to Strip Styling - Formatting from Text in Mac OS X

3 Simple Ways to Strip Styling & Formatting from Text in Mac OS X

Want to quickly remove text styles and font formatting from some text? Here are two three super fast ways to do just that, and they don’t require any third party downloads, both features are built right into Mac OS X. The first two methods will use an alternate copy & paste command that removes styling in the process, and the third trick will use TextEdit to strip all styling. Both solutions will work great if you want to remove or formatting when copying from the web to emails, and can save you the embarrassment of sharing hideous and unprofessional font styling with the world.

1: Strip Styling & Formatting with a Special Paste & Match Style Command

There’s a modifier command to change how paste works so that it “matches style”, which if you’re pasting into a plain text document or a new email composition, will removes all font styles and formatting in that pasting process, regardless of what is stored in the clipboard. It’s just a variation of the normal copy & paste trick:

  • Copy the text as usual with Command+C
  • Paste the copied text and match current style by using Command+Option+Shift+V

Notice the difference from the normal Command+V paste trick, which would include the formatting. Thanks to @hozaka and others for pointing out this modifier sequence on twitter and in the comments, and thanks to Rob for clarifying the function.

2: Remove Formatting with the Alternate Cut & Paste Commands

Alternate what now? Many don’t know this, but other than Command+C and Command+V there are an alternate set of cut and paste commands available in Mac OS X that also use an alternate clipboard, but also have the added benefit of stripping formatting from copied text.

  • Highlight the text and hit Control+K to ‘cut’ without formatting (rather than command+c)
  • Paste in the desired location with Control+Y (rather than command+v)

Again, these alternate cut & paste commands remove all formatting and styling. and they also use an alternative clipboard so you will not rewrite anything in the primary clipboard. Because the clipboards are different, you must be consistent with the command usage, and you can’t cross from one to the other without pasting the text elsewhere and then recopying it again. The downside is that not all apps support their usage, so you may want to use the next trick instead, which is universal since it relies on a separate application.

3: Strip Text Styling & Formatting with TextEdit

TextEdit the simple text editing app that is included in all versions of Mac OS X, and you can use it’s built-in rich text conversion abilities to strip formatting very quickly. Here’s all you need to do:

  • Open a new TextEdit file and paste in the styled/formatted text
  • Hit Command+Shift+T to convert the document to plain text and remove all formatting
  • Select all and copy again to have the unstyled version in the clipboard

This removes all formatting but will retain line simple line breaks that are respected by plain text documents.

The end result of either approach will look like this, just simple plain text without the styling, formatting, fonts, colors, or whatever else has made it look unprofessional:

You can also just open documents in TextEdit and resave them as plain text to convert that way, or you can do batch file conversions easily with the textutil command line tool that comes in all versions of Mac OS X.

I have to do this with every email, is there a better way?

If you’re constantly stripping formatting funkiness out of emails and you use the OS X Mail app, consider toggling the preference switch to always send emails as plain text rather than rich formatted text. This will force all outbound emails to be normal looking, even if you’re responding to a comic sans disaster.

Chris Waldrip says:

Yank and Put don’t work in all applications. And have different shortcuts in different apps (not Apple-standard commands).

The easiest way for me… Spotlight.

Select the formatted text. Cut/Copy it (-x or -c).
Open Spotlight (-spacebar)
Paste (-v)
Select All (-a)
Cut or copy (doesn’t matter it won’t be left behind)

Now paste wherever you like. This strips out ALL Formatting, including carriage returns, so not ideal if it’s a multi-paragraph selection. But all formatting (size, style, font, etc) will be stripped out.
No extra app to open, no funky commands to remember (maybe spotlight if you don’t use that often). And it’s quick.

Craig S. Cottingham says:

You can use Control + C to copy the text, then wherever you want to paste it use Shift + Option + Command + V and it will paste the text without any formatting.

How to Write a Simple Comic Strip: 12 Steps (with Pictures)

How to Write a Simple Comic Strip

While writing a comic strip can be fun. you might want to brush out the broad strokes with a simple comic before you commit to drafting out an entire series. Drawing simple comic strips in your free time can help your comic-writing skills stay sharp, and you can develop incubating ideas and side projects as you practice with simple comic strips, too! If you find yourself at a loss for what to do when drafting up your simple comics, all you need to do is develop a premise and put pencil to paper. Soon your simple comic will be done .

Steps Edit Part One of Two:
Developing Your Premise Edit

Focus your attention on dialogue and story over presentation. The images you include while writing your simple comic need to be sketches that give the impression of action while taking as little time from the development of your story as possible. Your goal isn't to realize an artistic masterpieces, it's to write a simple comic. If you’re an artist, this may mean you’ll need to go against your natural inclinations and de-emphasize your attention from the image to the story.
  • Identify the relationship between characters in the scene. The feelings one character has for another will dictate how that character treats the other. These feelings will also motivate dialogue between your characters, and will set the tone in the narrative text. Narrative test is usually plaintext offset in a box at the top, bottom, and sides of a panel.
  • Prepare to spend time tweaking your dialogue and narrative text. If you decide to develop this simple comic into a fully-fledged one, you’ll need your text trimmed to the most direct, most significant expressions. Too much text in a comic can ruin the image-to-text balance or negatively impact a comic’s aesthetic.
  • Choose a focal point for you to write about. Your sketched images should centralize around some kind of action or interaction, otherwise known as the focal points of the scene. You'll write the text of the comic around these major events in the form of narration and dialogue. These focal points could be a comedic bit, like a gag or pun, could be a dramatic point of interest, like an archaeological find or scientific discovery, could be tragedy, like a story of star-crossed-lovers or a fall from grace tale, or many other varieties. You’ll want to express this idea compactly on a single page or two of panels. [1]

Plan a one-off or a reoccurring comic. Some strips won't get any more mileage than a single strip. These "one-off" simple comics don't need to go anywhere or have a long involved plot. Simply achieve your goal of your comic, like delivering a punchline, and begin a new simple comic when you're through. For episodic simple comics, you'll have to consider the plot of the strip. This way you can do things like connect ending panels so they lead into the beginning panels of the next comic.
  • In some cases, you might find that a simple one-off comic is deeper or more interesting than you first imagined. In this case, you always develop your simple one-off into a more complicated story by adding preceding or following strips to it.

Determine your style. This will influence how you approach the drawing background and characters involved in your story. Whichever style you decide upon, you’ll need to be able to sketch in it. You’re not developing a detailed artistic vision with your simple comic, you’re writing it likely to flesh out an idea or sharpen your skills. This should be reflected in your artistry.
  • Do some rough practice sketches on a spare piece of paper to get in the flow of the style you have chosen. Some examples of comic styles you might employ are: Japanese manga, noir, cartoon, western, or basic. Basic style is where you use simple shapes, like squares, rectangles, and circles, to block out a scene.
  • Plot out the distribution of your panels. While you’re getting into the flow of your style, you should draw a miniature rectangle on a blank part of the page to represent the piece of paper you’ll be drawing your simple comic upon. Draw lines inside this rectangle to indicate where you’ll break the page into the panels that will make up the scenes of your simple comic. Apportion your page breaks wisely – your simple comic should only be a page or two long. [2] [3]

Design your characters on a separate sheet of paper. This is going to the be most detailed work you do in your simple comic. By developing the images of your characters here, you’ll have a more definite idea of how these characters will occupy and move through space when you’re sketching their motion in the panels of your simple comic. This sheet will also serve as a reference for your sketch work when you start writing your simple comic.
  • Give your character a specific style or costume. You might not want to devote too much time to facial features and expressions, these can be developed later. A costume, however, will influence how the figures move through the scene, tools that the figures have, the dimensions of the figures, and how the costume interacts with the environment.
  • Develop the narrative of the character. In plaintext below each character, write names, jobs, physical details, and notes on personal history. You might want to adopt the tone your scene will take while writing these details. For example, if you are trying to write a dark, noir style, you might describe a character as, “Jack Smith, detective to the rich. The only clean man in a dirty world, though at five-foot six inches, he doesn’t exactly cut striking figure. His trench coat is known in many seedy venues, but his reputation remains untarnished." [4] [5]

Come up with your setting. On your practice sheet, alongside your style practice, you should begin sketching the setting of your comic. You’ll need to decide on where the events of your simple are taking place. This could be a warehouse, a school classroom, a library, a jungle, a spaceship or numerous other places. Remember, the goal here is not developing the artistry of the setting. In writing your simple comic, your setting is simply a vehicle to help you develop the idea, plot, or situation motivating your simple comic.
  • Use shading to loosely define the depth and perspective of your setting. For example, if your setting is in a building, you’ll likely need shadows in the foreground and on the walls to either side of the panel to give the illusion of depth to the room. Simple shapes, like ovals, squares, circles, and rectangles, can simulate boxes, control panels, barrels, buckets, refrigerators, mountains and more.
  • Use organic, connected strokes to create the illusion of vegetation in the background. You should use the same approach to large organic creatures like aliens, giant animals, monsters, and so on. Organic shapes are usually more fluid, so smooth strokes can effectively give this impression. Adding basic shapes, like a triangle on a square to simulate a head with a snout, can be added to smooth lines to further define the shape. [6]

Decide on your plot. You’ll need to capture your plot in one to two pages. It should be compelling and central to the simple action you sketch in the panels of your simple comic. To help you focus your plot, you should identify the key points of your simple comic. Some examples of these would include: conflict (physical), conflict (emotional), man vs. nature, good vs. evil, a pun, a euphemism, a fall from grace, and so on.
  • Choose the major plot points for your simple comic. Do you want references to these plot points throughout the comic? Or would your comic benefit from the surprise reveal of a plot point at the end? Your comic might work best if you start with your plot point in the beginning and use it to motivate the events of your panels.
  • Judge the effect your plot will have on your characters. Since you’ve already developed your characters a little bit and have a working understanding of who they are and how they work, you should be able to judge how your characters will react with regard to the plot. Your characters might support the driving force of your story, or they might resist it. This is where your story begins taking shape.
  • Write down key words and phrases that you find central to the idea of your simple comic. You could pull these ideas from phrases you’ve heard throughout the day. If that doesn’t work, try opening the dictionary and pointing at the page at random. Use the word you selected as a central word for your simple comic. You should also begin jotting down central tidbits of dialogue you want to use. A simple comic about a warrior might have a hero yell, “Cur, have at ye!” These will help you develop your simple comic. [7]
Part Two of Two:
Drawing Your Simple Comic Edit

Break your page(s) into panels. Your simple comic should be no more than two pages long for the purposes of practice or idea development, though you may want to use a long-draft simple comic for roughing out more complete comic ideas. Refer to your practice page and the panel distribution you drew there. Using this as your template and a pencil, break your pages into panels that depict the action of your scene.
  • You might use size your panels according to the importance of the events contained in the panel. For example, the punchline of a comedic comic might take the bottom half of a page, while the top half, where the set-up of the joke occurs, could be split into three panels. For beginners, you might want to start with the classic four panel approach. Simply divide your paper into four quarters, creating four scenes for each page.
  • Many comics utilize a simple "strip" format where the panels tell a linear story from the start on the left to the finish on the right. This style is still popular in print media, like newspapers and magazines.
  • Use thick lines when sectioning off the panels of your pages. You don’t want these lines to be confused for the sketch work you add when you put character-shapes and background images in your panels. You can also use different shapes or outlines to convey emotion or sensation in your panel. For example, a character getting shocked might have his panel bordered with a zig-zag line. [8] [9]

Sketch out the background. You’ll want the setting firmly in place before you start adding characters to the scene. The background will influence how the characters move through your panel, so you should start with this as the first building block for the art in your simple comic. If you need more space for characters later in your comic writing, you can always erase some of the background to free up space. After all, this is only sketch work.
  • Remember to incorporate important tools or features that are part of the setting. It would be strange if one of your characters was suddenly holding a sword with a dialogue bubble coming from his mouth with the words, “I’m king Arthur!” Instead, if you show the sword in stone in the background followed by a picture of a man holding it with the same speech bubble, the image is much more coherent. Some setting features you might want to keep in mind: switches, weapons, doors, large furniture, character props, humor props, and so on.
  • Include local features to set the tone. If your comic is taking place on a foreign planet, you might draw three moons in the night sky to immediately give the reader of your simple comic that impression. Similarly, a city could be indicated by a few rectangles for buildings and a circle on a cylinder for a fire hydrant.
  • Use layers to give the impression of distance. Your simple comic won’t have the depth of a fully developed artistic vision. You can still add triangles in the far background for mountains, some long arcs below the mountains to give the impression of foothills, and a flat foreground for the characters to stand upon to add depth to your setting. [10]

Draw your characters. Since you already know your plot, you should know roughly how your characters are going to play out the scene. Your characters will either be confronting each other or some other plot point, and around this interaction you’ll write the substance of your comic. This substance is conveyed through character dialogue bubbles and narrative text, which is usually plaintext offset in a regular square box at the top, bottom, or sides of a panel.
  • Your characters might interact with each other directly, or they might set off a chain of events that influence each other. The distribution of the characters in your panels will depend upon the plot you have decided and how the characters taking part in the action.
  • Use your character sheet to help you sketch each characters’ movement throughout the setting of your simple comic. If your characters are in a swamp, you’ll likely need to show their clothing trailing behind them in swamp muck. If your characters are in the snow, their costumes might drag a vague pattern behind them. Remember, your goal here is broad strokes. The scene and the characters of your simple comic are a prop to help you write the comic. [11]

Write dialogue and narrative text. Now that you have your background and characters in your panels, your stage is set and your players are ready for the story. You need to write the text of your comic in the remaining space on the page. This will describe the action and convey the emotions in your simple comic. Take a look at your list of key words, phrases, and dialogue that you came up with while working on the plot of your simple comic. Use these as the foundation upon which you build the rest of the scene.
  • Narrative text should convey all the important information left out of dialogue. For example, you might start a scene with the narrative text, “Jack Smith had a chip on his shoulder all his life. And now it was time to settle that score.” Below the box surrounding that narrative text could possibly be a scene with a character saying, “I’ll show them all!” In this way, you can use a mix of narrative text and dialogue to tell the story of your simple comic.
  • Take into account characters’ distribution in the scene when coordinating dialogue. A character standing in the foreground will appear closer than one situated in the background. You might express this in your text by making the dialogue text of the near character larger than that of the far character.
  • Trim your text down to the bare necessities. You only have so much space on the page, and overloading it with text will make your comic less comic-like and more like a novel. To prevent text overload, you might want to limit the space allowed for the text of each panel to a third. [12]

Complete your final panel. Your final panel may be a cliffhanger, or it could be the end of the scene, but you’ll need the panel to convey a sense of finality. You might put the words, “The End” somewhere in the lower right hand corner of the page as a visual cue to readers that your simple comic is finished. You could also use a thicker than normal borderline for the panel to give the sense of a hard stop to the scene.
  • You could also turn your simple comic into a series of simple comics. If you really like the idea you’ve been developing, you could write “To be continued” or “Stay tuned” to indicate you intend to issue another simple comic of the same series.

Polish up worthwhile simple comics. You never know when you're going to find a diamond in the rough among your simple comics. A strip that you intended to use as practice might turn into a popular strip in its own right! If you think a particular simple comic, or series of simple comics, has merit, you should:
  • Clean up your linework
  • Ink your drawings
  • Colorize your panels
  • Add it to your portfolio or get it published