Wednesday, September 7, 2011

CSS box model

The Box model is the foundation of CSS web design. At the very core of this idea is that every element is in a “box”. For example when you use the h3 tag the whole element is in a box, same with the anchor tag and so on. But the real value of the box model is that everything can be positioned using three basic properties. Padding, border, and margin. First lets take a graphic model of these three properties.


As you can see that the margin is the most outer layer of the model. Then comes the border followed by padding and finally the content it self. The height and width of the content can also be manipulated like older styles of XHTML. You can also set individual sides such as margin-left or padding-right. Manipulating these properties sets the total width and height of the element.

calculate total width:
Total element width = width + left padding + right padding + left border + right border + left margin + right margin

Calculate total height:
Total element height = height + top padding + bottom padding + top border + bottom border + top margin + bottom margin

Thursday, September 1, 2011

POP3 and SMTP

Okay it’s been a very long time, but I am back and ready to do a thrilling post on EMAIL. I was at my ambulance job today and my boss was having trouble with her email. It’s not a very big company so they are not using an exchange server to send and receive email. This is the first time that I have worked on a setup such as this so I thought it would make a good blog post. Here are some of the things that I found out. First instead of a in house server they were using the website provider as the email service. The income server was a pop3 server and the outgoing server was an SMTP server. This is were it dawned on me that I could not recall the difference between theses protocols
POP3 stands for Post office protocol and the current version which is 3
pop3 is the protocol used to communicate between your email client (such as outlook) and your ISP that is saving your email on their POP3 server. POP3s overall function is to handle incoming messages. POP3 was designed to delete the messages off the server and transfer them to the computer where the email client is installed. This behavior was one of the problems for my boss. When outlook was started on her computer at work she was no longer able to access them on her blackberry or on the web GUI when she got home. Another protocol called IMAP could have been the solution to her problem, but these are things that I am not in control of in this situation.



SMTP stands for Simple Mail Transfer Protocol
SMTP is the protocol used to communicate between your email client and the SMTP server that will forward your messages on to the desired destination.






reference section:
http://ask-leo.com/what_is_pop_or_pop3_or_a_pop_account_and_what_about_smtp.html

http://searchexchange.techtarget.com/definition/POP3