<?xml version="1.0"?>
<rss version="2.0">
 <channel>
  <title>How to vertically align? | WPDFD.com Forums</title>
  <link>http://www.wpdfd.com/forums/wpdfd/markup/how_to_vertically_align/</link>
  <description>A Markup forum thread at WPDFD.com</description>
  <language>en-us</language>
  <pubDate>06/08/04, 160 10 2004 2004:%i:1086750617 23:10:17</pubDate>
  <lastBuildDate>06/07/13, 158 53 2013 2013:%i:1370591592 03:53:12</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>NineLabs Framework Feed Generator</generator>
  <managingEditor>sitemaster@wpdfd.com</managingEditor>
  <webMaster>sitemaster@wpdfd.com</webMaster>
     <item>
    <title>Rookiewebgal  said:</title>
    <link>http://www.wpdfd.com/forums/wpdfd/markup/how_to_vertically_align/#p988</link>
    <description><![CDATA[Hi,<br /><br />Total newbie.<br /><br />I have a single page that contains a graphic I've sliced and created an image map in ImageReady CS. The page works fine.<br /><br />I need to center the graphic both horiz. and vert. so no matter how the browser window is sized, the graphic appears centered.<br /><br />I add the 'Div Align=Center' tag so it would center horizontally and the page works fine.<br /><br />Now I need to center the graphic vertically (again, it's sliced so IR created a table).<br /><br />Is there an easy way to do this without using CSS, bringing it into DreamWeaver, etc.?<br /><br />Thank you in advance for any help!]]></description>
    <pubDate>06/08/04, 160 10 2004 2004:%i:1086750617 23:10:17</pubDate>
    <guid>http://www.wpdfd.com/forums/wpdfd/markup/how_to_vertically_align/#p988</guid>
   </item>
     <item>
    <title>Joe Gillespie said:</title>
    <link>http://www.wpdfd.com/forums/wpdfd/markup/how_to_vertically_align/#p989</link>
    <description><![CDATA[You can do it with a single cell table set to 100% width, 100% height and align=&quot;center&quot; valign=&quot;middle&quot; however, it won't be valid HTML as table height is no longer allowed so there is no guarantee that it will work in the future.<br /><br />It is better to use CSS and it's not difficult...<br /><br /><a href="http://www.wpdfd.com/editorial/wpd0103.htm#toptip">http://www.wpdfd.com/editorial/wpd0103.htm#toptip</a>]]></description>
    <pubDate>06/09/04, 161 34 2004 2004:%i:1086770083 04:34:43</pubDate>
    <guid>http://www.wpdfd.com/forums/wpdfd/markup/how_to_vertically_align/#p989</guid>
   </item>
     <item>
    <title>Rookiewebgal  said:</title>
    <link>http://www.wpdfd.com/forums/wpdfd/markup/how_to_vertically_align/#p990</link>
    <description><![CDATA[Thank you. I followed the article you mentioned, tweaked the CSS settings and kind of got it to work.]]></description>
    <pubDate>06/09/04, 161 54 2004 2004:%i:1086800076 12:54:36</pubDate>
    <guid>http://www.wpdfd.com/forums/wpdfd/markup/how_to_vertically_align/#p990</guid>
   </item>
     <item>
    <title>Kk5st  said:</title>
    <link>http://www.wpdfd.com/forums/wpdfd/markup/how_to_vertically_align/#p991</link>
    <description><![CDATA[<blockquote><strong>Forum said:</strong><br />
You can do it with a single cell table set to 100% width, 100% height and align=&quot;center&quot; valign=&quot;middle&quot; however, it won't be valid HTML as table height is no longer allowed so there is no guarantee that it will work in the future.<br /><br />It is better to use CSS and it's not difficult...<br /><br /><a href="http://www.wpdfd.com/editorial/wpd0103.htm#toptip">http://www.wpdfd.com/editorial/wpd0103.htm#toptip</a></blockquote><br />Height is not an attribute of table, but height is a property (css) of table. &nbsp;This is useful in centering an element vertically. &nbsp;The method you describe becomes problematic should the viewport be smaller than the centered element. &nbsp;In that case, a portion of the element is pulled beyond the viewport by the negative margin only to become unviewable.<br /><br />A solution is available that avoids losing pieces of the element. &nbsp;It uses the height property of table and the default valign=&quot;middle&quot; of td. The horizontal is handled conventionally with css. &nbsp;An example may be seen at my demo,<a href="http://garyblue.port5.com/webdev/vcenter.html"> Centering the Vertical</a>. <br /><br />cheers,<br /><br />gary]]></description>
    <pubDate>10/12/04, 286 43 2004 2004:%i:1097566983 03:43:03</pubDate>
    <guid>http://www.wpdfd.com/forums/wpdfd/markup/how_to_vertically_align/#p991</guid>
   </item>
     <item>
    <title>Joe Gillespie said:</title>
    <link>http://www.wpdfd.com/forums/wpdfd/markup/how_to_vertically_align/#p992</link>
    <description><![CDATA[Except that tables are for 'tabular data' and should not be used this way - semantically. But I won't tell anyone if you do <img src="/images/emoticons/smile.png" class="smiley" />]]></description>
    <pubDate>10/12/04, 286 15 2004 2004:%i:1097579746 07:15:46</pubDate>
    <guid>http://www.wpdfd.com/forums/wpdfd/markup/how_to_vertically_align/#p992</guid>
   </item>
     <item>
    <title>Kk5st  said:</title>
    <link>http://www.wpdfd.com/forums/wpdfd/markup/how_to_vertically_align/#p993</link>
    <description><![CDATA[True, true. &nbsp;A single celled table as a wrapper seems a sane compromise. &nbsp;It does not cause accessibility problems nor does it hinder maintenance, and the content to tare ratio is only minimally compromised. &nbsp;All in all, reasonable.<br /><br />The only thing is, in the practical case where would you use it other than in one of those abominable splash screens?<br /><br />cheers,<br /><br />gary]]></description>
    <pubDate>10/12/04, 286 47 2004 2004:%i:1097596029 11:47:09</pubDate>
    <guid>http://www.wpdfd.com/forums/wpdfd/markup/how_to_vertically_align/#p993</guid>
   </item>
     <item>
    <title>Schomer  said:</title>
    <link>http://www.wpdfd.com/forums/wpdfd/markup/how_to_vertically_align/#p994</link>
    <description><![CDATA[To answer your question about where it might be used, other than in a splash screen (which I can't stand either, by the way)...<br /><br />I think I have case where I'm trying to display small thumbnail images in rows and columns. I have created a box, then floated it left, so the boxes all flow nicely on the page into rows/columns. My problem now is that I'd like the images inside the boxes to be in the middle - vertically.<br /><br />Each image could be a little different in size. For instance, if you take a picture with your digital camera as portrait, then landscape, now you have two pictures that do not have the same height and width. What I do know is they will fit within 128x128 px because I'm making the thumbnail images programatically that way.<br /><br />Here's my CSS for the boxes:<br /><br />div.thumbnail_box {<br /> &nbsp; &nbsp; &nbsp;float: left;<br /> &nbsp; &nbsp; &nbsp;margin: 6px;<br /> &nbsp; &nbsp; &nbsp;padding: 6px;<br /> &nbsp; &nbsp; &nbsp;border: solid 1px;<br /> &nbsp; &nbsp; &nbsp;width: 140px;<br /> &nbsp; &nbsp; &nbsp;height: 140px;<br /> &nbsp; &nbsp; &nbsp; &nbsp;}<br /> &nbsp;<br />div.center-image-in-box {<br /> &nbsp; &nbsp; &nbsp;text-align: center;<br /> &nbsp; &nbsp; &nbsp; &nbsp;}<br /><br />And here is what I have for HTML:<br /><br />&lt;div class=&quot;thumbnail&quot;&gt;<br />&lt;div class=&quot;center-image-in-box&quot;&gt;<br /> &nbsp;&lt;img src=&quot;images/image1.jpg&quot; alt=&quot;image 1&quot; width=&quot;100&quot; height=&quot;100&quot; /&gt;&lt;br /&gt;<br />&lt;/div&gt;<br />&lt;/div&gt;<br /><br />I can't seem to get the image to be positioned in the middle of the box, vertically.<br /><br />Make sense?<br /><br />Basically, I need a box to float left, then have an image inside it positioned in the middle - vertically.<br /><br />Hmm...<br /><br />-Schomer<br /><br /><br />]]></description>
    <pubDate>11/03/04, 308 03 2004 2004:%i:1099530197 20:03:17</pubDate>
    <guid>http://www.wpdfd.com/forums/wpdfd/markup/how_to_vertically_align/#p994</guid>
   </item>
   </channel>
</rss