Toon posts:

[HTML/CSS]Margin/Padding Probleem

Pagina: 1
Acties:

Verwijderd

Topicstarter
Als je de volgende url in Mozilla of Firebird bekijkt zal je opvallen dat er een lege spatie naast News is

http://www.freex-tech.com/sub/Design/1/

Hoe los ik op, ik heb al geprobeerd margins beter in te stellen maar dit hielp niet (In IE ziet het er trouwens goed uit)

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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
body {
  /* Background */
  background-color: #D1D0C7;
  /* Padding */
  padding: 0px;
}
.buitenkant {
  /* Width */
  width: 100%;
  /* Background */
  background-color: #ffffff;
  /* Border */
  border-width: 0px;
  border-style: solid;
  border-bottom-width: 1px;
  border-top-width: 1px;
}
.partners {
  /* Font */
  text-align: right;
  font-size: 12px;
  /* Background */
  background-color: #F3F3F3;
  /* Border */
  border-width: 0px;
  border-bottom-width: 1px;
  border-style: solid;
  border-color: #C0C0C0;
  /* Padding */
  padding: 2px;
  padding-right: 10px;
}
.header img {
  /* Margin */
  margin: 15px;
}
.header a:link img, .header a:visited img, .header a:hover img, .header a.active img {
  /* Margin */
  margin: 2px;
  margin-right: 40px;
  /* Border */
  border-width: 0px;
}
.menu {
  /* Width */
  width: 100%;
  /* Border */
  border-width: 1px 0px 1px 0px;
  border-style: solid;
  border-color: #C0C0C0;
  /* Background */
  background-color: #F3F3F3;
  /* Font */
  text-align: right;
}
.menu ul {
  /* Margin */
  margin: 0px;
  /* Border */
  border-width: 0px;
  border-right-width: 1px;
  border-style: solid;
  border-color: #C0C0C0;
}
.menu ul li {
  /* Font */
  font-size: 14px;
  /* Other */
  display: inline;
  /* Border */
  border-color: #C0C0C0;
}
.menu ul li a:link, .menu ul li a:visited {
  /* Padding */
  padding-left: 15px;
  padding-right: 15px;
  /* Border */
  border-width: 0px;
  border-left-width: 1px;
  border-style: solid;
  border-color: #C0C0C0;
  /* Font */
  color: #5E1B13;
  
}
.menu ul li a:hover, .menu ul li a.active {
  /* Padding */
  padding-left: 15px;
  padding-right: 15px;
  /* Border */
  border-width: 0px;
  border-left-width: 1px;
  border-style: solid;
  border-color: #C0C0C0;
  /* Font */
  color: #A32E21;
}
.main {
  /* Margin */
  margin-left: 15px;
}
.main h1 {
  /* Margin */
  margin: 10px;
  margin-bottom: 5px;
  /* Font */
  font-size: 20px;
  color: #5E1B13;
}
.side {
  /* Float */
  float: right;
}
.side ul {
  /* Width */
  width: 250px;
  /* Border */
  border-width: 1px;
  border-style: solid;
  border-color: #C0C0C0;
  /* List */
  list-style-type: none;
  /* Margin */
  margin-top: 10px;
  margin-right : 10px;
}
.side ul li {
  /* Display */
  display: run-in;
}
.side ul li h1 {
  /* Font */
  font-size: 14px;
  font-weight: normal;
  color: #5E1B13;
  /* Margin */
  margin: 0px;
  /* Padding */
  padding: 2px;
  padding-left: 10px;
  /* Border */
  border-width: 0px;
  border-bottom-width: 1px;
  border-style: solid;
  border-color: #C0C0C0;
  /* Background */ 
  background-color: #F3F3F3;
}
.side ul li h3 {
  /* Font */
  font-size: 13px;
  font-weight: normal;
  /* Margin */
  margin: 2px;
}
.copyright {
  /* Font */
  text-align: right;
  font-size: 12px;
  /* Background */
  background-color: #F3F3F3;
  /* Border */
  border-width: 0px;
  border-top-width: 1px;
  border-style: solid;
  border-color: #C0C0C0;
  /* Padding */
  padding: 2px;
  padding-right: 10px;
}

  • Willem
  • Registratie: Februari 2001
  • Laatst online: 20:36
Comments in je code ok, maar dit is echt fantastisch zeg :D

Heb je al geprobeerd uit te zoeken waar het hem ongeveer zit, in plaats van maar gewoon de gehele CSS neer te kwakken? :)

Motor (of auto) onderhoud bijhouden


Verwijderd

Topicstarter
Hehe :) tja ik hou het "netjes" :9

Ik dacht het veilig te spelen en gewoon alles neer te "kwakken" >:)

[ Voor 15% gewijzigd door Verwijderd op 08-03-2004 17:12 ]


  • drm
  • Registratie: Februari 2001
  • Laatst online: 09-06-2025

drm

f0pc0dert

willem169:
Comments in je code ok, maar dit is echt fantastisch zeg :D
8)7
Heb je al geprobeerd uit te zoeken waar het hem ongeveer zit, in plaats van maar gewoon de gehele CSS neer te kwakken? :)
Dit kun je overigens doen door het vertrouwde CSS-debug-handigheidje: maak van elk verdacht element de border heel erg lelijk-truc

Music is the pleasure the human mind experiences from counting without being aware that it is counting
~ Gottfried Leibniz


Verwijderd

Topicstarter
Zijn ze dat nu al niet ? 8)7

maar zal proberen :)

Verwijderd

Topicstarter
Nope is precies bug :?

  • Blaise
  • Registratie: Juni 2001
  • Niet online
Waarom doe je trouwens een h1 IN de list? Het is de titel van die list, niet onderdeel van. Daarnaast is het nogal raar om daar een h1 te gebruiken omdat een h1 bedoeld is als hoofd-kop die het onderwerp van de pagina aangeeft.

Verwijderd

Topicstarter
Dont come to me with problems, come to me with solutions! :/

Verwijderd


  • drm
  • Registratie: Februari 2001
  • Laatst online: 09-06-2025

drm

f0pc0dert

weet je wel zeker dat je de padding op het ul element al geprobeerd had :?

Zullen we het dan nu over de problems gaan hebben? :+

Music is the pleasure the human mind experiences from counting without being aware that it is counting
~ Gottfried Leibniz


Verwijderd

Topicstarter
ik heb het zojuist geprobeerd. Helpt niet echt! B)

Verwijderd

Verwijderd schreef op 08 maart 2004 @ 18:51:
ik heb het zojuist geprobeerd. Helpt niet echt! B)
Ook al gelezen?

  • drm
  • Registratie: Februari 2001
  • Laatst online: 09-06-2025

drm

f0pc0dert

Kidkiller:
ik heb het zojuist geprobeerd. Helpt niet echt! B)
Dan ben ik er toch vrij zeker van dat je dat niet goed geprobeerd hebt, want hier werkt het prima, zowel in Firefox als het (toch al wat) verouderde Mozilla 1.3.

Laat overigens onverlet dat het niet onhandig is je even te verdiepen in de linkjes die Anne aangeeft.

Music is the pleasure the human mind experiences from counting without being aware that it is counting
~ Gottfried Leibniz


Verwijderd

Topicstarter
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
.side ul {
  /* Width */
  width: 250px;
  /* Border */
  border-width: 1px;
  border-style: solid;
  border-color: #C0C0C0;
  /* List */
  list-style-type: none;
  /* Margin */
  margin-top: 10px;
  margin-right : 10px;
  padding-left: 0px;
}
zo bedoel je he ? zo werkt het niet
Pagina: 1