0

So I have an <aside> with position: relative within a <main>.

I can position the <aside> just fine using left: 25px; or top: 25px; or bottom: 25px; but when I use right: 25px... no dice. It just sits there on the left side.

What am I missing?

I simply want the right hand side of the <aside> to be 25px from the right hand side of the <main>.

My code

The result

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
zetter
  • 5
  • 2
  • Possible duplicate of [position relative and right property](https://stackoverflow.com/questions/12919073/position-relative-and-right-property) – Rickard Elimää Sep 30 '19 at 09:20

1 Answers1

0

Is this what you are wanting to do?

http://www.w3schools.com/cssref/tryit.asp?filename=trycss_position_right

Bryan Miller
  • 3,262
  • 4
  • 27
  • 51
  • Yes, it is, The problem is that I need the – zetter Nov 13 '15 at 01:10
  • Just make sure to "clear" anything below that you don't want to float next to the aside: http://jsfiddle.net/gratiafide/2aefptof/5/ – Bryan Miller Nov 13 '15 at 01:25