Gegroet
Ik heb besloten mijn site op te bouwen uit divs en daarna ga ik ook voor een ander design. Daarvoor was hij opgebouwd uit tabellen wat een vrij verouderde techniek is. Nu lukt het al redelijk, maar ik zit toch met nog een aantal grote problemen
css:
html:
resultaat in firefox:

resultaat in internet explorer (7.0)

de problemen:
-de achtergrond achter de tekst boxes (met lorem ipsum....) moet normaal de kleur #0e0e0e hebben. Dat is niet het geval, het vreemde is dat als ik bij dreamweaver bij design kijk, dat wel zo is.
-in ie worden de links verkeerd weergegeven, elke volgende link staat verder naar beneden.
Ik ben nog een newbie op het gebied van html/css dus hopelijk is dit goed op te lossen.
Ik vraag dus jullie hulp daarbij. Comments op de rest van de code mogen uiteraard ook, ik kan geloven dat deze verre van ideaal is.
bvd
Ik heb besloten mijn site op te bouwen uit divs en daarna ga ik ook voor een ander design. Daarvoor was hij opgebouwd uit tabellen wat een vrij verouderde techniek is. Nu lukt het al redelijk, maar ik zit toch met nog een aantal grote problemen
css:
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
| body {
background: url(images/body-bg.jpg);
background-repeat: repeat;
background-attachment: fixed;
margin: Opx;
padding: 0px;
width: 100%;
height: 100%;
}
p {
font-family: tahoma;
font-size: 13px;
font-weight: bold;
color: #cccccc;
}
p.footer {
font-size: 10px;
color: #cccccc;
font-family: tahoma;
text-align: right;
font-weight: normal;
}
a {
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
#container {
position: absolute;
left: 80px;
top: 40px;
width: 642px;
}
#header {
width: 642px;
height: 128px;
}
#hnav {
width: 642px;
height: 40px;
margin-top: Opx;
background:url(images/hnavbg.jpg) repeat-x;
}
ul.nav {
float: left;
list-style-type: none;
padding: 0px;
margin: 0px;
width: 100%
}
a.nav {
float: left;
text-decoration: none;
padding-left: 50px;
width: 110px;
padding-top: 10px;
color: #cccccc;
font-weight: bold;
}
#content {
width: 642px;
background-color: #OeOeOe;
height: 100%;
}
#content .text {
background-color: #131313;
width: 576px;
margin-left: 18px;
margin-top: 30px;
padding-left: 15px;
padding-right: 15px;
padding-top: 5px;
padding-bottom: 5px;
}
#footer {
width: 627px;
background-color: #0e0e0e;
height: 32px;
padding-top: 1px;
padding-right: 15px;
margin-bottom: 20px;
}
.end {
clear: both;
} |
html:
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
| <!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Tom O - Amateur Design</title>
<link rel="stylesheet" type="text/css"
href="style.css">
<base target="_blank" />
</head>
<body>
<div id="container">
<div id="header">
<img src="images/header.jpg" alt="header" />
</div>
<div id="hnav">
<ul class="nav">
<li><a class="nav" href="link.html">About Me</a></li><li><a class="nav" href="link.html">Werken</a></li><li><a class="nav" href="link.html">Links</a></li><li><a class="nav" href="link.html">Contact Me</a></li>
</ul>
</div>
<div id="content">
<div class="text"><p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nullam imperdiet, lacus nec hendrerit suscipit, est felis ultrices diam, ac facilisis nunc turpis a turpis. Duis dictum varius nulla. Integer pulvinar libero in leo. Etiam nonummy tortor a odio mattis porta. Nulla feugiat. Sed vitae arcu ut augue tincidunt sollicitudin. Nullam et ante. Sed leo nunc, pulvinar id, tempor hendrerit, vehicula vel, velit. Sed a libero quis elit placerat bibendum. Morbi facilisis nunc a est. Cras porttitor lobortis erat. Integer pellentesque semper ipsum. Vestibulum posuere.</p>
</div>
<div class="text"><p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nullam imperdiet, lacus nec hendrerit suscipit, est felis ultrices diam, ac facilisis nunc turpis a turpis. Duis dictum varius nulla. Integer pulvinar libero in leo. Etiam nonummy tortor a odio mattis porta. Nulla feugiat. Sed vitae arcu ut augue tincidunt sollicitudin. Nullam et ante. Sed leo nunc, pulvinar id, tempor hendrerit, vehicula vel, velit. Sed a libero quis elit placerat bibendum. Morbi facilisis nunc a est. Cras porttitor lobortis erat. Integer pellentesque semper ipsum. Vestibulum posuere.</p>
</div>
<div id="footer"><p class="footer">© Tom op't Roodt 2007-2008</p></div>
<div class="end"></div>
</div>
</body>
</html> |
resultaat in firefox:

resultaat in internet explorer (7.0)

de problemen:
-de achtergrond achter de tekst boxes (met lorem ipsum....) moet normaal de kleur #0e0e0e hebben. Dat is niet het geval, het vreemde is dat als ik bij dreamweaver bij design kijk, dat wel zo is.
-in ie worden de links verkeerd weergegeven, elke volgende link staat verder naar beneden.
Ik ben nog een newbie op het gebied van html/css dus hopelijk is dit goed op te lossen.
Ik vraag dus jullie hulp daarbij. Comments op de rest van de code mogen uiteraard ook, ik kan geloven dat deze verre van ideaal is.
bvd