I need to display a Vendor logo and an SKU # on the same line at the top of the product details block. The logo needs to be displayed at the left of the block and the SKU on the right.
I am inserting a Liquid/HTML element into a new Product Template using PageFly.
For testing, I am using two text strings: Hello and John. They should be displayed on the same line.
Here is the HTML/CSS I am using:
.manufacturer-logo {
width: 50%;
height: 20px;
display: inline-block;
margin: -1px;
}
.sku-container {
width: 50%;
height: 20px;
text-align: right;
display: inline-block;
margin: -1px;
}
I tested the code in a sandbox and it worked OK. However, I had to insert the -1px margin into each class to get the strings to appear on the same line.
The screenshot above was taken after publishing my page. It seems that the misalignment results from the percentage width attributes.
What do you think I am doing wrong?
