Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

background image css no tables.

Status
Not open for further replies.

adamroof

Programmer
Nov 5, 2003
1,107
US
heres my doctype and this works, but like many others in this forum, have been working to go tableless.
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[URL unfurl="true"]http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">[/URL]
<html xmlns="[URL unfurl="true"]http://www.w3.org/1999/xhtml">[/URL]

<td background="img/fill/tdFill.gif">
bla
</td>
how can i apply that fill to a div or span or ??

this does not show up for me
Code:
.hyperFillB
{
    background: url(img/fill/tdFill.gif) repeat-x top left;    
}
<span class="hyperFillB">
    <span id="custLogin" runat="server">Already A Customer? Login Here...</span>
    <asp:Label ID="lblCred" runat="server"></asp:Label>
</span>
 
That should work, save for putting it on a span element. Span is an inline element and is only wrapping the text it holds. You should put it at least in a div or even better in a semantically correct element. But without knowing what you're doing, seeing only server side code, I cannot advise you on anything other than a div.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top