Line disappears on float: right;

Hey there,
I’am trying place some elements on my page. This line should be aligned on the right side and this line should be aligned right next to the text below

I tried to use: float: left; on the lines but they are disappearing when I apply the css
thanks for your help!

Hi There,

Please try float: right; width: 300px; to the style field of line element.

Then add the clear: both to the text element below.

Hope it helps :slight_smile:

unfortunately this did not help

Hi There,

Sorry but we can not check your site, It is down at the moment (https://prnt.sc/h170uj) please check.

Thanks,

Sorry the site just isn’t published right now, please use the information I gave you in the secure note :slight_smile:

Hi There,

Thank you for the URL, did you follow Thai’s instruction properly? You should get this look if done correctly.

Another solution would, set this line’s left margin to auto.
You can do the opposite on the other line, set the right margin to auto.

Hope it helps,
Cheers!

thank you this worked on the line I set the margin on the left to auto. however this line did not behave as I hoped. How can I align the line and the text like this?
Thanks for your help!

Hello There,

Please add a left margin to the line and the text so that it will move towards your desired placement of the element.

Hope this helps.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.