Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

align images to right in a div

i have something like:

<div id="read_more_right">
    <a href="1"><img src='1'></a>
    <a href="1"><img src='1'></a>
    <a href="1"><img src='1'></a>
</div>

i want to align all those images to the right in a div

I use this

#read_more_right div
{
  align: right;
}

but it doesn't work. How can I allign this to the right?

like image 460
Ryan Avatar asked Nov 28 '22 17:11

Ryan


2 Answers

You could use:

#read_more_right a{
    float:right;
    clear:right;
}

http://jsfiddle.net/pE47J/

like image 33
Galled Avatar answered Dec 01 '22 06:12

Galled


It's text-align: right; instead of only align

like image 136
NCode Avatar answered Dec 01 '22 06:12

NCode