Hi Guys,
I'm trying to get a messaging app done and I need the CSS polished up. I understand CSS enough to hack my way through it, but for some reason I can't get the following done.
Here's what I'm trying to create. This will be placed within an existing div that is 550px wide.
I see 5 total divs that need to be created.
The containing div, which is the thick border around the entire image.
The profile pic div
the name div
the timestamp div
the message div
The containing div can't be height restricted.
The profile pic div, name div, and timestamp div need to stay at the top.
The message div will need to grow (height-wise)
div.view_message_block
{
width: 550px; (or 100% since the containing div is already set to 550px?)
margin: .5em .5em .5em .5em;
display: inline;
}
div.view_message_profile_pic
{
width: 75px;
display: inline;
float: left;
}
div.view_message_sender_name
{
width: 80%;
display: inline;
float: left;
}
div.view_message_date
{
width: 20%;
display: inline;
}
div.view_message_body
{
width: 80%;
display: inline;
}
--------------------------------------------------------
Any help or guidance will be appreciated! Don't want it done for me, but I'm not sure where to go from here.
I'm trying to get a messaging app done and I need the CSS polished up. I understand CSS enough to hack my way through it, but for some reason I can't get the following done.
Here's what I'm trying to create. This will be placed within an existing div that is 550px wide.
I see 5 total divs that need to be created.
The containing div, which is the thick border around the entire image.
The profile pic div
the name div
the timestamp div
the message div
The containing div can't be height restricted.
The profile pic div, name div, and timestamp div need to stay at the top.
The message div will need to grow (height-wise)
div.view_message_block
{
width: 550px; (or 100% since the containing div is already set to 550px?)
margin: .5em .5em .5em .5em;
display: inline;
}
div.view_message_profile_pic
{
width: 75px;
display: inline;
float: left;
}
div.view_message_sender_name
{
width: 80%;
display: inline;
float: left;
}
div.view_message_date
{
width: 20%;
display: inline;
}
div.view_message_body
{
width: 80%;
display: inline;
}
--------------------------------------------------------
Any help or guidance will be appreciated! Don't want it done for me, but I'm not sure where to go from here.
