Hallo tweakers.
MIjn site staat hier http://mastasidaz.woelmuis.nl
Ik heb een vraag over mijn css ik wil namelijk dat .pic kan groeien in de wijdte en ook altijd centreert. Nu heb ik het bijv. statisch gedaan met de plaatjes van de Opel Astra maar ik wil dat dynamisch.
Ook wil ik een current voor mijn menu creëren dus als je bijv. op Formula 1 klikt dat het dan blauw blijft.
Ik heb zelf al het een en ander geprobeerd maar het wil steeds niet lukken. Hopelijk hebben jullie een idee hoe ik dit kan realiseren.
CSS:
Index.html:
MIjn site staat hier http://mastasidaz.woelmuis.nl
Ik heb een vraag over mijn css ik wil namelijk dat .pic kan groeien in de wijdte en ook altijd centreert. Nu heb ik het bijv. statisch gedaan met de plaatjes van de Opel Astra maar ik wil dat dynamisch.
Ook wil ik een current voor mijn menu creëren dus als je bijv. op Formula 1 klikt dat het dan blauw blijft.
Ik heb zelf al het een en ander geprobeerd maar het wil steeds niet lukken. Hopelijk hebben jullie een idee hoe ik dit kan realiseren.
CSS:
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
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
| body { background:url(../img/bg.gif); } #maincontainer{ margin: 0 auto 0 auto; width: 800px; text-align: left; } #banner { height: 163px; width: 800px; border: 1px solid black; background:url(../img/banner.png); } #container { margin-top: 10px; width: 800px; border: 1px solid black; float: left; background:url(../img/bg.png); } #content { width: 560px; float: right; border-left: 1px solid grey; border-right: 1px solid grey; margin-right: 10px; margin-right: 10px; margin-bottom: 10px; margin-left: 10px; margin-top: 10px; } #adsense1 { height: 90px; width: 728px; border: 1px solid black; background: url(../img/adsense1.gif); margin-left: auto; margin-right: auto; margin-top: 10px; margin-bottom: none; } .news { width: 540px; margin-left: 10px; border-bottom: 1px dashed grey; margin-bottom: 10px; } .video { width: 400px; height: 300; margin-left: auto; margin-right: auto; } .pic { width: 465px; margin: auto; } #menu { width: 200px; margin: 10px; } #menu li a { height: 32px; voice-family: "\"}\""; voice-family: inherit; height: 24px; text-decoration: none; } #menu li a:link, #menu li a:visited { color: #333; display: block; background: url(../img/menu14.gif); padding: 8px 0 0 10px; } #menu li a:hover { color: #FFF; background: url(../img/menu14.gif) 0 -32px; padding: 8px 0 0 10px; } ul { list-style: none; margin: 0; padding: 0; } img { border: none; } h2 { font-family: Georgia, "Times New Roman", Times, serif; text-align: center; } p { font-family: Tahoma, "Times New Roman", Times, serif; font-size: 12px; } p.post { font-family: Tahoma, "Times New Roman", Times, serif; font-size: 9px; color: grey; } |
Index.html:
HTML:
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html lang="eng"> <head> <title>Racing-League.com - Your info source for Formula 1, A1GP, IRL, GP2 and DTM</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link rel="stylesheet" href="css/style.css" type="text/css" /> <link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" /> <script type="text/javascript" src="js/prototype.js"></script> <script type="text/javascript" src="js/scriptaculous.js?load=effects,builder"></script> <script type="text/javascript" src="js/lightbox.js"></script> <script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script> </head> <body> <div id="maincontainer"> <div id="banner"> </div> <div id="adsense1"> </div> <div id="container"> <div id="content"> <div class="news"> <h2>New Opel Astra departed</h2> <div class="pic"> <a href="images/opelastra1.jpg" rel="lightbox[opelastra]" title="New Opel Astra"><img src="thumb/opelastra1.jpg" alt=""></a> <a href="images/opelastra2.jpg" rel="lightbox[opelastra]" title="New Opel Astra"><img src="thumb/opelastra2.jpg" alt=""></a> <a href="images/opelastra3.jpg" rel="lightbox[opelastra]" title="New Opel Astra"><img src="thumb/opelastra3.jpg" alt=""></a> </div> <p class="post">Thursday 7 May 2009.</p> </div> <div class="news"> <h2>Formula 1 Spain Free Practice 1 highlights</h2> <div class="video"><object type="application/x-shockwave-flash" width="400" height="300" data="http://www.dailymotion.com/swf/700Fkfr7ShJWH4RUx"><param name="movie" value="http://www.dailymotion.com/swf/700Fkfr7ShJWH4RUx" /></object></div> </div> <div class="news"> <h2>Alonso frightened from bad season start</h2> <p> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus elementum tellus vitae arcu pellentesque nec varius magna fringilla. Pellentesque ac tortor metus, et vulputate leo. Nullam consectetur porttitor elit, at facilisis risus tincidunt ac. Quisque nibh elit, imperdiet at lobortis non, ultricies in orci. Quisque a nulla sit amet enim interdum sollicitudin in gravida nisi. Vestibulum ornare ante eget purus ultricies accumsan. Nullam urna augue, faucibus id porta non, auctor nec diam. Nulla facilisi. Aenean dignissim dolor non nisl aliquam porta. Suspendisse consectetur rutrum dolor, nec mattis massa scelerisque vel. Nunc feugiat gravida risus dignissim mattis. Cras aliquam hendrerit massa, non eleifend dolor aliquet venenatis. Fusce tincidunt accumsan mollis. Duis a ante nec justo posuere tempor. Duis nisl eros, pellentesque sed mattis nec, malesuada a risus. </p> <p class="post">Thursday 7 May 2009.</p> </div> <div class="news"> <h2>Ferrari to use Kers in Barcelona</h2> <p>Ferrari has confirmed that it will continue to use KERS at this weekend's Spanish Grand Prix.</p> <p>The Maranello-based team was forced to remove KERS at the Chinese Grand Prix because it could not guarantee it would remain reliable.</p> <p>A statement from Ferrari said: "On the subject of KERS, this will be used again in Spain, after much work has been carried out on the reliability of the system since the last race.</p> <p>"KERS should be an advantage here for the F60, built to run with the energy system as an intrinsic part of its design, which means that, as was evident in back to back tests during practice in Bahrain, the F60 gains virtually no advantage in terms of car balance, when running without it. KERS can be a significant driver aid at the race start here, as the main straight is very long." </p> <p class="post">Thursday 7 May 2009.</p> </div> <div class="news"> <h2>Alonso frightened from bad season start</h2> <p> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus elementum tellus vitae arcu pellentesque nec varius magna fringilla. Pellentesque ac tortor metus, et vulputate leo. Nullam consectetur porttitor elit, at facilisis risus tincidunt ac. Quisque nibh elit, imperdiet at lobortis non, ultricies in orci. Quisque a nulla sit amet enim interdum sollicitudin in gravida nisi. Vestibulum ornare ante eget purus ultricies accumsan. Nullam urna augue, faucibus id porta non, auctor nec diam. Nulla facilisi. Aenean dignissim dolor non nisl aliquam porta. Suspendisse consectetur rutrum dolor, nec mattis massa scelerisque vel. Nunc feugiat gravida risus dignissim mattis. Cras aliquam hendrerit massa, non eleifend dolor aliquet venenatis. Fusce tincidunt accumsan mollis. Duis a ante nec justo posuere tempor. Duis nisl eros, pellentesque sed mattis nec, malesuada a risus. </p> <p class="post">Thursday 7 May 2009.</p> </div> <div class="news"> <h2>Ferrari to use Kers in Barcelona</h2> <p>Ferrari has confirmed that it will continue to use KERS at this weekend's Spanish Grand Prix.</p> <p>The Maranello-based team was forced to remove KERS at the Chinese Grand Prix because it could not guarantee it would remain reliable.</p> <p>A statement from Ferrari said: "On the subject of KERS, this will be used again in Spain, after much work has been carried out on the reliability of the system since the last race.</p> <p>"KERS should be an advantage here for the F60, built to run with the energy system as an intrinsic part of its design, which means that, as was evident in back to back tests during practice in Bahrain, the F60 gains virtually no advantage in terms of car balance, when running without it. KERS can be a significant driver aid at the race start here, as the main straight is very long." </p> <p class="post">Thursday 7 May 2009. Category: Formula 1</p> </div> </div> <div id="menu"> <ul> <li><a href="index.html" title="Link1">Home</a></li> <li><a href="formula1.html" title="Link 1">Formula 1</a></li> <li><a href="indyracingleague.html" title="Link 1">Indy Racing League</a></li> <li><a href="carnews.html" title="Link 2">General Car News</a></li> <li><a href="sendnews.php" title="Link 5">Send News In</a></li> <li><a href="#5" title="Link 5">Forum</a></li> <li><a href="contact.php" title="Link 5">Contact</a></li> </ul> </div> </div> </div> </body> </html> |