This site has been taken over by the staff of www.ASPDeveloper.Net

Please report errors to suggest@aspdeveloper.net

BizTalk Utilities CV ,   Jobs ,   Code library  
 
Home Page
CSS
CSS <unicode-bidi> Property
CSS <top> Property
CSS <text-transform> Property
CSS <text-shadow> Property
CSS <text-indent> Property
CSS <text-decoration> Property
CSS <text-align> Property
CSS <table-layout> Property
CSS <quotes> Property
CSS <position> Property
CSS <padding> Property
CSS <padding-top> Property
CSS <padding-right> Property
CSS <padding-left> Property
CSS <padding-bottom> Property
CSS <overflow> Property
CSS <outline> Property
CSS <outline-width> Property
CSS <outline-style> Property
CSS <outline-color> Property
<< BizTalk
 

By :Mark Wilson
I am the creator of TopXML. I am available for international and local (Australia) contracts. I am a Solution Architect/Business Analyst. I have worked in IT in several countries (NZ, Australia, South Africa, UK) building and training teams for government and very large non-governmental organizations. I am ex-Microsoft Consulting Services. I wrote the first book on Microsoft XML published in 2000 called XML Programming with VB and ASP. Most recently I have been building tools for the SEO industry. Ask me for a 37 point SEO health-checkup for your website.
First posted :03/24/2008
Times viewed :8913

 

The vertical-align property (CSS Reference)

Introduction

The vertical-align property can be used to align text vertically. The following example demonstrates it.

Example

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"

     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<style type="text/css">

img.baseline { vertical-align: baseline; }

img.sub { vertical-align: sub; }

img.super { vertical-align: super; }

img.top { vertical-align: top; }

img.texttop { vertical-align: text-top; }

img.middle { vertical-align: middle; }

img.bottom { vertical-align: bottom; }

img.textbottom { vertical-align: text-bottom; }

</style>

<title>vertical-align Demonstration</title>

</head>

<body>

<h1><p>vertical-align demonstration</p></h1>

<b>vertical-align:baseline</b><img class="baseline" src="http://www.topxml.com/images/topxml_site.gif">

<b>vertical-align:sub</b><img class="sub" src="http://www.topxml.com/images/topxml_site.gif">

<b>vertical-align:super</b><img class="super" src="http://www.topxml.com/images/topxml_site.gif"><hr/>

<b>vertical-align:top</b><img class="top" src="http://www.topxml.com/images/topxml_site.gif">

<b>vertical-align:text-top</b><img class="texttop" src="http://www.topxml.com/images/topxml_site.gif">

<b>vertical-align:middle</b><img class="middle" src="http://www.topxml.com/images/topxml_site.gif"><hr/>

<b>vertical-align:bottom</b><img class="bottom" src="http://www.topxml.com/images/topxml_site.gif">

<b>vertical-align:textbottom</b><img class="textbottom" src="http://www.topxml.com/images/topxml_site.gif">

</body>

</html>

Output

Values

Name:

Description:

baseline

This is the default value and aligns the text to the baseline.

bottom

This value assigns the selected text with the lowest character on the same line.

length

The length value can be used to raise or lower the element. You can use one of the following values.

cm (centimeter)

em  (ems)

inch (inches)

mm (millimeters)

pc (picas)

px (pixels)

pt (points)

middle

The value is used to assign the text to the middle of the line.

sub

This value can be used to align the text as a subscript.

super

This value can be used to align the text as a superscript.

text-top

This value can be used to align the text with the tallest character on the top.

text-bottom

This value can be used to align the text with the tallest character on the bottom.

top

This value can be used to align the text with the tallest character on the same line.


Rate this article on a scale of 1 to 10

Your vote :  


 

Recent Jobs

Software Specialist, Linux - Finlan
Linux Core Technical Project Manage
Graphics designer at Tanzania. Expe
Integration Specialist Needed - Wor
Virtualization Server Infrastructur

View all Jobs (Add yours)
View all CV (Add yours)






    Email TopXML  

Front Page Daily Stuff TopXML Forum XML blogs XML Newsgroups BizTalk Biztalk Utilities Biztalk Utilities Tutorial B2B SAP XML Microsoft .NET Dotnet System XML Soapformatter SQLXML XMLserializer XQuery PHP PHP SimpleXML PHP XML Dom PHP XML RPC PHP XSLT Java Java Java XML Xalan Microsoft ASP ASP Schemas XML SQL Server XML XMLDom XSL XSL Tutorial XSLT Stylesheets General Javascript CSS XHTML WAP