How to delete empty cells in css grid? - html

I'm not sure if these are empty cells, most likely they are stretched because of the largest element, please tell me how I can remove these indentations without javascript. I tried to use grid-auto-flow: colunm, but it doesn't works.
picture with problem
what i'm trying to do
<nav class="header__submenu" id="header__submenu-resources" data-opened="1">
<ul class="header__submenu-list" id="header__submenu-list-resources">
<li class="header__submenu-item">
<a href="#" class="header__submenu-link">
Webinars
<p class="header__submenu-description">Get to know Tines and our use cases, live and on-demand.</p>
</a>
</li>
<li class="header__submenu-item">
<a href="#" class="header__submenu-link">
Blog
<p class="header__submenu-description">Read articles by team members, from company updates to tutorials.</p>
</a>
</li>
<li class="header__submenu-item">
<a href="#" class="header__submenu-link">
Prodcast
<p class="header__submenu-description">Listen to the latest episodes of our podcast, 'The Future of Security Operations.'</p>
</a>
</li>
<li class="header__submenu-item">
<a href="#" class="header__submenu-link">
Customers stories
<p class="header__submenu-description">Learn how the world’s best security teams automate their work.</p>
</a>
</li>
<li class="header__submenu-item">
<a href="#" class="header__submenu-link">
Story library
<p class="header__submenu-description">Discover helpful example Stories, connect them to your own tools and start customizing instantly.</p>
</a>
</li>
<li class="header__submenu-item">
<a href="#" class="header__submenu-link">
Docs
<p class="header__submenu-description">Get to know the features and concepts of Tines, in detail.</p>
</a>
</li>
<li class="header__submenu-item" id="header__submenu-item-block">
<a href="#" class="header__submenu-link">
<div class="submenu-block">
<div class="submenu-block__top">
<img src="images/tines-icon-galaxy-gate-150w.png" alt="" class="submenu-block__top-image" />
</div>
<div class="submenu-block__text">
<div class="submenu-block__top-text">
<h3 class="submenu-block__title">Tines</h3>
<span class="submenu-block__mark">Hub</span>
</div>
<p class="submenu-block__description">Learn how to automate your workflows, troubleshoot any issues, or get help from our support team.</p>
</div>
</div>
</a>
</li>
</ul>
</nav>
CSS:
.header__submenu-list {
margin: 0;
padding: 40px 0;
list-style: none;
display: grid;
grid-template-columns: repeat(4, 1fr);
row-gap: 30px;
background-color: var(--color-light);
width: auto;
border-radius: 0 0 28px 28px;
}
#header__submenu-list-resources {
grid-template-columns: repeat(3, 1fr);
}
.header__submenu-item {
padding: 0 20px 0 20px;
align-self: flex-start;
}
#header__submenu-item-block {
grid-column: 4 / 5;
grid-row: 1 / 2;
align-items: flex-start;
/* grid-area: block; */
}
The whole code won't fit here, please see the codepen

is this what you want ?
I updated the following code to make it work
#header__submenu-item-block {
grid-column: 4;
grid-row: 1 / 3;
}
check below the working sample.
https://codepen.io/shahilparichay/pen/LYdpJGX
learn about Grid from Here

Related

How to I align my icons in the navbar in css react?

