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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

div align="middle"

Status
Not open for further replies.

Rydel

Programmer
Feb 5, 2001
376
CZ
<div align=&quot;middle&quot;>

just curious how is it used? and how does it affect the displayed text inside this kind of div? is it deprecated? how to achieve the same with css definitions? thanx in advance.

---
---
 
I never heard of <div align=&quot;middle&quot;>.
You probably mixed it with <div align=&quot;center&quot;>.
There are only 4 values available for &quot;align&quot; attribute: left | right | center | justify.

align=&quot;center&quot; makes all the content of a block element (not only div) aligned to it's center, very simple.

It's CSS equivalent is text-align: property with the same 4 possible values.

About all other details: I think the best way to know it is to try itself, the best knowledge you can get comes from your experience.

good luck
 
Thanks. That's why I asked - I've never seen it before. I was looking through the project files and I saw a lot of those <div align=&quot;middle&quot;> which I found quite strange. So I suppose it's just some &quot;HTML expert&quot; that was working on the project before me :). ---
---
 
You are probably right about &quot;html expert&quot; :)
Just run autosearch/replace for <div align=&quot;center&quot;> and everything will be fine.

good luck.

P.S. regards from Dnepropetrovsk, btw
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top