Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Vertical alignment

Status
Not open for further replies.

BevRowe

Programmer
Joined
Mar 12, 2006
Messages
3
Location
GB
I simply want to align text vertically in the middle of a box using a div or a span but not a table.

I have tried various obvious things but nothing seems to work.
 
No, HTML won't do. I need this as part of a system that is entirely coded in Javascript.
 
If there's no HTML, then what are you going to style? How is your "box" created if not with HTML?

How are you going to style that box without using CSS properties?

Maybe I've misunderstood what you mean when you say "HTML won't do".

Dan



[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 

box using a div or a span but not a table.

yes i agree with Dan I am confused... what kind of "box" are you talking about?>
 
I've been thinking over what you said. You're right, it's an HTML problem. I actually create all my HTML with Js but I haven't been able to get the HTML right first so I must begin with that.

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top