<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/language/css/tags/alignment</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Thu, 21 Aug 2008 17:53:05 GMT</pubDate>
<item>
<title>(CSS) Centering an element in page with absolute position - crs</title>
<link>http://snipplr.com/view/4803/centering-an-element-in-page-with-absolute-position/</link>
<description><![CDATA[ <p>Our need is very simple. We need a pop-up message, or a div element in general, to appear at the middle of the page anytime using only style sheets.

Our problem is that there is no “center” property in css, like “left” of “right” which can be used with “position:absolute”.

To make it align at the center of the x-axis you have to play the game of percentages. Give to your element a width in percentage (ex. width: 30%), remove the 30% from the 100% of the browsers window and you get the left 70%. Then divide this 70% into two pieces and you get 35%. That the equal left and right margin, our element will have.</p> ]]></description>
<pubDate>Mon, 28 Jan 2008 01:22:01 GMT</pubDate>
<guid>http://snipplr.com/view/4803/centering-an-element-in-page-with-absolute-position/</guid>
</item>
<item>
<title>(CSS) Align Elements on left and right side - indianocean</title>
<link>http://snipplr.com/view/2804/align-elements-on-left-and-right-side/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 06 Jun 2007 01:39:09 GMT</pubDate>
<guid>http://snipplr.com/view/2804/align-elements-on-left-and-right-side/</guid>
</item>
<item>
<title>(CSS) Horizontally center a box - indianocean</title>
<link>http://snipplr.com/view/2792/horizontally-center-a-box/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 04 Jun 2007 02:18:02 GMT</pubDate>
<guid>http://snipplr.com/view/2792/horizontally-center-a-box/</guid>
</item>
</channel>
</rss>