Jump to content

max-width


funbinod

Recommended Posts

max-width not working on the following.

<table style="padding:0; border:none; border-spacing:0; max-width:98%; min-width:1000px; margin-left:auto; margin-right:auto;">

the table width is fixed on min-width though the screen resolution or width is more than that. shouldn't it be set on max-width if the page width is more than min-width????

Link to comment
Share on other sites

Tables are only as wide as the content within them. You could specify the width to be 98%, rather than max-width. The max-width property only tells the table the width that it cannot exceed, but it doesn't force the table to be that wide.

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...