codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  reset div height  Steve at 20:13 on Sunday, March 20, 2005
 

Hi,

I have a div with an Iframe inside it. When the user clicks on something else in the page I want to resize the div, smaller than the actual content of the div.

I have been using this code but it's not working - any ideas please?

document.getElementById('hints').style.height="60px";

I'm using IE6 if it makes any difference

<Added>

For any body who's interested the obvious answer I later figured out was...

document.getElementById('hints').style.clip="rect(0px 465px 60px 0px)"








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  Re: Shopping Cart -
•  Shopping cart
•  Altering Text Fields,
•  how to set up the project in vc ++ for the class with container member data?
•  new guy looking for simple stub app
•  in vc++ 5.0, get a lot of errors when compile, like, C2501: `string` : missing decl-specifiers etc.
•  Re: Zip/Unzip using Asp.Net without using any third party controls.
•  Jtable
•  Newbie Help!


Recent Articles
Communicating with the Database (Using ADO)
MagicGrid
Simple Thumbnail Browsing Solution
Type Anywhere
A Better Moustrap: FmtDate to replace FormatDateTime
ASP.NET Forum Source Code
Internal Search Engine
Javascript Growing Window
Simple date validation
Search engine friendly URLs using ASP.NET (C#.NET)


Site Survey
Help us serve you better. Take a five minute survey. Click here!

© Copyright codetoad.com 2001-2005