Maccabee

Comment history with fixtatik

Comments

Displaying 1 - 4 of 4 comments

Unfortunately, no. You can use it for lining image or span (if they're set to display:inline-block;) elements, or for adjusting the text in table cells. You can do things like instead of to align text of the table cell to the middle. It's really just switching from the old ways of the web to the new, easier ways, so if you ever want to change style, you can do it by simply editing your style sheet instead of every page.

Your problem wasn't a positioning problem; it was alignment. To align a page, you still have to use positioning.

Posted by fixtatik on Feb 1, 09 5:54 pm

Could you use that to center websites or divs?
Cause right now i center my websites using margin-right:auto;
margin-lef t:auto;

and for divs i use left:50%

Could i use align horizontally to center divs?

Posted by Maccabee on Feb 1, 09 5:06 pm

Yes, all browsers read "vertical-alig"n the same. It's really just for images; it's used to align a specific point of an element with another on a line of text.

You can use any of these:
baseline - this is the normal value.
bottom - aligns the bottom of an image with the bottom of a line.
middle - aligns the middle of an image with the middle of a line.
sub - treats an image like subscript.
super - treats an image like superscript.
text-bottom - aligns the bottom of an image with the lowest point of text (not necessarily the bottom of a line).
text-top - aligns the top of an image with the highest point of text (not necessarily the top of a line).
top - aligns the top of an image with the top of a line.

Posted by fixtatik on Feb 1, 09 4:50 pm

They closed the topic about the misbehaving navbar but i wanted to say I have never heard of vertical-align css thing? Are you sure all browsers like that code?
But if they do its better than margin cause i know chrome and opera often read margin differently.

Posted by Maccabee on Jan 31, 09 7:02 pm
View profile
  • Male