Chevy Mark Sunderland

Chevy Mark Sunderland

  • NA
  • 188
  • 166.7k

Label and background image in css file

Dec 30 2012 6:02 AM
hi there, I hope your help.
I need in my aspx page replace this layout:

to change new layout with inserting new values of my code behind:
Label1.Text = Convert.ToString(dr["myDates"]);
TITLE = Convert.ToString(dr["TITLE"]);
But I have this output wrong because the image is canceled and the value of date is left and not supported in the initial image:

Can you help me?
css file:

.templatemo_product
{
float: left;
width: 455px;
height: 105px;
padding: 10px;
background: url(images/templatemo_products.jpg) no-repeat;
display:block
}

aspx file:

<div class="templatemo_product">
<asp:Label ID="Label1" runat="server">
<img src="images/templatemo_photo1.jpg" alt="templatemo.com"
width="117" height="76" />
<strong>Vivamus a massa</strong><br />
Donec iaculis felis id neque. Morbi nunc. Praesent varius egestas velit. Donec a
massa ut pede pulvinar vulputate. Nulla et augue. Sed eu nunc quis pede tristique
suscipit. Nam sit amet justo vel libero tincidunt dignissim.
</asp:Label>
<a href="#"><strong>READ MORE </strong></a>
</div>

code-behind:

Label1.Text = Convert.ToString(dr["myDates"]);
TITLE = Convert.ToString(dr["TITLE"]);

Answers (2)