jaylow Posted May 23, 2011 Share Posted May 23, 2011 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 More sharing options...
jaylow Posted May 23, 2011 Author Share Posted May 23, 2011 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 More sharing options...
jeffman Posted May 23, 2011 Share Posted May 23, 2011 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 More sharing options...
jaylow Posted May 23, 2011 Author Share Posted May 23, 2011 thanks it works perfect now ! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.