Simplicity is always key when developing a site. Forcing a site to use nothing but CSS is more of a hassle when it comes to a situation like this one. In my vertical centering using CSS example you’re immediately forced into using conditional statements for Internet Explorer before your site ever even takes shape. Not only is it a lot of code to get the document to center vertically and horizontally but there’s a greater chance of breaking the working code as the side progresses or running into an issue with overflow. The single table in this article gets rid of what might happen and there’s no scrolling content in the center (unless that’s the look you’re after). Drop your CSS ego and use a table. Here’s the method (demo)
CSS Breakdown
html, body {
height:100%;
margin:0;
padding:0;
font:normal 12px/15px “Lucida Grande”, Verdana, Arial, Helvetica, serif; /* not relevant to the layout */
}
h3 { margin:0; } /* not relevant to the layout */
table {
background-color:#666; /* not relevant to the layout */
padding:0;
margin:0;
height:100%;
}
table div {
background-color:#333; /* not relevant to the layout */
padding:10px; /* not relevant to the layout */
border:1px solid white; /* not relevant to the layout */
width:500px;
height:500px;
margin:0 auto;
text-align:left; /* not relevant to the layout */
color:white; /* not relevant to the layout */
}
(more…)
Unlike Exchange 2003, by default Exchange 2007 is automatically configured with a self-singed certificate and is enabled for SSL upon installation. This certificate is a requirement for Exchange to work properly in most aspects and you’re better off replacing the self generated cert with a cert for a trusted certificate authority. These certificates used to be extremely expensive and these days you can get them dirt cheap in comparison from a CA like Godaddy or Digicert.
With the integration of the Exchange Management Shell, the cert request, installation and activation process is easily accomplished in only a few steps. I should also mention that with the introduction of Exchange 2007 there are new requirements for the certificates used. Subject Alternative Name (SAN) certificates are multi-domain certificates that allow more than one FQDN. 2007 has the need to use multiple domain names in a single cert for internal and external users; as well as, the autodiscover domain name. Having a single cert for all these names streamlines and simplifies the process of installing the certificates.
Generating the Certificate Request
- Open the Exchange Management Shell
- Type New-ExchangeCertificate -GenerateRequest -DomainName mail.company.com, autodiscover.company.com, servername, servername.company.local -Friendlyname mail.company.com -PrivateKeyExportable:$true -Path c:\certreq.txt
- After you hit enter the thumbprint of the cert will be generated and displayed.
- Use the generated certreq.txt when prompted at your chosen CA
- Once you’ve acquired your certificate save it to c:\mail.company.com.cer
- Again from the Exchange Management Shell type Import-ExchangeCertificate –Path c:\mail.company.com.cer | Enable-ExchangeCertificate –Services “POP, IMAP, IIS, SMTP”
- After you hit enter your new cert will be enabled for the services listed in the command. To verify the successful installation use this command Get-ExchangeCertificate | FL
This process can be done with a self generated cert as long as that cert has been manually installed and trusted by the clients. To get more information on configuring a self signed cert so your server doesn’t drive you crazy with password prompts view this article.
If you’re getting random password prompts to your users it’s likely your certificate is configured incorrectly or is missing a FQDN that’s needed for the clients to successfully authenticate over SSL.
This is one of the more common questions I see when it comes to CSS. It’s definitely not as straight forward as the valign=”middle” align=”center” that we used to use in tables (and still do). All the while, folks are doing their best to move completely out of tables and accomplish everything they used to do with an all CSS layout. Something that would be seemingly simple is actually not very straightforward at all. Here’s the method (demo).
CSS Breakdown
html, body {
height:100%;
margin:0;
padding:0;
}
body {
background-color:#ccc;
text-align:center;
min-width:720px;
min-height:420px;
}
#head {
margin:-210px 0 0 0; /* half the minimum height*/
width:100%;
float:left;
height:50%;
}
(more…)
Sending email from a smarthost or your ISP’s outgoing SMTP server can often lack the necessary capabilities required to host a quality mail server. It’s too often I’ve seen an ISP completely change the ports it uses, lock down access from your server, just plain suck at sending mail to certain domains or even take forever to deliver the message to the recipient. If you experience any of these issues you’ll probably be better off switching to the DNS/MX method of sending mail. Here’s the process:
Exchange 2003
- Exchange System Manager
- Connectors
- SMTP Connector
- right click and go to Properties of your SMTP Connector
- select “use DNS to route each address space on this connector”
- select OK
- restart the Simple Mail Transfer Protocol service (SMTP)
Exchange 2007
- Exchange Management Console
- Organization Configuration
- Hub Transport
- Send Connectors
- right click and go to Properties of your send connector
- Network Tab
- select “Use domain name system (DNS) “MX” records to route mail automatically”
- select OK
- restart the Exchange Transport service
This is a request I see quite often across the web…can it be done? Actually, it can be done and here’s the method behind it (demo). Only the relevant tags are commented on.
CSS Breakdown
body, html {
color: #000;
font:normal normal 12px/15px “Lucida Grande”, Verdana, Arial, Helvetica, serif;
background-color: #eee;
text-align: center; /* for IE */
height: 100%; /* force relative page heights globally */
margin:0; /* removes all the margins to prevent scrollbars from popping up here and there */
padding:0; /* removes all the padding to prevent scrollbars from popping up here and there */
border:0; /* removes all the borders to prevent scrollbars from popping up here and there */
}
#container {
margin:0 auto; /* centers the content */
width:950px;
text-align:left;
min-height:100%; /* self explanatory but this isn’t supported in IE… this is what makes the design full height in non-IE browsers */
background:#999;
}
* html #container { height: 100%; } /* this is the key component that allows the footer to be forced downward preventing the content from flowing over footer and clears up the min-height issues with IE */
#container a {
color:#222;
text-decoration:none;
}
#container a:hover {
color:#000;
text-decoration:underline;
}
(more…)