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
https://forums.phpfreaks.com/topic/113414-newbie-needs-help/
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
https://forums.phpfreaks.com/topic/113414-newbie-needs-help/#findComment-582756
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.