Free Republic
Browse · Search
News/Activism
Topics · Post Article

Skip to comments.

Glenn Beck: Michelle Obama gave ´most effective political speech´ since Reagan
The Hill ^ | 10/16/2016 | Rafael Bernal

Posted on 10/16/2016 12:58:53 PM PDT by nhwingut

click here to read article


Navigation: use the links below to view more comments.
first previous 1-20 ... 101-120121-140141-160161-170 last
To: DoughtyOne
Yes, I'm starting to believe that KompoZer is good for working on one or two files at a time.

But for managing a whole website of files and images, I think MS Expression Web 4.0 is the better choice -- and it's also free.

Download from the Microsoft site here. It's a very solid program with lots of features I never touch. However, because it's free, MS offers zero support.

161 posted on 10/19/2016 4:30:36 PM PDT by poconopundit (When the people shall become so corrupted as to need despotic government. Franklin, Const. Conv.)
[ Post Reply | Private Reply | To 160 | View Replies]

To: poconopundit

That may be true.

I’m not able to do some things with HTML, and so it may be limited in some ways beyond my skill set.

Thanks for the mention of the other product.

Is it similar, but more complex?


162 posted on 10/19/2016 4:35:12 PM PDT by DoughtyOne (20 days: Until Presdient Pre-elect becomes President Elect Donald J. Trump. Help is on the way!)
[ Post Reply | Private Reply | To 161 | View Replies]

To: poconopundit
There is a rational for CSS. Here is my best guess...


CSS: Cascading Style Sheets

HTML mostly grew by accretion. Sure, there was a standards committee which set lots of standards (that's why we have so many); but the reality is that HTML evolved in the rough and tumble of the marketplace, and it shows. Various browser companies tried to distinguish themselves in the market by offering to "embrace and extend" the standard so as to fracture it to near un-usability. Lots of the code that services browsers checks to see which Version of IE is running so they know to rub their belly clockwise instead of counter-clockwise while standing on their heads. Then there is the whole disaster that is Flash, the delivery vehicle of choice for video.

To bring order from chaos it was decided on high that a new standard was needed. This is HTML 5. Currently HTML 4.01 is in broad use. There is a transition plan, of sorts. I suspect that, like Fortran and DOS, HTML 4.01 will never really die and the code written in it will always run in its own charmingly crippled fashion. But we can do better.

As a markup language HTML allows nearly infinite fiddling with page layout in great and fine detail. What it fails at is making any attempt at constructing a common theme or appearance for a collection of pages not be much more work than it is worth. It is this failing that CSS (Cascading Style Sheets) addresses.

HTML scatters appearance information throughout the document in <font size='3' color='red' face='ariel'> lots of fiddly bits. This is fundamentally wrong in that the information contained in the document is very distinct from the document's appearance. It is very easy to imagine the same document information in a variety of different appearances depending on the context. CSS solves this problem by moving all of the appearance information to one (or a few, it does cascade) place(s).

There is a starting place for all of this cascading. It's variable, but most folks start with a Style Sheet. It the case of this program it is located at ~/include/style/style.css This file is human readable text that describes the default appearance of the document it describes. This file is included as part of the <head>. What included means is that the contents of the file are inserted in that place. The head of an HTML document is non-printing (or rendering, it's only bits) as opposed to the body which is rendered (shown, painted on the screen). The head is where we put the bits of the document we don't want the reader to see. This includes information about the document itself (called meta-data), scripts that run when the user dinks with a control, and the appearance directives contained in the style.css file.

To make things a bit more concrete lets look at tables. Tables are wildly overused in HTML to position things relative to other things. The default appearance for a table is to have no border. Just for the sake of this illustration assume that the default for tables was a black border 1 pixel wide. Before CSS it was necessary to specifically turn on that border on each and every table in the document. This document makes extensive use of tables and the vast majority of them do not have borders. It would be nice if we could just turn them all off by default. Here's how it's done:

  <style>
    table,td,th
    {
    border:0px solid cyan;
    }
  </style>
