insanepaul
insanepaul

Reputation: 197

Div not resizing

Any idea why my web page content doesn't resize with the window?

I'm not using fixed position - just a table with width="100%". I've put it in a placeholder

Upvotes: 0

Views: 1125

Answers (3)

ggonsalv
ggonsalv

Reputation: 1262

Did you set the padding and margin of the body to 0

the inline CSS rule would be

<style>
  body{
    padding:0;
    margin:0;
  }
 </style>

or on the body tag

<body style='padding=0;margin=0' >   

Upvotes: -1

Duncan
Duncan

Reputation: 1798

The width is relative to its outer component. If the Placeholder is 500px the table take up 100% of the placeholder (500px) but no more.

Upvotes: 1

Warrantica
Warrantica

Reputation: 324

To make it resize with the window, your placeholder must have width:100% too.

Upvotes: 3

Related Questions