Reporter: 'What do you think about western civilization?'
Gandhi: 'I think it would be a good idea.'
1
2
3
4
5
6
7
8
9
10
| Dit is de header <span style="position:relative;top:-10pt;"> <ul> <li>Item 1</li> <li>Item 2</li> <li>Item 3</li> <li>Item 4</li> </ul> </span> Dit is de footer |
(Doe het even met [ php ], omdat ik niets anders weet zo gauw?)
Verwijderd
1
2
3
4
5
| <p style="margin-bottom: 0px;">Eki-eki</p> <ul style="margin-top: 0px;"> <li>ni!</li> <li>ni!</li> </ul> |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
| .txt {
font-family: univers, arial, helvetica, sans-serif;
font-size: 12px;
text-align: left;
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
.list {
font-family: univers, arial, helvetica, sans-serif;
font-size: 12px;
list-style-position: outside;
list-style-type: disc;
text-align: left;
margin-left: -20px;
margin-top: -10px;
margin-right: 0px;
margin-bottom: 0px;
} |
Maar het effect is dat de eerst LI omhoog wordt gehaald. (?) Ik heb dus boven en onder het eerste 'argument' ongeveer 10px ruimte, de rest van de 'argumenten' is onveranderd. Wat doe ik verkeerd?
Reporter: 'What do you think about western civilization?'
Gandhi: 'I think it would be a good idea.'
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
| <style type="text/css">
.txt {
font-family: univers, arial, helvetica, sans-serif;
font-size: 12px;
text-align: left;
margin: 0px;
}
.list {
font-family: univers, arial, helvetica, sans-serif;
font-size: 12px;
list-style-position: outside;
list-style-type: disc;
text-align: left;
margin: -10px 0px 0px -20px;
}
</style> |
1
2
3
4
5
| <p class="txt">Eki-eki</p> <ul class="list"> <li>ni!</li> <li>ni!</li> </ul> |
wel een beetje een vage vormgeving
Trouwens, nu ik toch bezig ben.. Is de ruimte tussen de bullet en de tekst ook aan te passen in de stylesheet?
Dus:
Bla bla bla
- ___hier begint de tekst pas
- en niet hier
(de underscores even wegdenken uiteraard)
Reporter: 'What do you think about western civilization?'
Gandhi: 'I think it would be a good idea.'
1
2
3
4
5
| <p class="txt">Inspringen</p> <ul class="list"> <li> 2 spaties ingesprongen</li> <li> 3 spaties ingesprongen</li> </ul> |
Due to the world shortage of trained trumpet players the end of the world has to be postponed. God Incorporated would like to apologize for this interruption in service.
Beter nog:RiMaBo schreef op 18 February 2003 @ 15:28:
op die manier inspringen kan je doen door toe te voegen voor de tekst in de code. Je code komt er dan zo uit te zien:
code:
1 2 3 4 5 <p class="txt">Inspringen</p> <ul class="list"> <li> 2 spaties ingesprongen</li> <li> 3 spaties ingesprongen</li> </ul>
1
2
3
4
| li { padding-left: 10px; } |
Padding dus
If some cunt can fuck something up, that cunt will pick the worst possible time to fucking fuck it up, because that cunt’s a cunt.
Edit: Oops.. te laat
[ Voor 10% gewijzigd door Tinto op 18-02-2003 15:35 . Reden: Te laat.. ]
Reporter: 'What do you think about western civilization?'
Gandhi: 'I think it would be a good idea.'
dit is ranziiiiigRiMaBo schreef op 18 februari 2003 @ 15:28:
op die manier inspringen kan je doen door toe te voegen voor de tekst in de code. Je code komt er dan zo uit te zien:
code:
1 2 3 4 5 <p class="txt">Inspringen</p> <ul class="list"> <li> 2 spaties ingesprongen</li> <li> 3 spaties ingesprongen</li> </ul>
Verwijderd
Dit soort dingetjes zijn heel erg basic, ik wil mboots dan ook aanraden om op www.w3schools.com/css/default.asp en http://www.w3.org/TR/REC-CSS2/ te kijken: daar kun je de mogelijkheden van CSS nog eens doornemen. Ik zie dat je weet hoe je een stylesheet moet opzetten, dus dan is vooral die link naar het W3C erg interessant, aangezien daar de volledige lijst met properties te vinden is
Succes
Ik zou zeggen bekijk jullie eigen voorbeelden eens in NS7 en think along...