Industry guru Dave Taylor offers free tech support on a wide variety of technical and business topics, including HTML, Apple iPhone, online advertising, Cascading Style Sheets, Web design, management, Unix, Linux, search engine optimization, online dating, Mac OS X, shell script programming and Microsoft Windows.

How to add a black or colored border to your Web page?

I saw that on the anniversary of 9/11 you changed your Web site home page to have a thick black border and some commemorative words. Nice, low key, and still effective. How'd ya do it?


Dave's Answer:

Glad you noticed. I spent a lot of time thinking about how I wanted to commemorate the tragedy of September 11th, 2001, and the loss of life both on that day and subsequently in the Middle East as a direct result of the attack. A graphic seemed too subtle. A blog entry seemed like an awkward fit on a tech Q&A blog, and replacing the site with a one-page commemorative seemed a bit too over the top for me. So a black edge seemed like a good middle ground.

To accomplish that, I made a surprisingly simple tweak to the HTML template that's used to build the home page for the Ask Dave Taylor site. Most weblogs have template-based site design -- which is one of the great benefits of using a weblog tool as the foundation for a web site, of course -- so it's pretty straightforward.

In the "index.html" template I found the following lines:

<body style='background-color:#ffc;background-image: url(/Graphics/pinstripebg.gif);' >

<div style="font-size:75%;font-weight:bold;color:#555;text-align:right;">You're finding <strong>free tech support</strong> at AskDaveTaylor.com</div>

and changed them thusly (additions and changes are in bold):

<body style='background-color:#ffc;background-image: url(/Graphics/pinstripebg.gif);border:20px solid #111;margin:1px; padding:5px;'>

<div style="font-size:75%;font-weight:bold;color:#555;text-align:right;">The black border is in memory of those people who died in 9/11 and subsequently in the war in Iraq</div>

The results were a page that looked like this:

ask dave taylor black border

I think it was just the right balance between being consistent with the theme of this site and honoring the people who have died. I hope you agree.



Help others find this article at Del.icio.us, Digg, Netscape, Reddit, and Stumble Upon    

Subscribe!

Never miss another useful Q&A article again! Subscribe to AskDaveTaylor with Google Reader.

Comments

I think this was an appropriate display of
empathy, and appropriate way to do so.

Posted by: Ed Shaz at September 12, 2008 2:08 PM

plsssssssss how to add my backround in my profile

Posted by: amy at September 17, 2008 12:55 AM

Dave,
I have been on your site for a couple of days and now have it bookmarked, trying to learn all that I can cram into my 70 year old grey matter. Your site is really great. I am somewhat computer literate, but not as much as I would like to be.

I am a little confused on a couple of issues regarding html. First, on your post regarding google maps and the location of a house or other landmark in a website, where would one post it? I have a commercially produced website and do not know where to post a map. Also, I practice using my word pad and then save it as a .html file, and then bring it up in my firefox browser.

If allowable I will probably have many more questions. Thanks for such a good website for an old fart.

Posted by: Stanley Cobb at December 23, 2008 8:21 AM

Stanley, if you aren't sure where you'd add a map to your nascent site, then maybe you don't need to include one. Seriously. If you had a retail establishment, for example, you could quite logically have a page "Find Us" or "Visit Us". On a personal site, though, I'd generally recommend you err on the side of privacy and not include your home address or a map on where you live, other than in the most general terms.

Posted by: Dave Taylor at February 16, 2009 7:24 AM

I have something to say, now that you mention it, but ...
Starbucks coffee cup I do have a lot to say, and questions of my own for that matter, but first I'd like to say thank you for all your efforts on this Web site by buying you a cup of coffee!

I do have a comment, now that you mention it!











Remember personal info?


Please note that I will never send you any unsolicited commercial email. Ever.

While I'm at it, please note that by submitting a question or comment you're agreeing to my terms of service, which are: you relinquish any subsequent rights of ownership to your material by submitting it on this site.








Ask Dave Taylor: The iPhone App: Advertisement


Uniblue: Free Virus Scan

Follow me on Twitter @DaveTaylor

Search
Find just the answers you seek from among our 2300+ free tech support articles by using our Lijit search engine.


Help!





Subscribe to
Ask Dave Taylor!

Add to Google Reader
Add to My Yahoo!
Subscribe in NewsGator Online

RDF   XML

Free Updates!
Sign up and get free weekly updates and special offers on books, seminars, workshops and more.


Recent Entries
Book Links
© 2002 - 2009 by Dave Taylor. All Rights Reserved.

Note: This web site is for the purpose of disseminating information for educational purposes, free of charge, for the benefit of all visitors. We take great care to provide quality information. However, we do not guarantee, and accept no legal liability whatsoever arising from or connected to, the accuracy, reliability, currency or completeness of any material contained on this web site or on any linked site.

[whiteboard marker tray]
"Ask Dave Taylor®" is a registered trademark of Intuitive Systems, LLC.