Align multiple numbers within row - html

I am using bootstrap to try to create the following layout:
Find below my minimum example:
.curr {
font-size: 12px;
font-weight: 700;
letter-spacing: .5px;
}
.price {
-webkit-tap-highlight-color: transparent;
font-family: Trebuchet MS, roboto, ubuntu, sans-serif;
-webkit-font-smoothing: antialiased;
color: #131722;
white-space: nowrap;
display: inline-block;
font-size: 36px;
line-height: 1;
height: 34px;
font-weight: 700;
}
.diff {
-webkit-tap-highlight-color: transparent;
font-family: Trebuchet MS, roboto, ubuntu, sans-serif;
-webkit-font-smoothing: antialiased;
white-space: nowrap;
font-size: 18px;
color: #26a69a;
display: inline-block;
}
.markettime {
-webkit-tap-highlight-color: transparent;
font-family: Trebuchet MS, roboto, ubuntu, sans-serif;
-webkit-font-smoothing: antialiased;
font-size: 11px;
line-height: 1;
letter-spacing: .4px;
text-transform: uppercase;
white-space: nowrap;
color: #37bc9b;
}
.markettime2 {
-webkit-tap-highlight-color: transparent;
font-family: Trebuchet MS, roboto, ubuntu, sans-serif;
-webkit-font-smoothing: antialiased;
font-size: 11px;
line-height: 1;
letter-spacing: .4px;
text-transform: uppercase;
color: #787b86;
white-space: nowrap;
}
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.4.0/js/bootstrap.bundle.js"></script>
<div class="row my-2">
<div class="col-lg-8">
<div class="card card-primary">
<div class="card-body p-2">
<div class="row">
<div>
<div>
<div class="row">
<div>
<div class="price">304.2<span class="">0</span></div>
</div>
<div>
<span class="curr"> USD</span>
</div>
<div>
<span class="diff">+3.57</span>
<span class="diff">(+1.19%)</span>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div>
<span class="markettime">Market Open</span>
<span class="markettime2">(May 07 13:19 UTC-4)</span>
</div>
</div>
</div>
</div>
</div>
</div>
As you can see the text looks quite similar, but does not align correctly.
Any suggestions why?

You have each of the parts stored in divs, which default to display: block. Block-items take up their entire row. One option would be to set those displays to inline:
.curr {
font-size: 12px;
font-weight: 700;
letter-spacing: .5px;
}
.price {
-webkit-tap-highlight-color: transparent;
font-family: Trebuchet MS, roboto, ubuntu, sans-serif;
-webkit-font-smoothing: antialiased;
color: #131722;
white-space: nowrap;
display: inline-block;
font-size: 36px;
line-height: 1;
height: 34px;
font-weight: 700;
}
.diff {
-webkit-tap-highlight-color: transparent;
font-family: Trebuchet MS, roboto, ubuntu, sans-serif;
-webkit-font-smoothing: antialiased;
white-space: nowrap;
font-size: 18px;
color: #26a69a;
display: inline-block;
}
.markettime {
-webkit-tap-highlight-color: transparent;
font-family: Trebuchet MS, roboto, ubuntu, sans-serif;
-webkit-font-smoothing: antialiased;
font-size: 11px;
line-height: 1;
letter-spacing: .4px;
text-transform: uppercase;
white-space: nowrap;
color: #37bc9b;
}
.markettime2 {
-webkit-tap-highlight-color: transparent;
font-family: Trebuchet MS, roboto, ubuntu, sans-serif;
-webkit-font-smoothing: antialiased;
font-size: 11px;
line-height: 1;
letter-spacing: .4px;
text-transform: uppercase;
color: #787b86;
white-space: nowrap;
}
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.4.0/js/bootstrap.bundle.js"></script>
<div class="row my-2">
<div class="col-lg-8">
<div class="card card-primary">
<div class="card-body p-2">
<div class="row">
<div>
<div>
<div class="row">
<div style="display: inline;">
<div class="price">304.2<span class="">0</span></div>
</div>
<div style="display: inline;">
<span class="curr"> USD</span>
</div>
<div style="display: inline;">
<span class="diff">+3.57</span>
<span class="diff">(+1.19%)</span>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div>
<span class="markettime">Market Open</span>
<span class="markettime2">(May 07 13:19 UTC-4)</span>
</div>
</div>
</div>
</div>
</div>
</div>
I do not recommend that you use inline styling like I've used, I just did a quick edit to show the difference when changing the display type.

