Hi,
I am trying to define a <li> list item, within an <ul> unordered list, that has 3 “columns” in it. Each “column”, within the <li> list item, is defined in a <p> paragraph.
Each “column” has the same width, and the height of the “column” is dynamic e.g. it grows with the content.
The purpose is to achieve a simple 3 column layout that can be reused in each section that is marked as <div class=“referentie”>, and
this without using html-tables and not applying extra classes to these html objects.
The result is working nicely on Firefox V3.6 and the list item’s square is at the start of the item.
=> Unfortunately, in Internet Explorer V8 the same list item’s square or bullet is now appearing at the end instead of at the front of the list item.
Who can advise me on fixing this?
This is the (correct and expected ) result on Firefox v3.6.12:
This is the result on Internet Explorer V8:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>CSS tabular format - based on li and p</title>
<style type="text/css">
p {
margin-top:0;
}
.clear {
clear:both;
}
.referentie
{
border-color: #555555 #222222 #222222 #444444;
border-style: solid;
border-width: 1px;
margin-bottom: 10px;
}
.referentie .inner
{
padding: 5px;
}
.referentie img
{
float: right;
margin-bottom: 25px;
}
.referentie ul
{
list-style-type: square;
}
.referentie li
{
clear: both;
}
.referentie p
{
float: left;
width: 275px;
margin-bottom: 0.5em;
}
</style>
</head>
<body>
<div class="referentie">
<div class="inner">
<img src="http://www.infozine.be/wp-custom/images/logo-exagoon.png" alt="Exagoon via" />
<h2>
Exagoon</h2>
<div class="clear">
</div>
<ul>
<li><p>Brielen</p>
<p>Tisselt</p>
<p>Bepleistering, terrassen in tropisch hardhout , gevelbekleding</p>
</li>
<li><p>Brielen</p>
<p>Tisselt</p>
<p>Bepleistering, terrassen in tropisch hardhout , gevelbekleding</p>
</li>
</ul>
<div class="clear">
</div>
</div>
</div>
<div class="referentie">
<div class="inner">
<img src="http://www.infozine.be/wp-custom/images/logo-exagoon.png" alt="Exagoon via" />
<h2>
Exagoon</h2>
<div class="clear">
</div>
<ul>
<li>
<p>Brielen</p>
<p>Tisselt</p>
<p>Bepleistering, terrassen in tropisch hardhout , gevelbekleding</p>
</li>
<li>
<p>Brielen</p>
<p>Tisselt</p>
<p>Bepleistering, terrassen in tropisch hardhout , gevelbekleding</p>
</li>
</ul>
<div class="clear">
</div>
</div>
</div>
</body>
</html>
Thanks!