Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3
  1. #1
    Senior Member Maverick's Avatar
    Join Date
    Sep 2003
    Location
    Hoboken, NJ
    Posts
    351
    Member #
    3253
    Ok heres the problem;
    I am currently using an ASP powered news system on my site: http://www.wcdarchives.com, but since my site is vertically liquid, it has a spacer cell whose height keeps the design from breaking. So when my content extends past the height of that td (It is marked in my code) the design breaks.

    My question is:
    Can I use ASP to dynamically control the height of this cell, so that as the news posts are added, the height of the cell is increased in height proportionally.
    So like could I (I know very little ASP):

    declare a variable on in the news page
    Code:
    <%
        Dim height
         height = 400
     %>
    and then in the main loop the generates the individual news items do this:
    Code:
    <%
        height = height + 100
    %>
    Now how can I use this variable in the td tag so it passes its value to the height property?
    Could I:
    Code:
    <td height="<% height %>"></td>
    If you need to see the ASP itself I can send u all the files. Thanks alot!
    www.stevenspoker.com
    "You can't lose what you don't put in the middle, ... but you can't win much either." -Mike McDermott (Rounders)

  2.  

  3. #2
    Junior Member
    Join Date
    Jul 2003
    Posts
    10
    Member #
    2351
    Your theory is correct, just use the following slightly amended code
    Code:
    <td height="<%= height %>"></td>

  4. #3
    Senior Member Maverick's Avatar
    Join Date
    Sep 2003
    Location
    Hoboken, NJ
    Posts
    351
    Member #
    3253
    Thank you very much!
    www.stevenspoker.com
    "You can't lose what you don't put in the middle, ... but you can't win much either." -Mike McDermott (Rounders)


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 10:39 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com