All those empty <div>s create new block elements that create a new line and fill up all the horizontal space available.
I have cleaned up both the HTML and CSS code in here, but with only the HTML changes it will already work as expected:
body {
/* Moved all these common props up here: */
-webkit-tap-highlight-color: transparent;
-webkit-font-smoothing: antialiased;
font-family: Trebuchet MS, roboto, ubuntu, sans-serif;
text-transform: uppercase;
white-space: nowrap;
line-height: 1
}
.price {
font-size: 36px;
font-weight: 700;
color: #131722;
}
.curr {
font-size: 12px;
font-weight: 700;
letter-spacing: .5px;
}
.diff {
font-size: 18px;
color: #26a69a;
}
.marketTime__base {
font-size: 11px;
letter-spacing: .4px;
margin-top: 8px;
}
.marketTime__state {
color: #37bc9b;
}
.marketTime__datetime {
color: #787b86;
}
<div class="row">
<span class="price">304.2<span class="">0</span></span>
<span class="curr"> USD</span>
<span class="diff">+3.57</span>
<span class="diff">(+1.19%)</span>
</div>
<div class="marketTime__base">
<span class="marketTime__state">Market Open</span>
<span class="marketTime__datetime">(May 07 13:19 UTC-4)</span>
</div>
Alternatively, you could use display: inline or display: inline-block to style those <div>s differently, but I think that HTML code could be simplified a lot.

Related

How to make grid div responsive and change style of it in Html Css

I have this kind of grid on my web. I want it to make responsive for mobiles and tablets. I attached the screenshot of what I have now and What I want. Thanks in Advance!
When I check this on my mobile, this happens :(
How can I make it look like this
Here is my source code
.row {
display: flex;
flex-direction: row;
justify-content: center;
}
.box {
width: 20%;
height: auto;
margin-top: 12px;
background-color: rgba(0, 0, 0, 0.5);
align-items: center;
justify-content: center;
position: relative;
text-align: center;
margin: auto;
padding: 16px;
}
.box.big {
width: 40%;
margin-top: 24px;
}
<div class="row">
<div class="box">
<p style="font-family: 'Kanit', sans-serif; color: #ffffff; font-weight: 400; margin-top: 8px; font-size: 2.15vw; ">AIRFREIGHT</p>
<p style="font-family: 'Kanit', sans-serif; color: #ffffff; font-weight: 200; font-size: 1.2vw; margin-bottom: 8px;">CHINA & EU to CIS via GYD<br>CHARTERING IN CHINA<br>EU TO GYD & SCO</p>
</div>
<div class="box">
<p style="font-family: 'Kanit', sans-serif; color: #ffffff; font-weight: 400; margin-top: 8px; font-size: 2.15vw;">SEA FREIGHT</p>
<p style="font-family: 'Kanit', sans-serif; color: #ffffff; font-weight: 200; font-size: 1.2vw; margin-bottom: 8px;">SEA FREIGHT SERVICES VIA<br>POTI PORT, GE TO ASIA, EU<br>AND AMERICAS</p>
</div>
<div class="box">
<p style="font-family: 'Kanit', sans-serif; color: #ffffff; font-weight: 400; margin-top: 8px; font-size: 2.15vw;">ROAD FREIGHT
</p>
<p style="font-family: 'Kanit', sans-serif; color: #ffffff; font-weight: 200; font-size: 1.2vw; margin-bottom: 8px;">EU TO CIS VIA SOUTHERN<br>CORRIDOR<br>LTL SERVICES FROM EU</p>
</div>
<div class="box">
<p style="font-family: 'Kanit', sans-serif; color: #ffffff; font-weight: 400; margin-top: 8px; font-size: 2.15vw;">RAIL FREIGHT</p>
<p style="font-family: 'Kanit', sans-serif; color: #ffffff; font-weight: 200; font-size: 1.2vw; margin-bottom: 8px;">RAIL FREIGHT BETWEEN<br>AZE TO CIS AND POTI PORT<br>TERMINAL HANDLING IN AZ</p>
</div>
</div>
<div class="row">
<div class="box big">
<p style="font-family: 'Kanit', sans-serif; color: #ffffff; font-weight: 400; margin-top: 8px; font-size: 2.15vw;">VALUE ADDED SERVICES</p>
<p style="font-family: 'Kanit', sans-serif; color: #ffffff; font-weight: 200; font-size: 1.2vw; margin-bottom: 8px;">LTL SERVICES TO CIS<br>RORO / BREAKBULK SERVICES IN CASPIAN<br>VESSEL AGENCY SERVICES<br>CUSTOMS CLEARANCE AND TRANSIT FORMALITIES<br>APPLYING SPECIAL PERMITS & FEASIBILITY STUDY</p>
</div>
</div>
I experimented and got the answer. All i had to do is add some css code. This will help alot)
#media (max-width: 600px) {
.logo{
margin-top: 0;
height: 48px;
}
.row{
margin-top: 80px;
display: flex;
flex-direction: column;
}
.box {
margin:12px;
width: 90%;
padding: 16px;
}
.box.big{
width: 90%;
padding: 16px;
}
.boxTextHeader{
font-size: 5vw;
}
.boxTextDescription{
font-size: 3vw;
}
}
I've changed some html too by adding classes to make it more customizeable. This css is enough to get and idea.

