SHAD Posted October 1, 2009 Posted October 1, 2009 how would i add a background image to this table instead of a background color echo '<table width=100%><tr align=center bgcolor=firebrick><td align=center><font color=white>Profile</td></tr><tr bgcolor=white></table>'; Quote
Curt Posted October 1, 2009 Posted October 1, 2009 lol...no offence to you but a simple google search would have gave you this answer... <table background='imagelocation'> Quote
mdshare Posted October 1, 2009 Posted October 1, 2009 Not sure if the background attribute is deprecated or not , didn't checked while posting this so if it's a deprecated attribute you can also use CSS for this [css]<STYLE TYPE="text/css"> <!-- .myimage, .myimage TD, .myimage TH { background-image: url('myimage.jpg'); background-color:#0000FF; color:#FFFFFF; font-family: sans-serif; font-weight:600; } --> </STYLE>[/css] <TABLE CLASS="myimage"> This would also solve the issue of text not showing up clearly in a table using background, in this example I used white as text color and background color blue More info at http://www.w3.org/TR/CSS2/tables.html#table-layers Quote
virtualshogun Posted October 4, 2009 Posted October 4, 2009 print " <style type='text/css'> <!-- body {background-image:url('2.jpg')} background-repeat:no-repeat; //--> </style> </script>"; use the repeat / no repeat to choose weither or not is shows more then once if you have a pic too small for the page it will try to repeat, Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.