Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change TD height according to Screen Resolution

Status
Not open for further replies.

nabbs

Programmer
Feb 21, 2001
18
GB
Hi there,

How can I change the <TD> height according to the screen resolution?

Thanx for your help!

Nabs
 
put a blank image in it like a 1px * 1px transparent image into the td cell. Give it a name like 'Sizer' or whatever

then in script you can say...

if (screen.width > 800) {document.Sizer.height=100;}
else {document.Sizer.height=5;}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top