I have an HR
element inside a 50%'s width div
container and I would like the HR
to extend to all the width of the screen ignoring it's parent width.
I know I can solve this by applying the HR
outside the container and use relative position to make it move where it has to be... but is there another solution?
I tried setting the width more than 100%
, lets say 300%
and let it overflow, but it will only enlarge to the right (and show an ugly scrollbar).
Browser treat HR
as a block but I was unable to center it with margin: 0 auto
(after resizing it as above).
Is there a way to accomplish this without relative positioning?