Ik heb de volgende html:
Ik wil dat de textarea en buttons tegen elkaar aan liggen (in Firefox) maar dit werkt alleen als ik de XHTML Strict doctype verwijder.
Wat doe ik fout?
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title></title>
<style>
.button
{
margin: 0px;
padding: 0px;
font-size: 10px;
border-width: 1px;
border-style: solid;
border-color: #ffaaaa;
border-top-color: #ffcccc;
background: #ffcccc;
}
.edit
{
margin: 0px;
padding: 0px;
background: #ffcccc;
font-family: Arial;
font-size: 12px;
border: none;
overflow: auto;
}
</style>
</head>
<body>
<textarea class="edit">Bullshit</textarea>
<br />
<button class="button">Save</button>
<button class="button">Cancel</button>
<br />
</body>
</html> |
Ik wil dat de textarea en buttons tegen elkaar aan liggen (in Firefox) maar dit werkt alleen als ik de XHTML Strict doctype verwijder.
Wat doe ik fout?
[ Voor 14% gewijzigd door André op 13-09-2005 13:04 ]