Lagoas
Legacy Member
index.html
<body>
<div id = "top">
<img src = "images/HeaderTiles.jpg">
</div>
<div id="table-menu">
<table width = "750" height = "30">
<tr>
blablabla...
</tr>
</table>
</div>
</body>
Css
body {
margin-top : -1px;
}
#table-menu {
border-width: 1px;
border-style: solid;
border-color: #C6C4C4;
background-color: #E2DEDE ;
color : #5E83BA ;
font-family : Arial;
font-size : 10pt;
width : 750px;
margin-left : auto;
margin-right : auto;
position : absolute;
top : 119px;
}
#top {
height: 120px;
width : 750px;
margin-left : auto;
margin-right : auto;
}
=> ik probeer mijn tabel TEGEN mijn header te kleven,
dit lukt via
position : absolute;
top : 119px;
(omdat mijn header 120px hoog is)
maar nu negeert hij het centreren van mijn tabel
margin-left : auto;
margin-right : auto;
weet iemand wat ik fout doe?
ik wil gewoon no white space between header & table
<body>
<div id = "top">
<img src = "images/HeaderTiles.jpg">
</div>
<div id="table-menu">
<table width = "750" height = "30">
<tr>
blablabla...
</tr>
</table>
</div>
</body>
Css
body {
margin-top : -1px;
}
#table-menu {
border-width: 1px;
border-style: solid;
border-color: #C6C4C4;
background-color: #E2DEDE ;
color : #5E83BA ;
font-family : Arial;
font-size : 10pt;
width : 750px;
margin-left : auto;
margin-right : auto;
position : absolute;
top : 119px;
}
#top {
height: 120px;
width : 750px;
margin-left : auto;
margin-right : auto;
}
=> ik probeer mijn tabel TEGEN mijn header te kleven,
dit lukt via
position : absolute;
top : 119px;
(omdat mijn header 120px hoog is)
maar nu negeert hij het centreren van mijn tabel
margin-left : auto;
margin-right : auto;
weet iemand wat ik fout doe?
ik wil gewoon no white space between header & table


