Aaron Posted April 5, 2012 Report Share Posted April 5, 2012 I want a background to go across my whole header, but there are multiple th's. I noticed there's a thead, is there any way I can make an image in the thead? The height is set right for the image, but the width is gonna be 100% of the width of the header (it will change) Quote Link to comment Share on other sites More sharing options...
Moderators Kyle Posted April 6, 2012 Moderators Report Share Posted April 6, 2012 I gotta say, the site's looking good so far. But I'm not sure excatly what you are trying to do. Are you trying to change the background in your header area? Like where? Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted April 6, 2012 Administrators Report Share Posted April 6, 2012 Use colspan to span all the columns you want it to cover in the table. <th colspan="HOWMANY"><img src="my image link" alt="TEXT DESCRIPTION" /></th> or if you are doing it in CSS assign a class to it and use the background function <th class="background" colspan="HOWMANY"><th> css th.background { background: #000; height: 100px; etc.... } Quote Link to comment Share on other sites More sharing options...
Aaron Posted April 6, 2012 Author Report Share Posted April 6, 2012 That shifts all the other <th>'s over. I need it specifically for my pilot list. See it at: http://www.canforce.org/index.php/pilots Quote Link to comment Share on other sites More sharing options...
Strider Posted April 6, 2012 Report Share Posted April 6, 2012 simpilot, that will just repeat the image accross all <th>'s. You can only really put a solid color as a bg in a certain area of a table. Unless you create an image that is the exact width of your table, and align it with the top of the table, and make the bottom part of the image the same color as the bg of the page, or what ever is the color of the bg of the table. You would have to set that to the background of the entire table, not just the <th>'s Quote Link to comment Share on other sites More sharing options...
Aaron Posted April 6, 2012 Author Report Share Posted April 6, 2012 Ah, that sucks just a bit... I guest for the ones with multiple th's I'll just put it a background Quote Link to comment Share on other sites More sharing options...
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.