To ensure proper formatting of the content within a <pre>
tag, you can apply a max-width and overflow property.
.container-full {
font-family: 'Open Sans', sans-serif !important;
background: #fff;
color: rgb(2, 2, 2);
box-sizing: border-box;
width: 100%;
}
.row {
margin-left: 0;
margin-right: 0;
}
.top-header {
position: relative;
width: 100%;
}
/* More CSS styles here */
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<div class="container-full">
<div class="top-header" style="border: 1px solid red;">
/* More HTML markup here */
</div>
For line breaks in the <pre>
tag, you can also use:
white-space: pre-wrap; /* css-3 */
word-wrap: break-word; /* Internet Explorer 5.5+ */
.container-full {
font-family: 'Open Sans', sans-serif !important;
background: #fff;
color: rgb(2, 2, 2);
box-sizing: border-box;
width: 100%;
}
.row {
margin-left: 0;
margin-right: 0;
}
.top-header {
position: relative;
width: 100%;
}
/* Additional CSS for styling */
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<div class="container-full">
<div class="top-header" style="border: 1px solid red;">
/* Embedded HTML content */
</div>