How I can remove the space between the elements in html

How i can remove the space between strings "Text 1" and "its simple"? I need to create whitespace in only 10 pixel, i.e. via margin-top: 10px;. But when i use margin-top: 10px;, total space is 10 pixel + shift.
In my opinion, the white space are formed directly by the margin of the font. With what element can i change the size of this whitespace?
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
.title {
font-family: Roboto;
font-size: 41px;
font-weight: 900;
text-transform: uppercase;
color: #f9bf3b;
text-align: center;
}
.simple .title_big {
font-family: Roboto;
font-size: 80px;
font-weight: 900;
text-transform: uppercase;
color: #000000;
text-align: center;
}
<h1 class="title">Text 1</h1>
<div class="simple">
<h2 class="title_big">its simple!</h2>
<div class="line"></div>
</div>
<h2 class="title">Text 2</h2>
Set your line-height equal to 1 on the respective classes. This is equivalent to line-height: 100%;, meaning 100% of the font size for that element, not 100% of its height.
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
.title {
font-family: Roboto;
font-size: 41px;
font-weight: 900;
text-transform: uppercase;
color: #f9bf3b;
text-align: center;
}
.simple .title_big {
font-family: Roboto;
font-size: 80px;
font-weight: 900;
text-transform: uppercase;
color: #000000;
text-align: center;
}
h1.title,
h2.title_big {
line-height: 1;
}
<h1 class="title">Text 1</h1>
<div class="simple">
<h2 class="title_big">its simple!</h2>
<div class="line"></div>
</div>
<h2 class="title">Text 2</h2>
Is this what you happened to be looking for? I used a negative margin in the .simple .title_big class (-15px to be exact) to remove the margin that was in the text to add less whitespace then there was before. But still leaving you with some.
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
.title {
font-family: Roboto;
font-size: 41px;
font-weight: 900;
text-transform: uppercase;
color: #f9bf3b;
text-align: center;
}
.simple .title_big {
font-family: Roboto;
font-size: 80px;
font-weight: 900;
text-transform: uppercase;
color: #000000;
text-align: center;
margin: -15px 0;
}
<h1 class="title">Text 1</h1>
<div class="simple">
<h2 class="title_big">its simple!</h2>
<div class="line"></div>
</div>
<h2 class="title">Text 2</h2>

Display a list of dynamic data, 10 rows each column, with header repeated each time extra column is added

