2

Please refer to my website: http://ballsohard.co.uk/fishfilet/

Use the login section at the top of the page with any input you wish.

Click the inbox button (it's the yellow one)

I want the table (id: "inboxtab") to have a width which runs across the content area. I have tried to do this by setting the table width to 100% but it is having no effect.

#inboxtab   {
margin-left:20px;
margin-top:11px;
display: none;     (ignore this line)
width: 100%;
}

Any ideas?

1 Answer 1

4

I inspected your page with firebug, and found that the table has an inline style declaration: display: inline;:

<table id="inboxtab" style="display: inline;">
    <!-- This is your table -->
</table>

It's not possible to set the width property on inline elements. So, you have to remove this declaration.

Sign up to request clarification or add additional context in comments.

3 Comments

By default the table is hidden with display: none, clicking the button changes the display state. is there any way to set the table width still using this technique?
you're welcome... if it worked make my answer the Answer, will serve to others in the future
display:table; solved my problem, replace the inline-block. Thanks.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.