I'm pretty new to css and my navbar looks really bad. I'm trying to play with the css but i get nothing better than the below picture. If i remove the .menu, icons get verticaly aligned;
Of course i've seen a lot of stackoverflow post on this topic and tryied lot of stuff, but again, could not get better than the below picture.
Here my react html code.
<ul className="menu">
<li>
<a href="https://discord.com/channels/#me" id="menu-item-41">
<img src={Discord} alt="discord" className="discord-logo"/>
</a>
</li>
<li>
<a href="www.twitter.com" className="page-scroll" id="menu-item-42">
<img src={Twitter} alt="twitter" className="twitter-logo"/>
</a>
</li>
<li>
<a href="#" className="page-scroll" id="menu-item-44">
TAG
</a>
</li>
<li>
<a href="#roadmap-title" className="page-scroll" id="menu-item-43">
ROAD MAP
</a>
</li>
<li>
<a href="#team" className="page-scroll" id="menu-item-45">
TAG2
</a>
</li>
<li>
<button onClick={() => this.connect() }
id="menu-item-47"
className="connect-button">CONNECT
</button>
</li>
</ul>
Here my css :
li.menu-item {
margin-bottom: 40px;
vertical-align: middle;
text-align: center;
}
.menu{
position: left;
display: inline-flex;
text-align: center;
vertical-align: middle;
float: left;
margin: 40;
}
Eny suggestions or observation would be super welcomed !
Try changing your css to this
.menu {
display: flex;
justify-content: space-between;
align-items: center;
}

Responsive 3 column

I would like my 3 columns to be responsive on mobile devices and I have trouble doing it. What do I add to it, or how do I make it work? :) I know it might be a silly question, but I am supper beginner, trying to learn. Thank you
This is the code im using:
<ul style="-webkit-column-count: 3; -moz-column-count: 3; column-count: 3; column-gap: 310px;">
<li>
<p>aaa</p>
</li>
<li>
<p>bbb</p>
</li>
<li>
<p>ccc</p>
</li>
<li>
<p>ddd</p>
</li>
<li>
<p>eee</p>
</li>
<li>
<p>fff</p>
</li>
<li>
<p>ggg</p>
</li>
<li>
<p>hhh</p>
</li>
<li>
<p>iii</p>
</li>
</ul>
hint From your comment
#G-Cyrillus I dont have a preference, but probably one if I had to choose :) Either way is fine
You could use column-width instead column-count and eventually clamp() sizing it :
li {border:1px solid;margin-bottom:2px}
<ul style=" column-width: clamp(310px, 30vw, 800px); ">
<li>
<p>aaa</p>
</li>
<li>
<p>bbb</p>
</li>
<li>
<p>ccc</p>
</li>
<li>
<p>ddd</p>
</li>
<li>
<p>eee</p>
</li>
<li>
<p>fff</p>
</li>
<li>
<p>ggg</p>
</li>
<li>
<p>hhh</p>
</li>
<li>
<p>iii</p>
</li>
</ul>
About clamp() , see : https://developer.mozilla.org/en-US/docs/Web/CSS/clamp()
About column-width see : https://developer.mozilla.org/en-US/docs/Web/CSS/column-width
You can use grid, it is imao more clear solution:
<div style="display: grid; grid-template-rows: 3; grid-template-columns: 3">
<p>Skvělé produkty</p>
<p>Rychlé doručení</p>
<p>Ochotu</p>
<p style="grid-row: 2">Přívětivé ceny</p>
<p style="grid-row: 2">Výhodné dopravné</p>
<p style="grid-row: 2">Spolehlivost</p>
<p style="grid-row: 3">Bleskovou expedici</p>
<p style="grid-row: 3">Férový obchod</p>
<p style="grid-row: 3">Bezodkladnou reklamaci</p>
</div>
Edit: Examples from chat:
<div style="display: grid; grid-template-rows: 2; grid-template-columns: 3">
<li>Skvělé produkty</li>
<li>Rychlé doručení</li>
<li>Ochotu</li>
<li style="grid-row: 2">Skvělé produkty 2</li>
<li style="grid-row: 2">Rychlé doručení 2</li>
<li style="grid-row: 2">Ochotu 2</li>
</div>
<div style="display: grid; grid-template-rows: 2; grid-template-columns: 3">
<p><img src="https://i.stack.imgur.com/PDGGj.png" style="vertical-align: middle">Skvělé produkty</p>
<p><img src="https://i.stack.imgur.com/PDGGj.png" style="vertical-align: middle">Rychlé doručení</p>
<p><img src="https://i.stack.imgur.com/PDGGj.png" style="vertical-align: middle">Ochotu</p>
<p style="grid-row: 2"><img src="https://i.stack.imgur.com/PDGGj.png" style="vertical-align: middle">Přívětivé ceny</p>
<p style="grid-row: 2"><img src="https://i.stack.imgur.com/PDGGj.png" style="vertical-align: middle">Výhodné dopravné</p>
<p style="grid-row: 2"><img src="https://i.stack.imgur.com/PDGGj.png" style="vertical-align: middle">Spolehlivost</p>
</div>
The are some ways to make a responsive web design. But i think using css #media is easy to use
#media only screen and (max-width: 768px) {
.left,
.right {
float: none;
width: 100%;
}
}
<!DOCTYPE html>
<html>
<head>
<title>Media responsive</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
.left,
.right {
height: 400px;
}
.left {
background: blue;
float: left;
width: 60%;
}
.right {
background: red;
float: right;
width: 40%;
}
</style>
</head>
<body>
<div class="container">
<div class="left">
LEFT
</div>
<div class="right">
RIGHT
</div>
</div>
</body>
</html>
As you see above, I create 2 elements float 2 sides. But when using small screen (<768px) you will see it turn into 1 line
You can read more here: W3 Responsive Web
Something keeps in mind:
Consider use rem, vh,vw, em instead of px because it like % and suitable to responsive
Always add meta viewport

