r/csshelp • • Jul 28 '18

Text wrapping around other text??

Basically doing an assignment using only text (so no pictures) to display a phrase in a nice way. I'm doing "That which doesn't kill me gives me XP", and I wanted to have the "XP" bigger and the rest of the text wrapping around it. I'd like to offset it a bit, like in the picture shown, but that's less important.

Starting to thing it's not possible and I'll go in a different direction, but figure I'd ask first, to sate my own curiosity. Thanks for any help :)

https://imgur.com/a/REDhmlN

6 Upvotes

5 comments sorted by

1

u/[deleted] Jul 29 '18

Can you only use css? Put "xp" in a div and wrap the text around that

2

u/PerfectlyAverageNeck Jul 29 '18

I can use HTML. I've tried this, with floating the div right and so on but it doesn't do anything, unless I did it wrong somehow.

1

u/[deleted] Jul 29 '18

Ok what about tables. I've learnt to start with tables, cause everyone always ends up using tables :) the things that come to the top of my mind are tables, wrappers and line height

1

u/Zmodem Moderator Aug 02 '18

Here is a CodePen example. I believe this is what you were looking for according to your image example. Please let me know if you need any further help.

-1

u/[deleted] Jul 29 '18

Ay dude, here you go. https://imgur.com/a/be8zWSs