Ik heb in CSS (als CSS rookie) 5 horizontale balken gemaakt. Aan de linkerkant van deze balken wil ik een logo plaatsen. Het logo (een transparante PNG) moet alle 5 de balken overlappen. Dit laatste krijg ik niet voor elkaar.
Wat ik tot dusver heb:
Wat ik tot dusver heb:
Cascading Stylesheet:
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
| #logo { float: left; width: 100px; height: 300px; background:white; } #title1 { background:white; width:800px; margin-left: auto; margin-right: auto; } #title2 { background:#0032a6; width:800px; margin-left: auto; margin-right: auto; } #title3 { background:grey ; width:800px; height:2px; margin-left: auto; margin-right: auto; } #title4 { background:#0032a6; width:800px; margin-left: auto; margin-right: auto; } #title5 { background:white; width:800px; margin-left: auto; margin-right: auto; } |
HTML:
1
2
3
4
5
6
7
8
9
| <link href="css.css" type="text/css" rel="stylesheet" /> <body> <div id="logo">logo</div> <div id="title1">test1</div> <div id="title2">test2</div> <div id="title3">test3</div> <div id="title4">test4</div> <div id="title5">test5</div> </body> |