How do I position the divs in my Spotify homepage footer clone to mimic the original's layout?

A couple questions:
How do I make the text in <div class="mh-top-links"> align left?
How do I make the social media links in <div class="mh-social-icons"> display in a row?
How do I make the links in <div class="mh-bottom-links"> display in a row?
Overall, how would you arrange the divs in the footer to make it appear the way it does on the original website? See photo for reference.
I've messed around with Chrome DevTools and tried everything I can think of, but I'm still very new to this and don't know what I'm doing. If you can please provide an explanation along with your answer so I can apply the logic on my own next time, that'd be greatly appreciated!
* {
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
body {
min-height: 100vh;
display: flex;
flex-direction: column;
font-family: Helvetica, Arial, sans-serif;
font-weight: 400;
font-size: 16px;
line-height: 1.5;
color: #222326;
background-color: #FFF;
margin: 0;
}
/* Footer */
footer {
background: #000;
}
footer .mh-top-links {
width: 50%;
display: flex;
flex-direction: row;
}
footer .mh-top-links dt{
color: #919496;
margin-bottom: 20px;
font-size: 12px;
font-weight: 900;
line-height: 1.4;
letter-spacing: .08em;
text-transform: uppercase;
}
footer .mh-top-links dd {
padding: 3px 0 15px;
}
footer .mh-top-links a {
color: #fff;
font-size: 16px;;
text-decoration: none;
}
footer .mh-social-icons a{
color: #fff;
text-decoration: none;
border: 1px solid #fff;
padding: 10px;
border-radius: 50%;
display: inline-block;
}
footer .mh-social-icons {
list-style: none;
}
footer .mh-country a {
color: #fff;
text-decoration: none;
}
footer .mh-bottom-links li{
list-style: none;
}
footer .mh-bottom-links a {
color: #919496;
text-decoration: none;
font-size: 14px;
}
footer a:hover {
color: #1ED760;
}
footer .footer-logo {
margin: 0;
display: inline-block;
color: #fff;
text-decoration: none;
}
<body>
<footer id="mh-footer" class="mh-footer-hover">
<nav>
<div class="mh-brand">
<a href="#" class="mh-footer-primary">
<span class="footer-logo">
Spotify
</span>
</a>
</div>
<div class="mh-top-links">
<dl class="empresa">
<dt>Empresa</dt>
<dd>
<a href="#">
Acerca de
</a>
</dd>
<dd>
<a href="#">
Empleo
</a>
</dd>
<dd>
<a href="#">
For the Record
</a>
</dd>
</dl>
<dl class="comunidades">
<dt>Comunidades</dt>
<dd>
<a href="#">
Para artistas
</a>
</dd>
<dd>
<a href="#">
Desarrolladores
</a>
</dd>
<dd>
<a href="#">
Publicidad
</a>
</dd>
<dd>
<a href="#">
Inversores
</a>
</dd>
<dd>
<a href="#">
Proveedores
</a>
</dd>
</dl>
<dl class="enlaces">
<dt>Enlaces Útiles</dt>
<dd>
<a href="#">
Ayuda
</a>
</dd>
<dd>
<a href="#">
Reproductor web
</a>
</dd>
<dd>
<a href="#">
App gratis para móvil
</a>
</dd>
</dl>
</div>
<div class="mh-social-icons">
<ul>
<li>
<a href="#" title="Instagram">
<span>IG</span>
</a>
</li>
<li>
<a href="#" title="Twitter">
<span>TW</span>
</a>
</li>
<li>
<a href="#" title="Facebook">
<span>FB</span>
</a>
</li>
</ul>
</div>
<div class="mh-country">
<a href="#">
España
<img src="https://country-flags.scdn.co/flags/es.svg" alt="Spanish flag" class="flag">
</a>
</div>
<div class="mh-bottom-links">
<ul>
<li>
Legal
</li>
<li>
Centro de Privacidad
</li>
<li>
Politica de Privacidad
</li>
<li>
Cookies
</li>
<li>
Informacion sobre los anuncios
</li>
</ul>
<span class="copyright">© 2020 Spotify AB</span>
</div>
</nav>
</footer>
</body>
In my experience, Flexbox is the best thing to use to layout things like this. There are lots of other ways of doing it (floats, CSS Grid, tables etc..), but Flexbox allows you to do it with the least amount of hacks, the least amount of code, and is also pretty much universally supported, as long as you don't need to support IE. CanIUse demonstrates the support, so be sure to check first and make a decision based on your requirements.
In my example, I have simplified the code somewhat and added some HTML colors to make it clearer what is going on. I have also created a JSFiddle of it.
The general solution is to separate the content into two main rows and apply display:flex to each of these. I have had to rearrange the HTML a bit to facilitate this. justify-content: flex-start makes the content align to the left. align-items: flex-start; prevents the elements stretching across the height of the row. The social media icons have been forced to align right by the trick of adding margin-left: auto to their containing element.
Flexbox is also used to layout content in some of the nested containers, such as for the legal links and the social media icons to force them to display in a row.
Some of the alignment problems you have are due to browser styling defaults, for example the dd element has a default margin set on it, so it's a good idea to use a CSS reset stylesheet to remove all of these in order to prevent unwelcome surprises. I happen to like Meyer's because it just blasts everything away, but it should be said that some people prefer something less drastic.
Another problem you have is that the circular borders round your social media icons are a bit skewed. This happens because the elements themselves are not perfectly square. The solution is to force them to be so by setting a width and height on them.
<footer id="mh-footer" class="mh-footer-hover">
<nav>
<div class="row-1">
<div class="mh-brand">
<a href="#" class="mh-footer-primary">
<span class="footer-logo">
Spotify
</span>
</a>
</div>
<div class="mh-top-links">
<dl class="mh-top-links__list">
<dt>Empresa</dt>
<dd>
<a href="#">
Acerca de
</a>
</dd>
<dd>
<a href="#">
Empleo
</a>
</dd>
<dd>
<a href="#">
For the Record
</a>
</dd>
</dl>
<dl class="mh-top-links__list">
<dt>Comunidades</dt>
<dd>
<a href="#">
Para artistas
</a>
</dd>
<dd>
<a href="#">
Desarrolladores
</a>
</dd>
<dd>
<a href="#">
Publicidad
</a>
</dd>
<dd>
<a href="#">
Inversores
</a>
</dd>
<dd>
<a href="#">
Proveedores
</a>
</dd>
</dl>
<dl class="mh-top-links__list">
<dt>Enlaces Útiles</dt>
<dd>
<a href="#">
Ayuda
</a>
</dd>
<dd>
<a href="#">
Reproductor web
</a>
</dd>
<dd>
<a href="#">
App gratis para móvil
</a>
</dd>
</dl>
</div>
<ul class="mh-social-icons">
<li>
<a class="mh-social-icon" href="#" title="Instagram">
<span>IG</span>
</a>
</li>
<li>
<a class="mh-social-icon" href="#" title="Twitter">
<span>TW</span>
</a>
</li>
<li>
<a class="mh-social-icon" href="#" title="Facebook">
<span>FB</span>
</a>
</li>
</ul>
</div>
<div class="row-2">
<ul class="mh-legal-links">
<li>
Legal
</li>
<li>
Centro de Privacidad
</li>
<li>
Politica de Privacidad
</li>
<li>
Cookies
</li>
<li>
Informacion sobre los anuncios
</li>
</ul>
<div class="mh-country-copyright">
<div class="mh-country">
<a href="#">
España
<img src="https://country-flags.scdn.co/flags/es.svg" alt="Spanish flag" class="flag">
</a>
</div>
<span class="copyright">© 2020 Spotify AB</span>
</div>
</div>
</nav>
</footer>
/* reset browser styles in one place */
body,
dl,
dt,
dd,
ol,
ul,
li {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
ol,
ul {
list-style: none;
}
/* apply a natural box layout model to all elements, but allowing components to change */
html {
box-sizing: border-box;
}
*,
*:before,
*:after {
box-sizing: inherit;
}
body {
min-height: 100vh;
}
.row-1 {
display: flex;
justify-content: flex-start;
align-items: flex-start;
background: pink;
}
.mh-brand {
background: chartreuse;
padding: 0 50px;
}
.mh-top-links {
display: flex;
background: orange;
width: 50%;
}
.mh-top-links__list {
margin: 0 5px;
background: purple;
width: 200px;
flex-shrink: 0;
}
.mh-social-icons {
display: flex;
background: chocolate;
margin-left: auto;
}
.mh-social-icon {
color: #fff;
text-decoration: none;
width: 50px;
height: 50px;
text-align: center;
line-height: 50px;
border-radius: 50%;
display: inline-block;
margin: 5px;
border-radius: 50%;
border: 1px solid #fff;
background: grey;
}
.row-2 {
display: flex;
background: coral;
}
.mh-legal-links {
background: green;
display: flex;
align-items: flex-start;
}
.mh-legal-links > li {
margin: 5px;
background: blanchedalmond;
}
.mh-country-copyright {
margin-left: auto;
}
See the below code for Question 1 - 3
You can just add the properties to your existing classes.
First line is for question 1. The second line of code is for Question 2 & 3
.mh-top-links{align-items: flex-start}
.mh-social-icons li , .mh-bottom-links li{ display:inline;}
The fourth question HTML layout as per below
<footer id="mh-footer" class="mh-footer-hover">
<nav class="navclass">
<div class="mh-brand svelte-1cgydzu">LOGO</span></a></div>
<div class="mh-top-links">
<dl class="classname">
<dt class="classname">Company</dt>
<dd class="classname">About </dd>
<dd class="classname">Jobs </dd>
<dd class="classname">For the Record </dd>
</dl>
<dl class="classname">
<dt class="classname">Communities</dt>
<dd class="classname">For Artists </dd>
<dd class="classname">Developers </dd>
<dd class="classname">Advertising </dd>
<dd class="classname">Investors </dd>
<dd class="classname">Vendors </dd>
</dl>
<dl class="classname">
<dt class="classname">Useful links</dt>
<dd class="classname">Help </dd>
<dd class="classname">Web Player </dd>
<dd class="classname">Free Mobile App </dd>
</dl>
</div>
<div class="mh-social-icons">
<ul class="classname">
<li class="classname"><span class="mh-social-icon-instagram"></span></li>
<li class="classname"><span class="mh-social-icon-fb"></span></li>
<li class="classname"><span class="mh-social-icon-tw"></span></li>
</ul>
</div>
<div class="mh-country">
Coutry
</div>
<div class="mh-bottom-links">
<ul class="yourclass">
<li class="yourclass">Legal </li>
<li class="yourclass">Privacy Center </li>
<li class="yourclass">Privacy Policy </li>
<li class="yourclass">Cookies </li>
<li class="yourclass">About Ads </li>
</ul>
<span class="class">© 2020 Spotify AB</span>
</div>
</nav>
</footer>
Just add your own class names :)

Table of products with CSS [duplicate]

This question already has answers here:
Targeting flex items on the last or specific row
(10 answers)
Closed 3 years ago.
I am trying to make products catalog with React and CSS. Everything seems to be okay except last row of products.
The last row has only 1 element and since the flex-grow: 1 is set, it takes up all the available width.
Is it possible to set the same width for all elements in the row?
ul {
display: flex;
flex-wrap: wrap;
list-style: none;
}
.products__product {
flex: 1 0 20%;
margin: 1.5em 0.75em 0 0.75em;
min-height: 250px;
background:grey;
}
<div class="products">
<div class="container">
<div class="products__content">
<ul>
<a class="products__product" href="/products/21/stone-in-the-night"
><li><h1>Stone in the Night</h1></li></a
><a class="products__product" href="/products/21/the-dying-of-the-spirits"
><li><h1>The Dying of the Spirits</h1></li></a
><a class="products__product" href="/products/21/the-beginnings-guardian"
><li><h1>The Beginning&#8217;s Guardian</h1></li></a
><a class="products__product" href="/products/21/death-of-light"
><li><h1>Death of Light</h1></li></a
><a class="products__product" href="/products/21/the-lost-soul"
><li><h1>The Lost Soul</h1></li></a
><a class="products__product" href="/products/21/first-husband"
><li><h1>First Husband</h1></li></a
><a class="products__product" href="/products/21/verzliaraktis"
><li><h1>Veržliaraktis</h1></li></a
><a class="products__product" href="/products/21/raktas"
><li><h1>Raktas</h1></li></a
>
</ul>
</div>
</div>
</div>
You can always set the initial width to a percentage:
.products__product {
...
flex: 0 0 20%
...
}
The above says, do not shrink nor grow the items, but set it to 20% of the width of the container. So even if you have a single element in the container, it will only occupy 20%. You can adjust based on the number of elements you have. Unfortunately, you can't use fractional notation.
You could just set the width of the products__product class if you want to keep them uniform.
ul {
display: flex;
flex-wrap: wrap;
list-style: none;
.products__product {
width: 30%; // 3 per row
margin: 1.5em 0.75em 0 0.75em;
min-height: 250px;
}
}
How about this?
ul {
display: flex;
flex-wrap: wrap;
list-style: none;
}
.products__product {
flex: 0 0 20%;
min-width: 20%;
margin: 1.5em 0.75em 0 0.75em;
min-height: 250px;
background: red;
}
<div class="products">
<div class="container">
<div class="products__content">
<ul>
<a class="products__product" href="/products/21/stone-in-the-night">
<li>
<h1>Stone in the Night</h1>
</li>
</a>
<a class="products__product" href="/products/21/the-dying-of-the-spirits">
<li>
<h1>The Dying of the Spirits</h1>
</li>
</a>
<a class="products__product" href="/products/21/the-beginnings-guardian">
<li>
<h1>The Beginning&#8217;s Guardian</h1>
</li>
</a>
<a class="products__product" href="/products/21/death-of-light">
<li>
<h1>Death of Light</h1>
</li>
</a>
<a class="products__product" href="/products/21/the-lost-soul">
<li>
<h1>The Lost Soul</h1>
</li>
</a>
<a class="products__product" href="/products/21/first-husband">
<li>
<h1>First Husband</h1>
</li>
</a>
<a class="products__product" href="/products/21/verzliaraktis">
<li>
<h1>Veržliaraktis</h1>
</li>
</a>
<a class="products__product" href="/products/21/raktas">
<li>
<h1>Raktas</h1>
</li>
</a>
</ul>
</div>
</div>
</div>

Problems with basic image grid on Wordpress twenty-thirteen theme

I'm trying to grid a number of images on a wordpress website, using the twenty thirteen theme.
this is the code i'm using
<style>
#fontContainer {
font-size: 0px;
width: 958px;
margin: 0 auto;
padding: 2px;
margin-top: 30px;
}
#fontContainer {
font-size: 0px;
width: auto;
margin: auto;
padding: 2px;
}
#frontContainer a {
margin: 6px;
display: inline-block;
height: 150px;
width: 150px;
float: left;
}
#frontContainer img {
height: 100%;
width: 100%;
border: 4px solid black;
border-radius: 10px;
}
</style>
<div id='frontContainer'>
<a href='https://www.pacificexpress.com.au/shop'><img src='http://i105.photobucket.com/albums/m215/furnxfurniture/Photobucket%20Desktop%20-%20Jamess%20MacBook%20Air/Furnx%20Images/Front%20Page%20Images/BowFrontDesk_pacificexpresscopy_zps7e8dc151.jpg'/></a>
<a href='https://www.pacificexpress.com.au/shop'><img src='http://i105.photobucket.com/albums/m215/furnxfurniture/Photobucket%20Desktop%20-%20Jamess%20MacBook%20Air/Furnx%20Images/Front%20Page%20Images/corner_workstationcopy_zps1ff2c6b7.jpg'/> </a>
<a href='https://www.pacificexpress.com.au/shop'><img src='http://i105.photobucket.com/albums/m215/furnxfurniture/Photobucket%20Desktop%20-%20Jamess%20MacBook%20Air/Furnx%20Images/Front%20Page%20Images/Corner_work_station_zps644dc92c.jpg'/> </a>
<a href='https://www.pacificexpress.com.au/shop'><img src='http://i105.photobucket.com/albums/m215/furnxfurniture/Photobucket%20Desktop%20-%20Jamess%20MacBook%20Air/Furnx%20Images/Front%20Page%20Images/screen_4person_workstation_zps73078288.jpg'/></a>
<a href='https://www.pacificexpress.com.au/shop'><img src='http://i105.photobucket.com/albums/m215/furnxfurniture/Photobucket%20Desktop%20-%20Jamess%20MacBook%20Air/Furnx%20Images/Front%20Page%20Images/Counter_reception_01_zps9b4c1fbe.jpg'/> </a>
<a href='https://www.pacificexpress.com.au/shop'><img src='http://i105.photobucket.com/albums/m215/furnxfurniture/Photobucket%20Desktop%20-%20Jamess%20MacBook%20Air/Furnx%20Images/Front%20Page%20Images/home_office_desk_zps5a5737d9.jpg'/> </a>
<a href='https://www.pacificexpress.com.au/shop'><img src='http://i105.photobucket.com/albums/m215/furnxfurniture/Photobucket%20Desktop%20-%20Jamess%20MacBook%20Air/Furnx%20Images/Front%20Page%20Images/chair_mesh_am100_zps582ba090.jpg'/> </a>
<a href='https://www.pacificexpress.com.au/shop'><img src='http://i105.photobucket.com/albums/m215/furnxfurniture/Photobucket%20Desktop%20-%20Jamess%20MacBook%20Air/Furnx%20Images/Front%20Page%20Images/tamboor_cupboard_zps0e8c0f6c.jpg'/></a>
<a href='https://www.pacificexpress.com.au/shop'><img src='http://i105.photobucket.com/albums/m215/furnxfurniture/Photobucket%20Desktop%20-%20Jamess%20MacBook%20Air/Furnx%20Images/Front%20Page%20Images/Screen_zps64d2ea85.jpg'/> </a>
</div>
it should be fairly straight forward but on the WP site the top row of images is stepping downwards. I have no idea why or how to fix it.
the website is www.pacificexpress.com.au
if anyone could help it will be greatly appreciated.
James
You have it right, You just have a spelling error in your css selector:
#fontContainer{
}
should be
#frontContainer{
}
notice the "r"
its breaking because of auto formatting in wordpress. you can see in source code "<br>" tag is generated by wordpress. copy this html and paste to your editor. basically remove space so "<br>" will not generate.
<div id='frontContainer'> <a href='https://www.pacificexpress.com.au/shop'><img src='http://i105.photobucket.com/albums/m215/furnxfurniture/Photobucket%20Desktop%20-%20Jamess%20MacBook%20Air/Furnx%20Images/Front%20Page%20Images/BowFrontDesk_pacificexpresscopy_zps7e8dc151.jpg'/></a> <a href='https://www.pacificexpress.com.au/shop'><img src='http://i105.photobucket.com/albums/m215/furnxfurniture/Photobucket%20Desktop%20-%20Jamess%20MacBook%20Air/Furnx%20Images/Front%20Page%20Images/corner_workstationcopy_zps1ff2c6b7.jpg'/> </a> <a href='https://www.pacificexpress.com.au/shop'><img src='http://i105.photobucket.com/albums/m215/furnxfurniture/Photobucket%20Desktop%20-%20Jamess%20MacBook%20Air/Furnx%20Images/Front%20Page%20Images/Corner_work_station_zps644dc92c.jpg'/> </a> <a href='https://www.pacificexpress.com.au/shop'><img src='http://i105.photobucket.com/albums/m215/furnxfurniture/Photobucket%20Desktop%20-%20Jamess%20MacBook%20Air/Furnx%20Images/Front%20Page%20Images/screen_4person_workstation_zps73078288.jpg'/></a> <a href='https://www.pacificexpress.com.au/shop'><img src='http://i105.photobucket.com/albums/m215/furnxfurniture/Photobucket%20Desktop%20-%20Jamess%20MacBook%20Air/Furnx%20Images/Front%20Page%20Images/Counter_reception_01_zps9b4c1fbe.jpg'/> </a> <a href='https://www.pacificexpress.com.au/shop'><img src='http://i105.photobucket.com/albums/m215/furnxfurniture/Photobucket%20Desktop%20-%20Jamess%20MacBook%20Air/Furnx%20Images/Front%20Page%20Images/home_office_desk_zps5a5737d9.jpg'/> </a> <a href='https://www.pacificexpress.com.au/shop'><img src='http://i105.photobucket.com/albums/m215/furnxfurniture/Photobucket%20Desktop%20-%20Jamess%20MacBook%20Air/Furnx%20Images/Front%20Page%20Images/chair_mesh_am100_zps582ba090.jpg'/> </a> <a href='https://www.pacificexpress.com.au/shop'><img src='http://i105.photobucket.com/albums/m215/furnxfurniture/Photobucket%20Desktop%20-%20Jamess%20MacBook%20Air/Furnx%20Images/Front%20Page%20Images/tamboor_cupboard_zps0e8c0f6c.jpg'/></a> <a href='https://www.pacificexpress.com.au/shop'><img src='http://i105.photobucket.com/albums/m215/furnxfurniture/Photobucket%20Desktop%20-%20Jamess%20MacBook%20Air/Furnx%20Images/Front%20Page%20Images/Screen_zps64d2ea85.jpg'/> </a> </div>