hey guys was hoping you could help me out..
The task seems simple but I just cant figure it out...
i.e
<div style="text-align: center;background-color: rgb(150, 161, 255); " id="clock">
asd
</div>
I have a div with some text in it, and I want to center align that text and make the background such that it stays only behind the text.
doing display:inline makes the background stay only behind the text, but then the text is no longer center alligned.
tried all display properties of css but no luck diddnt work.
been googling for like 20 minutes now but I guess im not sure what to search for .
any help would be appreciated.thanks.