This little fragment of style.css sets the default border for all tables in the document to be 0 pixels wide (which doesn't render), a solid as opposed to a dashed line, and colored cyan. While this is part of my file, style.css, you could just as easily drop that bit of code intact into the body of a document and it would work. Because it is between <style></style> tags the text describing what we want to do to tables is not rendered. The message is that you can use CSS anywhere, not just in the style.css file. Now, the default is that all table borders are turned off and for the few that I want to turn on I can do that locally by typing something like:
<table style="border:4px solid black;padding:15px;">
Which makes a table (much deleted detail) with a solid black border 4 pixels wide. The padding refers to an interior spacing within the table. CSS lets you set document wide defaults which are easily over-ridden locally at need. The closest CSS directive to an object controls its appearance. This is how styles cascade.

The syntax of CSS is a bit different than vanilla HTML. This is intentional so that the browsers can tell the difference so they know what to ignore, but it is also an improvement. HTML uses value="attribute" pairs to specify things. The CSS style is property:value; The semi-colon is required to delimit the end of the value(s) as property_0:value1 value2 value3;property_1:value1; is syntactically correct. A property and its associated values are referred to as a declaration.

Declarations are usually attached to a selector in style.css files. In the fragment above the selector(s) are table,td,th. This is what you hang the declaration on. As we have also seen above, declarations can appear in-line, as in

<table style="border:4px solid black;padding:15px;">
Notice that while we are using CSS to specify the behavior of the table we still have an HTML value="attribute" pair which contains the CSS declarations. Since we are mostly using CSS in-line you will see style="declaration(s)" rather often.

I find that when debugging layout problems (too many tables) it is helpful to turn on the borders of tables so you can see where they are. CSS makes this easy. Another tip is that if you highlight all of your page (control-a, Select All) you can also easily see the table borders.

This document was originally written in an HTML 4.01 centric fashion. I am now trying to use CSS exclusively because it is so much better. Information will be provided on both styles, but CSS is preferred and it rules when used. What is meant by this is that if CSS is in use for defining table borders using HTML 4.01 appearance directives like:

<table border="2" color="red"> 
will just fail without notification.
163 posted on 10/19/2016 5:10:41 PM PDT by Mycroft Holmes (The fool is always greater than the proof.)
[ Post Reply | Private Reply | To 151 | View Replies]

To: DoughtyOne
There are lots of similarities, but also some key differences. Here are some features of Expression Web (EW) I like:
  1. Drag and Drop -- You drag files or folders directly from your desktop to your website's file explorer on the leftside panel of the EW tool.

  2. Intellisense -- As you write a CSS style or HTML element, Expression Web tries to complete the text for you, or drops the closing tab onto the text. And if can control how much automation it does for you.

  3. Interface Options -- If there are 50 options available to you in KompoZer, then there are probably 500 in EW. A lot of these design options I have never explored -- its overkill in many cases.

  4. Redesign the Interface -- The modular capability of EW is very good. You can move sections around easily and hide sections you don't use.

  5. Error Checking -- This is a biggy. If you forget to close a tag or insert some code in error, EW will color code the portion of the text to alert you. This is particularly critical in CSS coding because one line of error could stop the next 50 lines of CSS to not work properly.

  6. Tutorials -- While I would not say that MS's documentation is excellent, there are at least some on-line tutorials that walk you through typical coding scenarios.

  7. YouTubes -- As I write this, I have also just discovered what looks to be some excellent YouTubes on EW. Looks I need to carve out some time to explore these myself.

Actually, someone like you can benefit from EW's richer features because you are already familiar with HTML editors.   So by all means, give it a try.

And responding to your questions in this casual way, I guess I've almost finished the content for a vanity post on the same subject.

A lot of people out there have no idea that a full-blown, professional-grade HTML editor like MS Expression Web is out there and it's free to download.

164 posted on 10/19/2016 5:25:12 PM PDT by poconopundit (When the people shall become so corrupted as to need despotic government. Franklin, Const. Conv.)
[ Post Reply | Private Reply | To 162 | View Replies]

To: poconopundit

Okay, thank for the explanation on all this.

Just bookmark where we start talking, and you can link folks to it as the tutorial.

I agree that you supplied enough information to get folks interesting, if they are at all inclined to be.

Thank you. I’ll download that product and give it a look.

I try to capture stuff like this while it is available, so that when it isn’t I already have the program for use later on.

Take care.


165 posted on 10/19/2016 5:30:13 PM PDT by DoughtyOne (20 days: Until Presdient Pre-elect becomes President Elect Donald J. Trump. Help is on the way!)
[ Post Reply | Private Reply | To 164 | View Replies]

To: Mycroft Holmes; DoughtyOne
Nicely said, Mycroft. And you are so correct.

In my previous comment, I disparaged CSS a bit because I wanted to thumb my nose at the globalist folks who want to see old standards die.  And I probably overstated my case, which may have prompted you to respond.

I use CSS and I wish FR allowed in-line CSS styling in posts and comments because CSS is familiar and more powerful for the user.

Agree too that CSS enables us to separate many of the design elements from the textual or structural HTML elements of a page.  That creates cleaner, more efficient, and more easily maintained code.

And totally agree that includes in a web page are fantastic.  It allows you to import a lengthy header, navigation, advertising, or footer section using only one line of reference code.  Wish I had learned about "includes" earlier because they are so handy.

Let me introduce a new idea that your comment inspired.   I wonder if we have taken CSS styling as far as it can — or should — go.

Consider this.  At the end of each sentence in this comment, I have inserted a non-blank space symbol [ &nbsp; ] to increase text readability.  For example:

Now rather than requiring me to manually insert these non-blank spaces after every sentence in a web page, wouldn't it be nice if we had a CSS function that globally inserted an extra space at the end of our sentences?

What do you think?  I would personally use such a CSS rule extensively.

Finally, I'm glad you expanded on the CSS topic.  We don't want people thinking they should go back to HTML element coding.  We only do that as an expedient because that's all FR allows us to use today.

It's also fun to see a discussion of all this on FR. Cheers :- )

166 posted on 10/19/2016 8:10:05 PM PDT by poconopundit (When the people shall become so corrupted as to need despotic government. Franklin, Const. Conv.)
[ Post Reply | Private Reply | To 163 | View Replies]

To: poconopundit

I have always like both sides, versus left or right side justified too.

I like to two spaces also.


167 posted on 10/19/2016 8:39:12 PM PDT by DoughtyOne (20 days: Until Presdient Pre-elect becomes President Elect Donald J. Trump. Help is on the way!)
[ Post Reply | Private Reply | To 166 | View Replies]

To: poconopundit

That screed is part of a much longer document that started out as my homepage, and has been moved since I started using CSS. It’s a primer on the installation and use of XAMPP to create database driven web pages.


168 posted on 10/19/2016 9:48:49 PM PDT by Mycroft Holmes (The fool is always greater than the proof.)
[ Post Reply | Private Reply | To 166 | View Replies]

To: Mycroft Holmes

Great, I scanned that XAMPP article on your FR homepage and it’s impressive.


169 posted on 10/20/2016 4:03:23 AM PDT by poconopundit (When the people shall become so corrupted as to need despotic government. Franklin, Const. Conv.)
[ Post Reply | Private Reply | To 168 | View Replies]

To: Mycroft Holmes

Wondering how much the wookie campaigned in 2013?


170 posted on 10/21/2016 12:58:06 PM PDT by citizen (Sanctuary cities: Illegals move in for free stuff, residents move out b/c they can't pay the taxes.)
[ Post Reply | Private Reply | To 168 | View Replies]


Navigation: use the links below to view more comments.
first previous 1-20 ... 101-120121-140141-160161-170 last

Disclaimer: Opinions posted on Free Republic are those of the individual posters and do not necessarily represent the opinion of Free Republic or its management. All materials posted herein are protected by copyright law and the exemption for fair use of copyrighted works.

Free Republic
Browse · Search
News/Activism
Topics · Post Article

FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson