Josh,
On Aug 29, 2005, at 3:07 PM, joshua hough wrote:
Can someone take a quick look at <http://lblesd.k12.or.us/test.php>
and <http://lblesd.k12.or.us/default.css> and help me to vertically
and horizontally center the date stamp near the upper-right corner?
It's outlined in red and currently says "August 29, 2005." This is a
<span> set within the <div> that contains the blue tabs. The <div> is
text-align: left and fills the width of its parent. I'd like to
center the date in the remaining 19px by 160px blue space to the right
of the last tab. It refuses to be 160px wide or 19px tall. Making it
a <div> pushes it below the tabs.
The date is in a span, which is an 'inline' element by default. It
will not obey the width or height box properties. The simplest
approach that comes to mind is use the text properties 'vertical-align:
top; line-height: 1.4' Tweak the line-height to alter the vertical
position.
hth
Roger,
Roger Roelofs
"Remember, if you’re headed in the wrong direction,
God allows U-turns!"
~Allison Gappa Bottke
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/