<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: absolute positioning</title>
	<atom:link href="http://www.scriptygoddess.com/archives/2002/04/19/absolute-positioning/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.scriptygoddess.com/archives/2002/04/19/absolute-positioning/</link>
	<description></description>
	<pubDate>Thu, 20 Nov 2008 23:33:11 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: Katie</title>
		<link>http://www.scriptygoddess.com/archives/2002/04/19/absolute-positioning/#comment-6330</link>
		<dc:creator>Katie</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2002/04/19/absolute-positioning/#comment-6330</guid>
		<description>What is the code to use absolute positioning on a picture or text?? Please help me!

Thank You!
Katie
</description>
		<content:encoded><![CDATA[<p>What is the code to use absolute positioning on a picture or text?? Please help me!</p>
<p>Thank You!<br />
Katie</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tina</title>
		<link>http://www.scriptygoddess.com/archives/2002/04/19/absolute-positioning/#comment-6329</link>
		<dc:creator>Tina</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2002/04/19/absolute-positioning/#comment-6329</guid>
		<description>You could also try using percentages for widths... it takes a bit of tweaking, but once everything's right it should resize itself depending on the browser's resolution.  It works better on higher resolutions, but it can be done.

On that note... I'm having some trouble with a current CSS sheet, in that for some reason it just doesn't want to take (it's for my first attempt at skinning).  I've had this problem before, and I'm really hoping it's got nothing to do with the default MT stylesheets as the last one did, as otherwise it means I'm going to have one big load of trouble skinning my site...</description>
		<content:encoded><![CDATA[<p>You could also try using percentages for widths&#8230; it takes a bit of tweaking, but once everything&#039;s right it should resize itself depending on the browser&#039;s resolution.  It works better on higher resolutions, but it can be done.</p>
<p>On that note&#8230; I&#039;m having some trouble with a current CSS sheet, in that for some reason it just doesn&#039;t want to take (it&#039;s for my first attempt at skinning).  I&#039;ve had this problem before, and I&#039;m really hoping it&#039;s got nothing to do with the default MT stylesheets as the last one did, as otherwise it means I&#039;m going to have one big load of trouble skinning my site&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mark</title>
		<link>http://www.scriptygoddess.com/archives/2002/04/19/absolute-positioning/#comment-6328</link>
		<dc:creator>mark</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2002/04/19/absolute-positioning/#comment-6328</guid>
		<description>You can centre block-level elements using negative margins or auto margins (auto margins is the better way, as it's more predictable, and *designed* for this):

div {
  margin: auto;
  }

This'll only centre horizontally, however (and you'd probably have to define a width, too).  Theoretically it should also work vertically, but, well, browsers suck.</description>
		<content:encoded><![CDATA[<p>You can centre block-level elements using negative margins or auto margins (auto margins is the better way, as it&#039;s more predictable, and *designed* for this):</p>
<p>div {<br />
  margin: auto;<br />
  }</p>
<p>This&#039;ll only centre horizontally, however (and you&#039;d probably have to define a width, too).  Theoretically it should also work vertically, but, well, browsers suck.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lynda</title>
		<link>http://www.scriptygoddess.com/archives/2002/04/19/absolute-positioning/#comment-6327</link>
		<dc:creator>Lynda</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2002/04/19/absolute-positioning/#comment-6327</guid>
		<description>It hurts my head too, Row.  Every time I sit down to do a design I get a headache.  I am NOT a math person.

:)

But it does work. . .  Glish explains it better than I do though.</description>
		<content:encoded><![CDATA[<p>It hurts my head too, Row.  Every time I sit down to do a design I get a headache.  I am NOT a math person.<br />
 <img src='http://www.scriptygoddess.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
But it does work. . .  Glish explains it better than I do though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: marc</title>
		<link>http://www.scriptygoddess.com/archives/2002/04/19/absolute-positioning/#comment-6325</link>
		<dc:creator>marc</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2002/04/19/absolute-positioning/#comment-6325</guid>
		<description>ta very much - i'll have a play around :)</description>
		<content:encoded><![CDATA[<p>ta very much - i&#039;ll have a play around <img src='http://www.scriptygoddess.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Row</title>
		<link>http://www.scriptygoddess.com/archives/2002/04/19/absolute-positioning/#comment-6326</link>
		<dc:creator>Row</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2002/04/19/absolute-positioning/#comment-6326</guid>
		<description>This is something I was struggling with a couple of days ago. I worked it out with relative positioning and negative pixels, but it was so inelegant that I simply gave up!

And Lynda, all that maths in your post hurt my head. :)</description>
		<content:encoded><![CDATA[<p>This is something I was struggling with a couple of days ago. I worked it out with relative positioning and negative pixels, but it was so inelegant that I simply gave up!</p>
<p>And Lynda, all that maths in your post hurt my head. <img src='http://www.scriptygoddess.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lynda</title>
		<link>http://www.scriptygoddess.com/archives/2002/04/19/absolute-positioning/#comment-6324</link>
		<dc:creator>Lynda</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2002/04/19/absolute-positioning/#comment-6324</guid>
		<description>&lt;a href="http://www.glish.com/css/7.asp"&gt;Here's the glish tutorial&lt;/a&gt;  More or less the same thing.   There's some trickery involived in getting other browsers to know what they're doing.   :)</description>
		<content:encoded><![CDATA[<p><a href="http://www.glish.com/css/7.asp">Here&#039;s the glish tutorial</a>  More or less the same thing.   There&#039;s some trickery involived in getting other browsers to know what they&#039;re doing.   <img src='http://www.scriptygoddess.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lynda</title>
		<link>http://www.scriptygoddess.com/archives/2002/04/19/absolute-positioning/#comment-6323</link>
		<dc:creator>Lynda</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2002/04/19/absolute-positioning/#comment-6323</guid>
		<description>Marc,

You can't do it with absolute positioning as absolute will always want you to pinpoint WHERE it's placed, not just a round-about percentage.

You can do that in relative positioning though:

&lt;h3&gt;#centered { 
margin-left : 30%;
margin-right : 30%;
border : 5px #000 solid;
padding : 15px;
}&lt;/h3&gt;

&lt;a href="http://www.digitalwoe.com/extras/centered.html"&gt;Here is an example of a box centered 30% both on the left and right&lt;/a&gt;

Now, if you want to do something like that with three columns, this is what you'd need to do.  Create three div tags (I put mine in ID tags, I'm not sure why) - one for each column.  Then:

1.) Figure the width of the LEFT column PLUS the left margin.
2.) Figure the width of the RIGHT column PLUS the right margin.
3.) Absolutely position both the LEFT and RIGHT column inside their respective DIV tags.
4.) Relatively position (ie, don't assign a position) the middle column inside its DIV tag.  

Here's where the math comes in.  for the middle column's div tag, the margin-left should figure as the following:

total left margin of LEFT column
   PLUS
total width of LEFT column
   PLUS
total desired space between left column and center column

Do the same for the right margin.

Take a look at the code in &lt;a href="http://digitalwoe.com/extras/3column.html"&gt;THIS EXAMPLE&lt;/a&gt; for what I'm talking about.

One of the old blue or glish css tutorials actually has the same exact thing posted.  I'll try to find it.</description>
		<content:encoded><![CDATA[<p>Marc,</p>
<p>You can&#039;t do it with absolute positioning as absolute will always want you to pinpoint WHERE it&#039;s placed, not just a round-about percentage.</p>
<p>You can do that in relative positioning though:</p>
<h3>#centered {<br />
margin-left : 30%;<br />
margin-right : 30%;<br />
border : 5px #000 solid;<br />
padding : 15px;<br />
}</h3>
<p><a href="http://www.digitalwoe.com/extras/centered.html">Here is an example of a box centered 30% both on the left and right</a></p>
<p>Now, if you want to do something like that with three columns, this is what you&#039;d need to do.  Create three div tags (I put mine in ID tags, I&#039;m not sure why) - one for each column.  Then:</p>
<p>1.) Figure the width of the LEFT column PLUS the left margin.<br />
2.) Figure the width of the RIGHT column PLUS the right margin.<br />
3.) Absolutely position both the LEFT and RIGHT column inside their respective DIV tags.<br />
4.) Relatively position (ie, don&#039;t assign a position) the middle column inside its DIV tag.  </p>
<p>Here&#039;s where the math comes in.  for the middle column&#039;s div tag, the margin-left should figure as the following:</p>
<p>total left margin of LEFT column<br />
   PLUS<br />
total width of LEFT column<br />
   PLUS<br />
total desired space between left column and center column</p>
<p>Do the same for the right margin.</p>
<p>Take a look at the code in <a href="http://digitalwoe.com/extras/3column.html">THIS EXAMPLE</a> for what I&#039;m talking about.</p>
<p>One of the old blue or glish css tutorials actually has the same exact thing posted.  I&#039;ll try to find it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: marc</title>
		<link>http://www.scriptygoddess.com/archives/2002/04/19/absolute-positioning/#comment-6321</link>
		<dc:creator>marc</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2002/04/19/absolute-positioning/#comment-6321</guid>
		<description>hmmm - thought about this some more.

would absolute positioning  the two side elements (with a % of the page from left an right) and leaving the middle element to do it's own thing work?

might go and have a play........</description>
		<content:encoded><![CDATA[<p>hmmm - thought about this some more.</p>
<p>would absolute positioning  the two side elements (with a % of the page from left an right) and leaving the middle element to do it&#039;s own thing work?</p>
<p>might go and have a play&#8230;&#8230;..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: marc</title>
		<link>http://www.scriptygoddess.com/archives/2002/04/19/absolute-positioning/#comment-6322</link>
		<dc:creator>marc</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2002/04/19/absolute-positioning/#comment-6322</guid>
		<description>:)  nope...... i'll stop posting now!!</description>
		<content:encoded><![CDATA[<p> <img src='http://www.scriptygoddess.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  nope&#8230;&#8230; i&#039;ll stop posting now!!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.328 seconds -->
