Phine Solutions web work notes

z-index and select box

Filed under: css/design — 1.618 @ 3:14 pm

While I was trying to display a div block with a different z-index, I noticed it wouldn’t cover everything underneath it. Namely, the form components like a selection box. Firefox seems to be ok but on IE it looks quite ugly with the form components showing through which supposed to be covered space.

A few fixes can be applied:

  • use javascript to hide the form components when the upper div is shown - a pretty complicated solution.
  • use iframe in the div block to really cover things up.
  • Just use “absolute” position without z-index, so it won’t try to cover, and just push the space down - ok solution if it works for the design, I guess.
  • Get firefox - can’t tell this to your user though… :)

install dovecot

Filed under: server setup — 1.618 @ 8:49 pm

After some reading I decided to use dovecot for IMAP server. The installation is pretty simple.

if PAM is not installed,
yum install pam-devel

  • create a dedicated user dovecot:dovecot
  • for virtual users, create /etc/dovecot/vmailuser and /etc/dovecot/vmailpass
  • create dovecot.conf and save it under /etc
  • create a dovecot service script in init.d and install it by

chkconfig –add dovecot

It took me some time to get the virtual users working. Originally I was trying to create the user and password file under the virtual mailbox directory, and using %d variable in dovecot.conf file so each virtual domain can have its own user/password file. But for some reason I kept getting the “no user” or “bad password” error when tried to login from IMAP. Finally I decided that’s it and created universal vmailuser and vmailpass file under /etc/dovecot, which worked perfectly.

css tips - hide the tool bar from the textarea

Filed under: css/design — 1.618 @ 11:00 pm

How to hide the scroll bar of the text area?
use overflow:auto style.

« Previous Page

©phinesolutions.com