I’m making an editable and printable form in html, to generate documents like invoices and our terms and conditions. It’s for a little business of mine. I thought I had it all correct, but…
HTML:
<h1>Artikel 1</h1>
Spotlight Student gaat akkoord met de levering van diensten voor de klant in de volgende vorm:<br><br>
<ul>
<li>Gelegenheid: <span contenteditable>Evenement</span></li>
<li>Datum: <span contenteditable>Datum van evenement</span></li>
<li>Tijd: <span contenteditable>Tijd van aankomst</span></li>
<li>Locatie: <span contenteditable>Adres Locatie</span></li>
<li>Geleverde dienst: <span contenteditable>Overeengekomen dienst</span></li>
</ul>
CSS:
li { margin-left: 25px; list-style-type: square;}
When I was coding this part of the form, a list, it displayed perfectly when I opened it locally in Google Chrome: http://i77.photobucket.com/albums/j64/kippendrecht/listoffline_zpsabe5ff34.jpg
But when I had uploaded it to my webserver and viewed the page online, still in Google Chrome, all the mark up was gone: http://i77.photobucket.com/albums/j64/kippendrecht/listonline_zps5e3d8add.jpg
What went wrong?
There are only two possible causes for this problem:
The last one is more probable since the heading looks different, too.
Edit: Additionally, apply the
list-style-typeto the ul and make sure it has some padding iflist-style-positionis set tooutside(Check out this fiddle: http://jsfiddle.net/aye2y/). This may be done by a CSS reset you only use online.