I need to get my pages to automatically adjust when I adjust the size of the window in my browser.

Please direct me to some tutorials that can help me or give me some hints for my how to effectively search this issue.

Thanks.

Recommended Answers

All 2 Replies

use the % attribute
E.G.

<body>
<div style="margin:auto; width:80%; background-color:#FF0000;">Hello</div>
</body>

I've made my website scalable by using percent instead of pixels.

Try this. Create a table. Make it 80% width and CENTER it on the page. So you can see it, fill the table with any color. view it in a browser and test it!

CommDave


I need to get my pages to automatically adjust when I adjust the size of the window in my browser.

Please direct me to some tutorials that can help me or give me some hints for my how to effectively search this issue.

Thanks.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.