Jump to content

newbie needs help


Buzz_Lightyear

Recommended Posts

Hi guys,

searched for this, didn't find anything that was relevant. I apologise if I overlooked it.

 

I have got a couple of questions:

1. I want to make a screen that is divided into a three divs. The header div and footer div are a fixed height. How can I make the middle div (the one that contains the actual contents) fit exactly between the two, regardless of screen size/ resolution of the user?

 

2. I want to make a scrollable data table with a fixed header. My solution is to put the header row in one div and then the actual data content in a second div with overflow:auto. In order for this to work, I have to make sure that the columns in each table are a fixed widths, otherwise the position of the categories in the header does not match the data in the table below. The problem is that the data are of variable length.

 

Any ideas?

Link to comment
Share on other sites

this is a CSS question, not a PHP one.

 

as for your first question. just use.

 

float: left;

 

on all 3 div's, and you put the div's in order in the actual page.

 

Like so:

<div id="left"></div>

<div id="content"></div>

<div id="right"></div>

 

as for your second question, you've lost me.

 

Regards ACE

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.