Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
Thread: question about floating
11-26-2009, 03:23 AM #1
- Join Date
- Sep 2007
- Thanked 0 Times in 0 Posts
question about floating
i have a simple question, for example i have a link at the left edge of a div and link at the right edge of a div, a typical example would be at the footer.
what i normally do is take 2 divs and float them and set text-align: right for the 2nd div
now in the left and right div i add the links 1 in left and 1 in right, all this works fine
however because its a small thing i was wondering if there is a much more simple way to do this instead of taking 2 divs and floating them and for the next content clearing needs to be used.
i guess i can use 2 p tags however i have to set them to display: inline which might not be ideal i guess
take 2 a tags and give them separate class names and set one class to float: left and the other to float: right
is there a much better and efficient way to achieve this effect apart from the 2 methods i mentioned above and using 2 divs and floating them.