Jump to content

Sterching Title Bars


jaylow
 Share

Recommended Posts

Hi i am tryng to strech a title barbut it does not want to show the middle part

<td width="96" style="background-image: url("img/middle_banner.png"); background-repeat: repeat-x;"><strong>Title Text for Bar</strong</td>

i think it has something to do with the " from style=" and url(" they seem to interact or something anyway i could use some helpthanks

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"	"http://www.w3.org/TR/html4/strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><head><title> </title></head><body><table width="50%" border="0" align="center" cellpadding="0" cellspacing="0"><tr><td width="2%"><img src="img/logo.png" width="75" height="100"></td><td width="96" style="background-image: url("img/middle_banner.png"); background-repeat: repeat-x;"><strong>Title Text for Bar</strong</td> <td width="2%"><img src="img/recht_banner.png" width="75" height="100"></td></body></html>

Link to comment
Share on other sites

i just pouched it true the validator and it ha a few errors. but that is strange couse i got it our of the HTML XHTML and css bible (fifth Edition)..i hope it would not be invalid if it came out of a learning book....

Link to comment
Share on other sites

You are using quotation marks incorrectly:style="background-image: url("img/middle_banner.png")The style attribute requires opening and closing quotations, like thisstyle="somethng"If any properties inside the style attribute require quotation marks, they need to be different quotation marks (or escaped marks), and they need to be closed. You attribute tries to use the same marks, and those inner marks are not closed. Try this:style="background-image: url('img/middle_banner.png')"I hope you can see the difference.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...