I'm trying to line up some images within a container and can't seem to move them to make them central. This is how they currently look
I need to sit completely centrally and as is evident they are too far over to the right. I've tried lots of different things but can't get it right. I don't think I'm identifying the correct element.
Here's my code for the section on the photo
body {
margin: 0 auto 0 auto;
}
.container {
margin: auto;
max-width: 100%;
padding-left: 10px;
padding-right: 10px;
}
section#welcome {
height: 500px;
max-width: 100%;
}
section#welcome div.row {
height: 250px;
text-align: center;
position: relative;
}
#welcome h4 {
color: #000000;
font-size: 20px;
padding-top: 50px;
line-height: 5px;
}
section#welcome p {
font-size: 10px;
color: #bdc3c7;
position: absolute;
top: 50%;
left: 50%;
margin-right: -50%;
transform: translate(-50%, -50%)
}
/* centering an image within a column */
section#welcome .four {
position: relative;
display: inline-block;
bottom: 50px;
}
.four h3 {
position: absolute;
color: #FFF;
font-size: 20px;
margin: 0;
top: 50%;
left: 55%;
transform: translate(-50%, -50%);
}
section#welcome img {
display: block;
margin-bottom: 30px;
}
.images,
.four {
margin-right: 100px;
}
<section id="welcome">
<div class="container">
<div class="row">
<div class="twelve columns">
<h4>WELCOME TO FEATURE MEDIA</h4>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec vel ex nisl. Vestibulum vitae ultricies nisl. Praesent sodales, leo at pellentesque pellentesque, nunc erat dapibus nunc, ut congue libero lorem in orci. Suspendisse potenti. Quisque
facilisis mauris in vestibulum tempor. Suspendisse nec venenatis nisi. Phasellus sodales viverra ante quis efficitur. Pellentesque quis orci mi. Phasellus tempus, sapien ut luctus pellentesque, lacus risus accumsan lorem, in porta urna tellus
ac nibh. Nunc varius elit non diam vehicula aliquet. In eget urna id orci molestie pulvinar. Integer quis risus eu erat iaculis aliquet ut at eros. Etiam feugiat, ante vel molestie finibus, lacus urna pharetra leo, ut lobortis massa lectus quis
lorem. Vestibulum rhoncus turpis sagittis sapien vulputate sagittis. Nunc ac velit sollicitudin, consequat arcu ac, tincidunt risus.</p>
</div>
</div>
<hr class="hrindeximages">
<div class="images row">
<div class="four columns">
<div id="video">
<h3>VIDEO</h3>
<img src="images/VIDEO.jpg" alt="Video" style="width:300px;height:150px;">
</div>
</div>
<div class="four columns">
<div id="blog">
<h3>BLOG</h3>
<img src="images/blog.jpg" alt="blog" style="width:300px;height:150px;">
</div>
</div>
<div class="four columns">
<div id="faq">
<h3>FAQ</h3>
<img src="images/faq.jpg" alt="FAQ" style="width:300px;height:150px;">
</div>
</div>
</div>
</div>
</section>
The issue is caused by the margin-right: 100px attribute in the .images, .four class. If you get rid of that, your images should be centered:
.images, .four {
margin-right: 100px; // this line causes your images to offset from center
}
If you still want to have that space in between your images, you can add a margin-left field to balance it out:
.images, .four {
margin-right: 50px;
margin-left: 50px;
}
Use the padding attribute to manually center the images.
This may be help you.
.images { text-align: center; width: 100%; }
Like #yelq said, get rid of the margin-right:100px.
And to make it even more flexible, I would use the display: flex property and use the margin short notation allowing you to change the separation between pictures in only one place.
I would remove the class row from <div class="images row"> since it is not necessary.
In your css, change it to:
.images, .four {
display: flex;
justify-content: center;
flex-wrap: wrap;
margin: 0 50px;
/*margin-right: 100px;*/
}
I would also remove the styling on the img elements and add it to the css, again to allow easier development incase of changes.
.images img {
width:300px;
height:150px;
}
Related
I want to make responsive vertical menu with icons, that would shrink with transition (fade in to left) when screen width is to small. It would look like this - normal menu:
(icon1) Position1
(icon2) Position2
(icon3) Position3
and after shrinking window to let's say 800px it should fade into the left and look like this:
(icon1)
(icon2)
(icon3)
How do I make such thing using only HTML and CSS?
To make the element fade out when the page width gets smaller than 800px, for screensizes bigger than 800px, you need to give the list items a position of relative, set the list items left property to 0 and opacity to 1 so that they'll be displayed normally, and for screensizes smaller than 800px, change the left value to 100% and opacity to 0 so that it'll not be displayed anymore. next set its transition property for all screen sizes to 'all 1s ease-in-out' so the sliding will be smooth.
for the icon and the item to be displayed on the same line, just set the display of the li containing the item and the icon to flex and their align-items property to center so they'll be horizontally aligned.
#media only screen and (max-width: 800px) {
.hide-800 {
left: 100%;
opacity: 0;
}
}
#media only screen and (min-width: 800px) {
.hide-800 {
left: 5px;
opacity: 1;
}
}
.item {
position: relative;
transition: all 1s ease-in-out;
}
.row {
display: flex;
position: relative;
align-items: center;
}
.list {
overflow: hidden;
}
<body>
<ul class='list'>
<li class="row">
<span class="icon">icon1</span>
<div class="item hide-800">item1</div>
</li>
<li class="row">
<span class="icon">icon2</span>
<div class="item hide-800">item2</div>
</li>
<li class="row">
<span class="icon">icon3</span>
<div class="item hide-800">item3</div>
</li>
</ul>
</body>
*{
text-decoration: none;
}
body{
display: flex;
flex-direction: row;
flex-wrap: wrap;
}
img{
width: 2em;
}
.content{
float: left;
border: 5px solid red;
width: 80%;
margin-left:10px;
}
a{
display: flex;
flex-direction: row;
}
.navbar {
width: 15%;
overflow: auto;
}
.navbar a {
float: NONE;
display: block;;
padding: 12px;
color: rgb(125, 137, 240);
text-decoration: none;
font-size: 20px;
font-weight: bolder;
}
.navbar a:hover {
background-color: rgb(37, 179, 171);
border-top-right-radius: 20px;
border-bottom-right-radius: 20px;
}
#media only screen and (max-width: 1500px) {
.hide-800 {
display: none;
}
.content{
width: 85%;
}
.navbar {
width: 10%;
overflow: auto;
}
}
<body>
<div class="navbar">
<div class="image"> <img src="icons/home.png"> <div class="hide-800">DASHBOARD</div> </div>
<img src="icons/files.png"> <div class="hide-800">E-PRESCRIPTIONS</div>
<img src="icons/profile-user.png"> <div class="hide-800">MY PATIENTS</div>
<img src="icons/send.png"> <div class="hide-800">INVITE</div>
<img src="icons/profile-user.png"> <div class="hide-800">MY PROFILE</div>
<img src="icons/settings.png"><div class="hide-800">SETTINGS</div></a>
</div>
<div class="content">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum aliquet at neque nec maximus. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Pellentesque condimentum pellentesque faucibus. Phasellus lobortis nisi sollicitudin arcu hendrerit interdum. Nulla semper tellus at dignissim rhoncus. Phasellus laoreet semper metus, eget aliquet urna mattis in. Etiam laoreet ut purus suscipit pharetra. Aliquam rutrum, risus vitae egestas ultricies, ligula lorem lobortis arcu, at dignissim felis mauris vitae lorem. Vivamus urna libero, facilisis nec tincidunt eu, ultricies eu arcu. Sed id aliquet lorem, eu egestas arcu. Cras cursus vulputate felis nec facilisis. Nunc et arcu rhoncus, fermentum lectus eu, sagittis velit. Curabitur nisi dui, semper nec felis sed, tempor blandit neque. Cras varius aliquet diam in maximus. Proin ultricies, sem eget lacinia lobortis, mauris quam venenatis neque, a rhoncus metus odio vel diam.</div>
</body>
I have been trying to write CSS for responsive two columns layout (text and images), but I am having hard time with that. Layout looks like this:
two column layout
Requirements:
Content within columns is generated dynamically based on the data from database (so the height of the columns is dynamic)
Columns must have equal width and height (height depends on content)
Content within columns must be horizontally and vertically aligned
Layout must be responsive, so when screen size is changed columns and content must resize accordingly without loosing the ratio and layout of images. In mobile screen the second column goes below the first one (width of the column is 90% of the screen)
Content position in layout could change, so text could be on the right column and images on the left column (configured in CMS). Such change must not affect layout at all
There may be more similar sections on the page, so the distance between them must not be too long and the content of one section cannot cover any other section
It must be displayed correctly on IE11
I have been playing with it for a while and it does not seem to work correctly for me. I have tried to play with position absolute and relative. Unfortunately, the problem is always with images. When I change the screen size two smaller images do not hold orignal position (they move to the left or right). I am not sure if my approach is good or not, I do not even know if something like this is possible in CSS (well, I could write a lot of media rules for different screen sizes, but I am looking for nicer solutions), I have never seen this images layout before. I would be very keen to know what the best approach is.
I created some code snippet in order to demonstrate the issue:
.section {
margin: 0;
display: block;
width: 100%;
height: auto;
padding: 0;
text-align: center;
}
.content-left {
position: relative;
display: inline-block;
width: 45%;
vertical-align: middle;
text-align: center;
float: left;
}
.content-right {
position: relative;
display: inline-block;
width: 45%;
vertical-align: middle;
text-align: center;
float: right;
}
.first-image-wrapper {
position: relative;
z-index: 1;
height: 10rem;
width: 10rem;
text-align: center;
margin: auto;
vertical-align: middle;
right: -2rem;
top: 7rem;
}
.content-image-1 {
vertical-align: middle;
border-radius: 0.2rem;
width: inherit;
height: inherit;
top: 0;
bottom: 0;
left: 0;
right: 0;
}
.second-image-wrapper {
position: relative;
right: -1rem;
bottom: 7rem;
border-radius: 0.2rem;
height: 8.4rem;
width: 8.4rem;
z-index: 4;
}
.content-image-2 {
max-width: 100%;
height: auto;
display: inline-block;
vertical-align: middle;
}
.third-image-wrapper {
position: relative;
bottom: 18rem;
right: -10rem;
border-radius: 0.2rem;
height: 5rem;
width: 5rem;
background-size: cover;
z-index: 5;
}
.content-image-3 {
max-width: 100%;
height: auto;
display: inline-block;
vertical-align: middle;
}
#media (max-width: 500px) {
.content-left, .content-right {
width: 100%;
display: block;
}
}
<div class="section">
<div class="content-left">
<div class="content-text">
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur arcu erat, accumsan id imperdiet et, porttitor at sem. Curabitur arcu erat, accumsan id imperdiet et, porttitor at sem. Curabitur non nulla sit amet nisl tempus convallis quis ac lectus. Curabitur arcu erat, accumsan id imperdiet et, porttitor at sem. Praesent sapien massa. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur arcu erat, accumsan id imperdiet et, porttitor at sem. Curabitur arcu erat, accumsan id imperdiet et, porttitor at sem. Curabitur non nulla sit amet nisl tempus convallis quis ac lectus. Curabitur arcu erat, accumsan id imperdiet et, porttitor at sem. Praesent sapien massa
</p>
</div>
</div>
<div class="content-right">
<div class="first-image-wrapper">
<img class="content-image-1" src="https://i.postimg.cc/BtB3G5dz/P1000003.jpg" alt="Image 1">
</div>
<div class="second-image-wrapper">
<img class="content-image-2 " src="https://i.postimg.cc/SnJb8BJ0/P1000064.jpg" alt="Image 2">
</div>
<div class="third-image-wrapper">
<img class="content-image-3" src="https://i.postimg.cc/ykfzD16X/P1000071.jpg" alt="Image 3">
</div>
</div>
</div>
Any help would be appreciated.
display:flex works for a genuine IE11 (I run one) :
You could do :
.section {
align-items: center;
display: flex;
width: 100%;
}
.section>div {
width: 50%;
}
.content-right {
margin: auto;
}
img {
display: block;
margin: auto;
}
img:nth-child(1) {
width: 20%;
margin-left: 70%;
margin-bottom: -2rem;
}
img:nth-child(2) {
width: 45%;
margin-left: 10%;
position:relative;
}
img:nth-child(3) {
width: 50%;
margin: -2rem 0 0 40%;
;
}
#media (max-width: 500px) {
.section {
display: block;
}
.section>div {
width: auto;
}
}
<div class="section">
<div class="content-left">
<div class="content-text">
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur arcu erat, accumsan id imperdiet et, porttitor at sem. Curabitur arcu erat, accumsan id imperdiet et, porttitor at sem. Curabitur non nulla sit amet nisl tempus convallis quis ac lectus.
Curabitur arcu erat, accumsan id imperdiet et, porttitor at sem. Praesent sapien massa. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur arcu erat, accumsan id imperdiet et, porttitor at sem. Curabitur arcu erat, accumsan id
imperdiet et, porttitor at sem. Curabitur non nulla sit amet nisl tempus convallis quis ac lectus. Curabitur arcu erat, accumsan id imperdiet et, porttitor at sem. Praesent sapien massa
</p>
</div>
</div>
<div class="content-right">
<img class="content-image-1" src="https://i.postimg.cc/BtB3G5dz/P1000003.jpg" alt="Image 1">
<img class="content-image-2 " src="https://i.postimg.cc/SnJb8BJ0/P1000064.jpg" alt="Image 2">
<img class="content-image-3" src="https://i.postimg.cc/ykfzD16X/P1000071.jpg" alt="Image 3">
</div>
</div>
here is a jsbin that works and was made in IE11 https://jsbin.com/lemonopica/1/edit?html,css,output
If you don't fill okay with flex, you can use display:table and display:table-cell which allows vertical centering too , it is understood by every browsers. here is a table/table-cell demo https://jsbin.com/gecokurebe/1/edit?html,css,output
This is the html for my box with the title text and image inside it.
<div id="about">
<div id="title"> <h3><b>About</b></h3></div>
<div id="text"><p>Text</p></div>
<div id="img"><img src="img/3.jpg" height="300" width= "400" alt="?">
</div>
and this is the css
#about {
color: white;
padding: 10px;
position: relative;
width: 90%;
height: 325px;
background: lightgrey;
top: 30px;
margin: 0 auto;
overflow: auto;
color: white;
background: #262626;
box-sizing: border-box;
}
#text {
width: 720px;
position: relative;
top: 30px;
float: right;
}
#title {
float: right;
position: relative;
right: 725px;
top: 0px;
}
#img {
}
My problem is that because my title is always 725px to the right, if I had a title larger than 5 letters it isnt right next to the picture or else I'll have to position it again, is there an easier way around this? Because doing it manually is frustrating.
Thanks.
You can solve this much easier using flexbox: https://css-tricks.com/snippets/css/a-guide-to-flexbox/
Put the title and text in a own wrapper .text-wrapper and place the img before the wrapper.
On your parent about use follow property, to place them each to other:
.about {
display: flex;
}
Some refactoring: You don't really ned a div around the image for this case. And I recommend you to use class in case of id. Check out the snippet:
.about {
display: flex;
}
.text-wrapper {
padding-left: 20px;
}
<div class="about">
<img src="https://www.telegraph.co.uk/content/dam/news/2016/08/23/106598324PandawaveNEWS_trans_NvBQzQNjv4Bqeo_i_u9APj8RuoebjoAHt0k9u7HhRJvuo-ZLenGRumA.jpg?imwidth=450" height="300" width="400" alt="?">
<div class="text-wrapper">
<div class="title">
<h3><b>Vestibulum ac diam sit amet quam vehicula elementum sed sit amet dui. Proin eget tortor risu</b></h3>
</div>
<div class="text">
<p>Vestibulum ac diam sit amet quam vehicula elementum sed sit amet dui. Proin eget tortor risus. Curabitur arcu erat, accumsan id imperdiet et, porttitor at sem. Pellentesque in ipsum id orci porta dapibus. Vestibulum ac diam sit amet quam vehicula
elementum sed sit amet dui.
suscipit tortor eget felis p
Sed porttitor lectus nibh.</p>
</div>
</div>
</div>
Try to remove floating from title and text and 'right' property from .title, then add 'float: left' to the picture.
I have a :after class that creates a line under a h1 element. The h1 element is floated left and what I am trying to do is make the :after line float left but also center under the h1.
I floated it left and tried to do a text-center on the parent div, to no avail. Any ideas?
Codepen
.singleAfterLine {
display: block;
float: left;
height: 2px;
background-color: #55B4B0;
/*Great way to give single line color; see under GET FOOD NOT FAST FOOD */
content: " ";
width: 100px;
margin: 0 auto;
margin-top: 20px;
margin-bottom: 20px;
}
<div class="container-fluid greyBck" style="margin-top: 100px;" id="about">
<div class="" style="padding-top: 50px; padding-bottom: 50px;">
<div class="row" style="width: 80%; margin-left: 10%;">
<div class="col-12 col-md-5">
Duis faucibus, magna eu sodales viverra, nunc erat ullamcorper nibh, at varius leo ipsum eleifend lorem. Nam eu consectetur odio. Curabitur dolor libero, congue luctus gravida vitae, laoreet nec dolor. Donec sagittis lobortis odio, id hendrerit nunc molestie
sagittis. Nam nec purus sapien. Nunc est purus, mattis ac magna maximus, pulvinar sodales lacus. Praesent eget pulvinar justo, in sodales arcu. Integer vel sagittis libero, id condimentum enim. Quisque sollicitudin tempus nibh pellentesque condimentum.
Curabitur in posuere sem. Nulla aliquam in turpis ut molestie. In eu quam est.
</div>
<div class="col-12 col-md-7 bioText" style="float: left;">
<h1 style="padding-bottom: 20px;">About Myself</h1>
<span class="singleAfterLine"></span>
</div>
</div>
</div>
</div>
You need to change some css to get this
.bioText h1 {
padding-bottom: 20px;
display: inline-block;
position: relative;
}
.bioText h1:after {
display: block;
float: left;
height: 2px;
background-color: #55B4B0;
content: " ";
width: 100px;
margin: 0 auto;
margin-top: 20px;
margin-bottom: 20px;
position: absolute;
left: 0;
top: 50px;
right:0px;
}
<div class="container-fluid greyBck" style="margin-top: 100px;" id="about">
<div class="" style="padding-top: 50px; padding-bottom: 50px;">
<div class="row" style="width: 80%; margin-left: 10%;">
<div class="col-12 col-md-5">
Duis faucibus, magna eu sodales viverra, nunc erat ullamcorper nibh, at varius leo ipsum eleifend lorem. Nam eu consectetur odio. Curabitur dolor libero, congue luctus gravida vitae, laoreet nec dolor. Donec sagittis lobortis odio, id hendrerit nunc molestie sagittis. Nam nec purus sapien. Nunc est purus, mattis ac magna maximus, pulvinar sodales lacus. Praesent eget pulvinar justo, in sodales arcu. Integer vel sagittis libero, id condimentum enim. Quisque sollicitudin tempus nibh pellentesque condimentum. Curabitur in posuere sem. Nulla aliquam in turpis ut molestie. In eu quam est.
</div>
<div class="col-12 col-md-7 bioText" style="float: left;">
<h1>About Myself</h1>
</div>
</div>
</div>
</div>
Center on the whole h1? or center on the h1's text? You have to know what is the width of the text in the h1 if you want to center it on that text. but if you want to center it in the whole h1, its much simpler. In my experience whenever there is dynamic centering involve, you should have a reference which has a static value (maybe its parent, or the parent of its parent or so on..), Make another container with the same size as the h1's text, then you do the line inside that container. You use flex to center the line. But if you want to center the line with the whole h1. You can achieve it just by doing the flex, as the div's width will dynamically occupy its parent width similar to the behavior of h1.
.singleAfterLine {
display: block;
float: left;
height: 2px;
background-color: #55B4B0;
/*Great way to give single line color; see under GET FOOD NOT FAST FOOD */
content: " ";
width: 100px;
margin: 0 auto;
margin-top: 20px;
margin-bottom: 20px;
}
.container {
width: 200px;
/*assuming the h1's text width is 200px, omit this if you want it to center with the whole h1*/
display: flex;
align-items: center;
float: left
}
<div class="col-12 col-md-7 bioText" style="float: left;">
<h1 style="padding-bottom: 20px;">About Myself</h1>
<div class="container">
<span class="singleAfterLine"></span>
</div>
</div>
First of all :after is not written like that.No need for <span> below <h1>
<h1>About Myself</h1>
h1:after {
display: block;
height: 2px;
background-color: #55B4B0;
content: " ";
width: 100px;
position: absolute;
bottom: 10px;
}
h1 {
padding-bottom: 20px;
position: relative;
}
I have a section on a site where the parent ID styling rules are conflicting with how I need a particular area of the section to look. This is how it should look -
And this is the coded version so far -
The rules set for the text above are conflicting with how the h2 / p text should show for the 'CASE STUDY' which I need to push to the left and the image to remain on the right, aligned with the text. I need to overcome the parent rules but I've tried a few different things and nothing. Also, I'm not sure why the background color is not stretching across the page. Here's the code so far -
/* CASE STUDY */
section#casestudy {
height: 750px;
max-width: 100%;
}
section#casestudy div.row {
height: 250px;
max-width: 100%;
text-align: center;
position: relative;
}
section#casestudy .four {
position: relative;
max-width: 100%;
display: inline-block;
margin: 0 auto;
}
#casestudy h4 {
color: #000000;
font-size: 20px;
padding-top: 50px;
line-height: 5px;
}
section#casestudy p {
font-size: 10px;
color: #bdc3c7;
position: absolute;
top: 50%;
left: 50%;
margin-right: -50%;
transform: translate(-50%, -50%)
}
#council div.row {
display: block;
background-color: #d3d3d3;
width: 960px;
}
#council img {
float: right;
}
#council h2 {
font-size: 20px;
text-align: left;
color: #000000;
}
#council div.row p {
font-size: 10px;
text-align: left;
width: 50%;
}
.four h3 {
position: absolute;
color: #FFF;
font-size: 20px;
margin: 0;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
section#casestudy img {
display: block;
margin-left: 20px;
padding: 10px;
}
<section id="casestudy">
<div class="container">
<div class="twelve columns">
<div class="row" id="meettheteam">
<h3>WHAT IS 2D ANIMATION?</h3>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec vel ex nisl. Vestibulum vitae ultricies nisl. Praesent sodales, leo at pellentesque pellentesque, nunc erat dapibus nunc, ut congue libero lorem in orci. Suspendisse potenti. Quisque facilisis mauris in vestibulum tempor. Suspendisse nec venenatis nisi. Phasellus sodales viverra ante quis efficitur. Pellentesque quis orci mi. Phasellus tempus, sapien ut luctus pellentesque, lacus risus accumsan lorem, in porta urna tellus ac nibh. Nunc varius elit non diam vehicula aliquet. In eget urna id orci molestie pulvinar.</p>
</div>
</div>
<div id="council">
<div class="twelve columns">
<div class="row">
<h4>LATEST CASE STUDY</h4>
<h2>Wakefield Council</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec vel ex nisl. Vestibulum vitae ultricies nisl. Praesent sodales, leo at pellentesque pellentesque, nunc erat dapibus nunc, ut congue libero lorem in orci.
<br>
Suspendisse potenti. Quisque facilisis mauris in vestibulum tempor. Suspendisse nec venenatis nisi. Phasellus sodales viverra ante quis efficitur. Pellentesque quis orci mi.
</p>
<img src="images/VIDEO.jpg" alt="Video" style="width: 300px; , height: 100px;" >
</div>
</div>
</div>
<div class="row">
<div class="four columns">
<div id="video">
<h3>VIDEO</h3>
<img src="images/VIDEO.jpg" alt="Video" style="width:300px;height:150px;">
</div>
</div>
<div class="four columns">
<div id="blog">
<h3>BLOG</h3>
<img src="images/blog.jpg" alt="blog" style="width:300px;height:150px;">
</div>
</div>
<div class="four columns">
<div id="faq">
<h3>FAQ</h3>
<img src="images/faq.jpg" alt="FAQ" style="width:300px;height:150px;">
</div>
</div>
</div>
</div>
</section>
Any assistance/guidance appreciated.