Jump to content

table header color to stretch right through table


annyvz

Recommended Posts

Hello,

 

I have the following code:

 

<tr style="color:#ffffff; text-indent:20px; background-color: #003A62; ;margin-right: -600px;"> <th width="55%" align="left">Tickets - <strong>TO BE CLOSED</strong></th> <th width="15%" align="left">Project</th> <th width="15%" align="left">Result</th> <th width="15%" align="left">Inactive</th> </tr>

 

I need the table header color to stretch right through the table without the white at the sides (see image 1)

 

I have tried CSS to do this, but I think it has more to do with the HTML.

 

Please help?

 

Thank you.

post-175273-0-70048800-1408440587_thumb.jpg

Link to comment
Share on other sites

Could be to do with borders, cellspacing, cellpadding usually applied to table

html

<table cellspacing="0" cellpadding="0" border="0">

as even though you may not applied these, they will still have a default value.

 

css

table {border-spacing:0; /*set table cellspacing to 0;*/  border-spacing: expression(cellSpacing=0); /*for older IE versions*/ padding:0; /* set table cellpadding */ border: 0; /* set table border*/}
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
×
×
  • Create New...