Thoughts on Coding

I

ijust_hangon

Guest
Original poster
I was fooling around with the idea of a blog, and was trying to get the text centered both vertically and horizontally inside a table, just to make it look kind of snazzy. It was then that I realized that while you can align your text horizontally (as simple as clicking the button for center align, while your text is highlighted) there is no option for a vertical align. I looked up ways to do this in BBCode but everyone says it's impossible. Also tried HTML, but while the tags disappeared as they should, it didn't change the text in any way. Has anyone else found a way to do this?

If not, I hear it's possible to change the CSS of a site to accommodate this option. Maybe (if it's not already a part of the coding) that could be added, in the future, for weirdos like me? I dunno, I just like to make things neat and tidy and pretty. Maybe it's just me who finds this frustrating.
 
What do you mean by vertical align?

If you're trying to align the text inside of tables you would use:


vAlign="top"
vAlign="bottom"
vAlign="middle"

Or for css:

style="vertical-align:middle"

Also, if you show me an example of the coding your using, I could tell you what might be going wrong for it not to work. Sometimes it's just the code getting out of order, and stuff like that.
 
To be honest, I'm a little over tired and not 100% sure what I'm doing. Not to mention I can't remember the order for coding a table. The look I'm going for is a table with one row and two columns, the first column with a vertical banner type image
The second column is the one that I want to use for text, with the middle vertical align. I've been wrestling with this issue for an embarrassing amount of time, which I blame completely on my being ill at the moment. >_>
 
HTML:
<table width=100% border=1><tr><td vAlign=top><img src=http://i74.photobucket.com/albums/i267/nightmarewriter/Meadow_Backdrop_iii_by_struckdumb-1-1.jpg></td><td vAlign=middle align=left>Testx text text text text text text text. Testx text text text text text text text. Testx text text text text text text text. Testx text text text text text text text. Testx text text text text text text text. Testx text text text text text text text. Testx text text text text text text text.</td></tr></table>

The above would make something like this? That's with vertical align being at "middle" for the second colum. If you wanted text at the top, you'd just put "top"

<table width=100% border=1><tr><td vAlign=top><img src=http://i74.photobucket.com/albums/i267/nightmarewriter/Meadow_Backdrop_iii_by_struckdumb-1-1.jpg></td><td vAlign=middle align=left>Testx text text text text text text text. Testx text text text text text text text. Testx text text text text text text text. Testx text text text text text text text. Testx text text text text text text text. Testx text text text text text text text. Testx text text text text text text text.</td></tr></table>
 
I think he means that the words themselves would be like the coding from the Matrix. Or, for a more 'real' example, Japanese writing.
 
No, that's what I was looking for. Thank you so much for the help, Diana. I really appreciate it.