开发者

HTML/CSS Background of table question

开发者 https://www.devze.com 2023-02-11 03:52 出处:网络
I\'ve got a table#Content which has a background that extends beyond it\'s horizontal bounds. I\'ve sliced up the the backgrounds and made a table#Main, with td#Left, td#Content (which contains table#

I've got a table#Content which has a background that extends beyond it's horizontal bounds. I've sliced up the the backgrounds and made a table#Main, with td#Left, td#Content (which contains table#Content), and td#Right. I've set the backgrounds into the td#Left and td#Right, positioned correctly.

  • Question 1) I can't get the whole table#main to be centered on the page.
  • Question 2) The design is beyond 960px. But the main content is within 912px. The td#Left and td#Right are extra. Is there a way to keep the main content centered and if needed shrink the td#Left & td#right.

[update] I'm open to directions towards a div solution.

[update2] I'm going to rephrase the question. How do I make 3 columns fill the screen, with 2 outer columns be auto开发者_如何学C/% and have the middle one be 912px.


For the table and margin: 0 auto; to center it if that doesn't work put a surrounding div with that style in it along with a width....

The table background just add background:url(...) center center ;

I'd give you an example but I'm on my phone

0

精彩评论

暂无评论...
验证码 换一张
取 消