Почему не так?
html, body {
height: 100%;
}
#containerInput {
background-image: url('../img/edit_bg.jpg');
height: 40%;
}
#containerControl {
background-image: url('../img/control_bg.jpg');
height: 60%;
}
Дает вам html и body (в этом порядке) высоту, а затем просто придаст вашим элементам высоту?
Работает для меня
Вы можете попробовать это с помощью popen следующим образом:
#include <stdio.h>
#define PATH_MAX 1000
int main( ) {
FILE *fp;
int status;
char path[PATH_MAX];
fp = popen("ls *", "r");
if (fp == NULL)
/* Handle error */;
while (fgets(path, PATH_MAX, fp) != NULL)
printf("%s", path);
status = pclose(fp);
if (status == -1) {
/* Error reported by pclose() */
printf("Error, reported");
} else {
/* Use macros described under wait() to inspect `status' in order
to determine success/failure of command executed by popen() */
printf("Done running");
}
return 0;
}
Вы найдете больше информации здесь .