I have a dynamic data coming. I need to display them as a column, with 10 records in each row. I am able to display with 10 rows as expected. But I want the header to repeat each time an extra column is added. How can I achieve. I am using angular framework.
html code
<div class="section3BG" id="section3"
style="margin-top: 24.9px;margin-left: 18px;margin-bottom: 23.9px;margin-right: 27px;">
<div class="row" style="margin-left: 41px;padding-top: 23px;" *ngFor="let fac of facilities11">
<div class="col-md-2 col-lg-2" class="Facility-Name-Heading">
Facility Name
</div>
<div class="col-md-2 col-lg-2" class="Equipment" style="margin-left: 107px;">
Equipment
</div>
</div>
<div *ngFor="let facility of facilities">
<div class="Rectangle-2001">
<div class="row" style="margin-left: 21px;padding-top: 23px;">
<div class="col-md-2 col-lg-2" class="Facility-Name-1">
Facility Name 1
</div>
<div class="col-md-2 col-lg-2" class="number" style="margin-left: 90px;">
10
</div>
</div>
</div>
</div>
</div>
Css
.section3BG {
width: 1785px;
height: 825.1px;
border-radius: 20px;
box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.04);
background-color: #ffffff;
display: flex;
flex-flow: column wrap;
align-content: flex-start;
}
.Facility-Name-Heading {
opacity: 0.5;
font-family: Lato;
font-size: 18px;
font-weight: bold;
font-stretch: normal;
font-style: normal;
line-height: 1.22;
letter-spacing: 0.9px;
text-align: left;
color: #0d0d0d;
}
.Equipment {
//width: 94px;
//height: 22px;
opacity: 0.5;
font-family: Lato;
font-size: 18px;
font-weight: bold;
font-stretch: normal;
font-style: normal;
line-height: 1.22;
letter-spacing: 0.9px;
text-align: left;
color: #000000;
}
.Rectangle-2001 {
width: 374px;
height: 57px;
border-radius: 10px;
border: solid 1px #e9e9e9;
background-color: rgba(236, 236, 236, 0.22);
margin-left: 20px;
margin-top: 15px;
}
.Facility-Name-1 {
width: 134px;
height: 22px;
font-family: Lato;
font-size: 18px;
font-weight: 500;
font-stretch: normal;
font-style: normal;
line-height: 1.22;
letter-spacing: 0.9px;
text-align: left;
color: #487217;
}
.number{
width: 22px;
height: 22px;
font-family: Lato;
font-size: 18px;
font-weight: 500;
font-stretch: normal;
font-style: normal;
line-height: 1.22;
letter-spacing: 0.9px;
text-align: left;
color: #487217;
}
expected image
What I am able to achieve
I solved this issue by including the header within the foreach loop. Code is as below
<div *ngFor="let wareHouse of wareHouseList; let i = index">
<div class="row facilityNameHeading" *ngIf="i % 10 == 0">
<div class="col-md-2 col-lg-2" class="Facility-Name-Heading">
Facility Name
</div>
<div class="col-md-2 col-lg-2" class="Equipment">
Equipment
</div>
</div>
<div
class="Rectangle-2001"
(click)="navigateToDevicedashboard(wareHouse.id)"
>
<div class="row wareHouseName">
<div class="col-md-2 col-lg-2" class="Facility-Name-1">
{{ wareHouse.name }}
</div>
<div class="col-md-2 col-lg-2" class="number">
{{ wareHouse.noOfDevices }}
</div>
</div>
</div>
</div>
</div>```

textarea size getting smaller when width unit is % and working fine when used pixel

Jsfiddle link: https://jsfiddle.net/dhanu10896/ohb3xayn/11/
I have textarea and one instruction below it and i have to show that instruction below the right bottom end of textarea, and also text area is resizable so the instruction should adjust with it when the size of text area increased.
For this I enclosed textarea and instruction in one div and made it inline block, which will take width of textarea and aligned instruction to right side.
This is working when width is in pixel but when width is in % (percentage) it's not working.
code :
displayCell {
padding: 2px 0 3px 0;
border: 1px solid transparent;
}
.clearfix {
display: block;
}
html form, body form {
font-size: 14px;
line-height: 1.42857;
color: #32363a;
font-family: '72', -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;
}
.clearfix:after {
visibility: hidden;
display: block;
font-size: 0;
content: " ";
clear: both;
height: 0;
}
.displayInlineBlock, .inlineBlock {
display: inline-block;
}
html textarea, body textarea {
font-size: 14px;
font-family: '72', -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;
font-size: 1rem;
line-height: 1.42857;
font-weight: 400;
appearance: none;
-webkit-appearance: textfield;
-moz-appearance: textfield;
font-size: inherit;
-webkit-box-sizing: border-box;
box-sizing: border-box;
outline: 0;
border-style: solid;
border-width: 1px;
border-color: #89919a;
border-radius: 4px;
color: #32363a;
background-color: #fff;
-webkit-transition: border-color 125ms;
transition: border-color 125ms;
height: 36px;
height: var(--fd-forms-height);
padding-left: 12px;
padding-right: 12px;
width: 100%;
height: 72px;
padding-top: 12px;
}
.displayFlex {
display: flex;
}
html .textareaInstruction, body .textareaInstruction {
flex-grow: 1;
width: 0px;
text-align: right !important;
clear: both;
display: block;
font-size: .85714rem;
line-height: 1.33333;
font-weight: 400;
color: #51555a;
padding: 8px 0;
position: relative;
padding: 0;
}
.formElementInstruction {
color: #666666;
white-space: nowrap;
font-weight: normal;
}
.mr2px {
margin-right: 2px;
}
<html>
<body>
<form>
<h2>
to fix
</h2>
<div class="displayCell clearfix">
<div class="inlineBlock">
<textarea name="description" id="description" style="width:100%;height:100px;width:75%;"></textarea>
<div class="displayFlex">
<div class="formElementInstruction textareaInstruction">
<span class="mr2px" id="text_counter_description">1000</span>left</div>
</div>
</div>
</div>
<h2>
should look like (also try resizing texarea)
</h2>
<div class="displayCell clearfix">
<div class="inlineBlock">
<textarea name="description" id="description"
style="height:100px;width:500px;"></textarea>
<div class="displayFlex">
<div class="formElementInstruction textareaInstruction">
<span class="mr2px" id="text_counter_description">1000</span>left</div>
</div>
</div>
</div>
</form>
</body>
</html>
As on your textarea containing block you applied class inlineBlock which has set property display: inline-block div will not stratch to the full width and it will take the space only needed by textarea.
Also as you set style="width:100%;height:100px;width:75%;" on textarea it will be 75% of it's parent and here parent is the div with class inlineBlock so it will be 75% of this div not the 75% of device width.
Set width property only one time as the last one will override the first one.
If you don't want to set pixel on those textarea you can fix this by following approach:
.displayInlineBlock, .inlineBlock {
display: inline-block;
min-width: 500px;
}
<textarea name="description" id="description" style="width:100%;height:100px"></textarea>
Here is the fiddle link to view the working solution http://jsfiddle.net/aditi17/t2sybfr7/257/
give full width (eg:100vw) to the text area.
displayCell {
padding: 2px 0 3px 0;
border: 1px solid transparent;
}
.clearfix {
display: block;
}
html form, body form {
font-size: 14px;
line-height: 1.42857;
color: #32363a;
font-family: '72', -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;
}
.clearfix:after {
visibility: hidden;
display: block;
font-size: 0;
content: " ";
clear: both;
height: 0;
}
.displayInlineBlock, .inlineBlock {
display: inline-block;
}
html textarea, body textarea {
font-size: 14px;
font-family: '72', -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;
font-size: 1rem;
line-height: 1.42857;
font-weight: 400;
appearance: none;
-webkit-appearance: textfield;
-moz-appearance: textfield;
font-size: inherit;
-webkit-box-sizing: border-box;
box-sizing: border-box;
outline: 0;
border-style: solid;
border-width: 1px;
border-color: #89919a;
border-radius: 4px;
color: #32363a;
background-color: #fff;
-webkit-transition: border-color 125ms;
transition: border-color 125ms;
height: 36px;
height: var(--fd-forms-height);
padding-left: 12px;
padding-right: 12px;
width: 100%;
height: 72px;
padding-top: 12px;
}
.displayFlex {
display: flex;
}
html .textareaInstruction, body .textareaInstruction {
flex-grow: 1;
width: 0px;
text-align: right !important;
clear: both;
display: block;
font-size: .85714rem;
line-height: 1.33333;
font-weight: 400;
color: #51555a;
padding: 8px 0;
position: relative;
padding: 0;
}
.formElementInstruction {
color: #666666;
white-space: nowrap;
font-weight: normal;
}
.mr2px {
margin-right: 2px;
}
<html>
<body>
<form>
<h2>
to fix
</h2>
<div class="displayCell clearfix">
<div class="inlineBlock">
<textarea name="description" id="description" style="width:90vw;height:100px;"></textarea>
<div class="displayFlex">
<div class="formElementInstruction textareaInstruction">
<span class="mr2px" id="text_counter_description">1000</span>left</div>
</div>
</div>
</div>
</form>
</body>
</html>

My CSS doesn't work now that I used a <!--nextpage--> to split my page

This is what my CSS looks like on the page.
<!DOCTYPE html>
<html>
<head>
<style>
p.addresscenter {
background-color: none;
color: #333;
font-family: Lato, sans-serif;
font-size: 15px;
font-weight: 400;
font-style: normal;
line-height: 1.2;
margin: 0;
text-align: center;
white-space: pre;
}
p.endtagbold {
background-color: none;
color: #000000;
font-family: Lato, sans-serif;
font-size: 16px;
font-weight: 600;
font-style: normal;
line-height: 1.2;
margin: 0;
padding-top:16px;
}
p.hoursofoperationcenter {
background-color: none;
color: #333;
font-family: Lato, sans-serif;
font-size: 15px;
font-weight: 400;
font-style: normal;
line-height: 1.3;
margin: 0;
text-align: center;
white-space: pre;
}
p.infop {
background-color: none;
color: #OOOOOO;
font-family: Lato, sans-serif;
font-size: 16px;
font-weight: normal;
font-style: normal;
line-height: 1.5;
margin: 0;
padding-bottom:30px;
}
p.infostextbox {
background-color: none;
color: #OOOOOO;
font-family: Lato, sans-serif;
font-size: 16px;
font-weight: 550;
font-style: normal;
line-height: 1.5;
margin: 0;
padding-bottom:16px;
}
p.topmenu {
background-color: none;
font-family: Lato, sans-serif;
font-size: 15px;
font-weight: 500;
font-style: normal;
line-height: 1.4;
margin: 0;
text-align: center;
}
p.towncounty {
background-color: none;
color: #000000;
font-family: Lato, sans-serif;
font-size: 16px;
font-weight: 700;
font-style: italic;
line-height: 1.4;
margin: 0;
padding-top:16px;
}
</style>
</head>
<body>
<p class="topmenu">Text with id tags here.</p>
There is a set of columns here made with these tags
<div class="one-half first">Text</div>
<div class="one-half"> Text </div>
Then there is more text which is formulated by <p class=""></p> and then finally the <!--nextpage--> attribute occurs somewhere in the middle.
After the <!--nextpage--> tag I have more text with <p class=""></p>
The entire page ends with
</body>
</html>
On my other pages that are not split the css shows up fine. For whatever reason the css is not showing up on page 2 after the <!--nextpage--> . What do I have to do to make sure the css shows up before and after the <!--nextpage--> attribute.
I'm not sure if I understand everything well, but You should try to place <!--nextpage--> between the tags, and not inside of them.
For example:
<p>asdasd</p><!--nextpage--><p>asdasd</p>
Is ok, while:
<p>asdasd<!--nextpage-->asdasdasd</p>
is not ok. I hope this is the case, if not, please do not downvote and update You question with full code. Then I will try to update my answer.
Few more words. When You click next page, then the paragraph element has started on the page before. So on the actual page there is no paragraph start, but only: asdasdasd</p> which is causing problems, and is not a valid html.
Best regards.