I am dealing with a formatting issue where the first item in my paragraphs is not lining up properly. Here is an example of the problem:
Header
waspeen: 3304.07
ananas: 24
appel: 3962.0
Header
waspeen: 3304.07
ananas: 30
appel: 3962.0
Does anyone know how to align these elements properly so they look like this:
Header Header
waspeen: 3304.07 waspeen: 3304.07
ananas: 30 ananas: 24
appel: 3962.0 appel: 3962.0
This is the CSS code I am using:
#gallery-text-left {
/* Added */
width: 50%;
}
#gallery-paragraph-1 {
margin-right: 50px;
border-radius: 50px;
padding-left: 50px;
display: inline;
/* Added */
}
#gallery-paragraph-2 {
margin-right: 50px;
border-radius: 4px;
padding-left: 50px;
display: inline;
}
#gallery-text-right {
/* Added */
width: 50%;
}
And here is the HTML code:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<link rel="stylesheet" type="text/css" href="{% static 'main/css/custom-style.css' %}" />
<link rel="stylesheet" type="text/css" href="{% static 'main/css/bootstrap.css' %}" />
</head>
<body>
<div class="container center">
<div id="gallery-text">
<div id="gallery-text-left" style="float:left">
<p id="gallery-text-quote-left" style="font-family:Century Gothic; color:#006600"><b> Header</b></p>
<p id="gallery-paragraph-1" style="font-family:Georgia">
{% for key, value in content %}
<span {% if key in diff_set %} style="color: red;" {% endif %}>{{ key }}: {{value}}</span><br>
{% endfor %}
</p>
</div>
<div id="gallery-text-right" style="float:left">
<p id="gallery-text-quote-right" style="font-family:Century Gothic; color:#006600"><b>Header</b></p>
<p id="gallery-paragraph-2" style="font-family:Georgia">
{% for key, value in content_excel %}
<span {% if key in diff_set %} style="color: red;" {% endif %}>{{ key }}: {{value}}</span><br>
{% endfor %}
</p>
</div>
</div>
</div>
</body>
</html>