[RESOLVED] Problem with css - can't align the text
Hi
I'm kind of making my own chat. And it's so far tested and working.
So, I tried to give a pleasing look by adding some CSS. I have made a photoshop design and I'm implementing it as CSS and HTML.
The problem is, when a chat message is displayed, I want to display the avatar, followed by the date and time and username + msg.
But I'm having trouble with the username+msg part, which should in a line below the date and time. I have attached a image. The first msg row is what my current css renders. And what I want to achieve is shown in the second row(the red text)
If my post was helpful to you, then express your gratitude using Rate this Post.
And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video) My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet Social Group:VBForums - Developers from India
What I did is, used inline display for the date and then for chat_msg, I used a relative positioning and enclosed the msg in <p> tag. And have done some minor adjustments.
So far, it's working good in Google Chrome and Firefox.
I have attached the screenshot that I took while testing my chat. Since my exams starts after 4 days, none of my friends were online. So, I tried chatting myself.
Last edited by akhileshbc; Oct 28th, 2011 at 03:56 AM.
Reason: grammar mistake :D
If my post was helpful to you, then express your gratitude using Rate this Post.
And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video) My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet Social Group:VBForums - Developers from India
Re: [RESOLVED] Problem with css - can't align the text
Originally Posted by Justa Lol
Good luck with the exam! Hope you don't develop multi-personalities...
Thanks
If my post was helpful to you, then express your gratitude using Rate this Post.
And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video) My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet Social Group:VBForums - Developers from India
Re: [RESOLVED] Problem with css - can't align the text
Originally Posted by Aash
hey Akhilesh, best of luck for exams
Thanks
I have attached a screenshot of my chat application(with new look). Some of my friends tested it too and it seems going good.
I used PHP+mySql+jQuery.
If my post was helpful to you, then express your gratitude using Rate this Post.
And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video) My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet Social Group:VBForums - Developers from India
Re: [RESOLVED] Problem with css - can't align the text
Originally Posted by Aash
well done, it's awesome
Thanks
If my post was helpful to you, then express your gratitude using Rate this Post.
And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video) My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet Social Group:VBForums - Developers from India