css thing
- Started
- Last post
- 10 Responses
- pixelman
Is it posible to align some text in the bottom of a div?
How?
- m0rt0
wrap a spen tag around the text and assign a class to it.
- pixelman0
spen tag?
do you mean span tag?
and what css do I use then?
- m0rt0
sorry - span tag.
so you'd have span class="blah"
then in the css
.blah {
text-align: whatever;
}
- sparker0
there is a 'vertical align' rule for block elements, unfortunately most browsers still don't implement it (either correctly or at all).
i believe it is a css2 rule. it may work in mozilla, ie 6+ and opera...
- m0rt0
think i misread the question - are you trying to vertically align text TO the bottom of a div or align some text that is at the bottom of a div?
- pixelman0
i'm trying to vertically align text TO the bottom of a div
- m0rt0
ahh sorry.
what sparker said.
- ********0
span-imator
- m0rt0
thats spantastic
- whiteSneaks0
i have little luck with vertical align.
try adjusting your top-margin.