basic css help

Soldato
Joined
6 Feb 2004
Posts
20,862
Location
England
pic removed

pretty simple really, all i want to do is align the (show/hide) text to the right of each rectangle (well div). i've tried putting each bit of text in a span and using text-align but that didn't work. so how do i do it? :p
 
Last edited:
wrap each (show/hide) in a <span>

then set the container of the span to position:relative

then set the span to position:absolute, right:0

sorted :)
 
div is a block level item and so will appear on a new line, you can of course change the display to :inline but then you might aswell just use a span
 
Back
Top Bottom