Archive for the 'General' Category

1px dotted border in IE

Thursday, December 16th, 2004

One more flaw in IE is that it does not render 1px dotted borders. What you get from IE are 1px dashed borders. 2px dotted borders are fine, however. One solution is presented by Adam Kalsey but that does not work if you want a dotted border on all 4 sides. A little modification is all that is needed, and no css parsing bug hacks are necessary. First you need is a 2×2 px image where the top left and bottom right pixel is one color and the top right and bottom left pixel is a different color. Then wrap the element inside a div with the following class :
.wrap{
background-image: url(2×2pxl.gif);
background-repeat: repeat;
padding: 1px;
width: 250px;
}

set the width to whatever value is appropriate.
Then assign a background color to the element you want the dotted border on so the 2 by 2 pixel image doesn’t show through
#elementWithDottedBorder{
background-color: #FFFFFF;
}

Put it together like this …
<div class="wrap">
<div id=”elementWithDottedBorder”>
Bla bla bla
</div>
</div>

And you’re done!

Free .info domains!

Saturday, September 4th, 2004

You can now register up to 25 .info domains totally free! The domain registrars offering this deal are
Domaindiscount24, Domainsite and NameSecure. Other registrars are also offering .info domain registrations at lower-than-normal prices. The free domain offer is time limited (to 30 sept at Domaindiscount24) and might be limited to a total of 25 free domains across the registrars.

What’s this?

Friday, August 20th, 2004

Since this is the first post, I might as well explain what this blog is all about.

This is a blog where I will write down my thoughts on various subjects related to (open source) web development, like Python programming, PHP, templates, editors, databases etc. This includes comments on current news, tips&tricks and I will present of some code of my own.

I am doing this mostly because I think it will be fun. Besides that, I hope that I can present some smart tips and useful pieces of code for other developers. Always nice to help. Maybe I can use this blog to market myself too.

Since this is a somewhat personal website, I decided to have my initials in the domain name (hb). Something like hbwire, hbedge or something. And I wanted a .com domain. But all the domains I checked were already taken. Hbpython.com was an option, but it would indicate that this blog is only about Python, which it is not. Then I thought about html/hbml. That would be cool! But also taken. So I ended up with xhbml.com, which I think is a pretty cool domain name and it suggests that the content is related to web development without locking it to a narrow subject. My own eXtensible Markup Language or something. Maybe I’ll figure out a different meaning for it later.

I chose Wordpress as the publishing tool for this blog because it has a good reputation, has the desired functionality and was easy to set up. It also helped that I already have a multi domain hosting account with PHP/MySQL support so I could just upload the files and start blogging without any expenses.