Finally getting off of my lazy butt and am going to attempt to do a very simple site tableless. Naturally I didn't get far before I ran into problems.I have a containing DIV id'd as "header". Within it is a span which is causing me problems. I'm trying to get a background image into the span (which works) but have that span be 390x90 instead of just the size of any text within it. If I type asdf with the SPAN I can see the bg image but it only is behind the text as the SPAN is not taking the size I have tried to dictate to it.
I hope that all made sense.Code:div#header span { background: url('images/bghead.jpg') repeat-x; height: 90px; width: 390px; }




I have a containing DIV id'd as "header". Within it is a span which is causing me problems. I'm trying to get a background image into the span (which works) but have that span be 390x90 instead of just the size of any text within it. If I type asdf with the SPAN I can see the bg image but it only is behind the text as the SPAN is not taking the size I have tried to dictate to it.

Bookmarks