From owner-freebsd-questions@FreeBSD.ORG Thu May 29 22:05:47 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 619D0106564A for ; Thu, 29 May 2008 22:05:47 +0000 (UTC) (envelope-from frank@esperance-linux.co.uk) Received: from mailout.zetnet.co.uk (mailout.zetnet.co.uk [194.247.47.231]) by mx1.freebsd.org (Postfix) with ESMTP id DF8428FC1D for ; Thu, 29 May 2008 22:05:46 +0000 (UTC) (envelope-from frank@esperance-linux.co.uk) Received: from irwell.zetnet.co.uk ([194.247.47.48] helo=zetnet.co.uk) by mailout.zetnet.co.uk with esmtp (Exim 4.63) (envelope-from ) id 1K1qFi-0007BI-0i; Thu, 29 May 2008 23:05:42 +0100 Received: from melon.esperance-linux.co.uk (54-144.adsl.zetnet.co.uk [194.247.54.144]) by zetnet.co.uk (8.14.1/8.14.1/Debian-9) with ESMTP id m4TM5f1Y009029; Thu, 29 May 2008 23:05:41 +0100 Received: by melon.esperance-linux.co.uk (Postfix, from userid 1001) id 0EC2EFCA4AF; Thu, 29 May 2008 23:05:36 +0100 (BST) Date: Thu, 29 May 2008 23:05:36 +0100 From: Frank Shute To: Gary Kline Message-ID: <20080529220536.GA39115@melon.esperance-linux.co.uk> Mail-Followup-To: Gary Kline , freebsd-questions@freebsd.org References: <20080529065732.GA36261@thought.org> <4a89d1190805290039k1f2dedb1he342b4a83d7453a6@mail.gmail.com> <200805291305.22567.kline@thought.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200805291305.22567.kline@thought.org> User-Agent: Mutt/1.4.2.3i X-Face: *}~{PHnDTzvXPe'wl_-f%!@+r5; VLhb':*DsX%wEOPg\fDrXWQJf|2\,92"DdS%63t*BHDyQ|OWo@Gfjcd72eaN!4%NE{0]p)ihQ1MyFNtWL X-Operating-System: FreeBSD 6.3-RELEASE-p2 i386 X-Organisation: 'Esperance Linux' X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (zetnet.co.uk [194.247.46.1]); Thu, 29 May 2008 23:05:41 +0100 (BST) Cc: freebsd-questions@freebsd.org Subject: Re: Stumped:: web HTML. Caution, may be OT. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Frank Shute List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 May 2008 22:05:47 -0000 On Thu, May 29, 2008 at 01:05:22PM -0700, Gary Kline wrote: > > On Thu May 29 2008 00:39:06 Christian Zachariasen wrote: > > > > On Thu, May 29, 2008 at 8:57 AM, Gary Kline wrote: > > > > > > Several weeks ago a friend asked why my www.thought.org page > > > was so hard to read. She said that part of my text was black > > > on the deep-blue bg on my RHS. I stopped and checked with > > > firefox; things looked fine. I've done all markup by hand since > > > '94, very carefully, with only browsers in the ports tree-- > > > mozilla, firefox, a couple others. > > > > > > About a week ago I viewed my homepage with KDE Konq and almost > > > flipped out. One "free" commercial historical calender event > > > feature was glued to the bottom of my blue bar (
) > > > on the RHS of the page. And yep, the new text and other things > > > were centered in the middle of the long blue rectangle. > > > > > > Since I have a few weeks now to work on things beside research, > > > it's time to update my main web page. My friend was using IE; > > > it may be that Konqueror uses a similar parser to position > > > things on a .php or .html page. > > > > > > Other than beginning from Zero and trying to determine exactly > > > what causes firefox and konq to diverge, do any of you have any > > > other ideas? I've never learned an HTML editors because of the > > > learning curve. But:: if/when I come up with a better design for > > > my home page, I'm willing to try again:: any best (simple) HTML > > > editors in ports? > > > > > > I'd be much obliged for any help here. > > > > > > > > > > I say keep using the technique you're using now. That's what I'd > > do. Instead of finding a HTML Editor just find a simple text > > editor and write all your HTML in a clean manner. > > > > I don't know where Ted got his statistics from, but most people I > > know use simple text editors for writing their HTML, CSS and > > JavaScript. Personally I stick to vi or diakonos on BSD and > > Notepad2 on Windows. > > > /* > * strange:: the way that mutt queues [ and orders ] its replies and theads is > * different from kmail. I only use a GUI when there is a URL embedded, but > * it must be down-queue. .... > */ Use textproc/urlview with mutt & Firefox. > > > I would *rather* use vi and HTML-by-hand. And produce very simple, > readable, uncluttered pages. I don't use many graphics, e.g., I > use the strength of HTML, php, blah ** 3. > > I'm ready to learn this "CMS" that Ted mentioned if I knew what it > was! And if its in ports. AFAIK, the only pages that look bizarre > are my initial "www" (and one other based on it). I'll google > around to find out what CMS is... Since you're "a do it by hand" person, I'll give you the benefit of my experiences doing my pages that way. My site is on a similar scale to yours and I've just kept it simple except where I've used server-side (PHP/Perl) and Javascript. 1. Use Firefox to develop with and install the webdeveloper plug-in: https://addons.mozilla.org/en-US/firefox/addon/60 Use vim not vi, since you get syntax highlighting with vim/gvim. Add x11/rgb to your system and: $ showrgb | less will show you the websafe colours. Plug in the numbers to your stylesheet to get your preferred colours. You can view the colours with e.g: $ xterm -bg steelblue Or: http://www.w3schools.com/tags/ref_colornames.asp I use Gimp for any graphics. 2. Choose a standard that you are going to code to and validate against. I use XHTML1.0 Transitional and CSS. Things are going more XML than HTML and transitional is less restrictive than strict. 3. Have a look at w3c schools site to learn your chosen language: http://www.w3schools.com/ There are various tutorials and references there. Best site on the 'net! 4. Steal a simple page that validates: http://www.shute.org.uk/miscellany.html and use it as a template to hack on. Steal the style sheet too. Validate your webpage as you go along with the w3c validator. 5. A few tips: Use
's for layout, not tables. Don't use fixed text heights, use relative so it respects the users preferences for text size. Keep an eye out for pages that look nice and validate. View source & then steal chunks of xhtml and css. 6. Happy hacking! You'll find that your validated pages will show fine in most modern browsers although some have more quirks than others. But when you get somebody say "Your webpage doesn't look right in Internet Exploder 5" you can say to them "Get a proper browser that respects web standards! Regards, -- Frank Contact info: http://www.shute.org.uk/misc/contact.html