Setting Div Width with % doesn't work in Content Page

B

Brian Sabolik

I am trying to set the width of the content page in a master - content site.
If I set it to pixels it works fine, if I set it to a percentage, the
content page automatically grows much larger than the browser and I get
horizontal scroll bars at the bottom of the browser. The master page houses
a side bar set at 18% so this content window needs to be around 82% of the
screen size. The div houses a gridview which gets populated and should use
the overflow feature of the div. I don't want to use the pixels because of
different browser resolutions and resizing issues.

Any ideas?

TIA,
Brian Sabolik

This works...
<div id="DivGrid"
style="VERTICAL-ALIGN:top;OVERFLOW:scroll;width:800px;HEIGHT:175px;position:relative"
onscroll="MakeItScroll1_ScrollMe();">
This doesn't....
<div id="DivGrid"
style="VERTICAL-ALIGN:top;OVERFLOW:scroll;width:100%;HEIGHT:175px;position:relative"
onscroll="MakeItScroll1_ScrollMe();">
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,901
Latest member
Noble71S45

Latest Threads

Top